Package swim.dataflow

Class AbstractRecordOutlet

    • Constructor Detail

      • AbstractRecordOutlet

        public AbstractRecordOutlet()
    • Method Detail

      • containsOwnKey

        public boolean containsOwnKey​(Value key)
      • get

        public Record get()
        Description copied from interface: Outlet
        Returns the current state of this Outlet.
        Specified by:
        get in interface Outlet<Record>
      • outputIterator

        public Iterator<Inlet<? super Record>> outputIterator()
        Description copied from interface: Outlet
        Returns an Iterator over the set of Inlets that depend on the state of this Outlet.
        Specified by:
        outputIterator in interface Outlet<Record>
      • bindOutput

        public void bindOutput​(Inlet<? super Record> output)
        Description copied from interface: Outlet
        Adds an output to the set of Inlets that depend on the state of this Outlet. The output will be invalidated when the state of this Outlet is invalidated, and updated when this Outlet is updated.
        Specified by:
        bindOutput in interface Outlet<Record>
      • unbindOutput

        public void unbindOutput​(Inlet<? super Record> output)
        Description copied from interface: Outlet
        Removes an output from the set of Inlets that depend on the state of this Outlet.
        Specified by:
        unbindOutput in interface Outlet<Record>
      • unbindOutputs

        public void unbindOutputs()
        Description copied from interface: Outlet
        Disconnects all outputs from this Outlet by invoking Inlet.unbindInput() on each Inelt that depends on the state of this Outlet.
        Specified by:
        unbindOutputs in interface Outlet<Record>
      • disconnectOutputs

        public void disconnectOutputs()
        Description copied from interface: Outlet
        Disconnects all Outlets dominated by this Outlet in the dataflow graph. Used to recursively clean up chains of combinators originating from this Inlet.
        Specified by:
        disconnectOutputs in interface Outlet<Record>
      • disconnectInputs

        public void disconnectInputs()
        Description copied from interface: Outlet
        Disconnects all Inlets dominated by this Outlet in the dataflow dependency graph. Used to recursively clean up chains of combinators passing through this Outlet.
        Specified by:
        disconnectInputs in interface Outlet<Record>
      • invalidateInputKey

        public void invalidateInputKey​(Value key,
                                       KeyEffect effect)
        Description copied from interface: MapOutlet
        Marks this MapOutlet as needing an effect applied to a given key. Invalidating an individual key invalidates the entire state of the Outlet. But only the invalidated keys need to be updated in order to reconcile the overall state of the Outlet.
        Specified by:
        invalidateInputKey in interface MapOutlet<Value,​Value,​Record>
      • invalidateInput

        public void invalidateInput()
        Description copied from interface: Outlet
        Marks this Outlet—and all outputs that depend on the state of this Outlet—as having stale state.
        Specified by:
        invalidateInput in interface Outlet<Record>
      • reconcileInput

        public void reconcileInput​(int version)
        Description copied from interface: Outlet
        Reconciles the state of this Outlet, if the version of this Outlet's state differs from the target version. To reconcile its state, the Outlet first invokes Streamlet.reconcile(int) on the Streamlet to which it's attached. It then invokes Inlet.reconcileOutput(int) on each of its dependent outputs.
        Specified by:
        reconcileInput in interface Outlet<Record>
      • willInvalidateInputKey

        protected void willInvalidateInputKey​(Value key,
                                              KeyEffect effect)
      • onInvalidateInputKey

        protected void onInvalidateInputKey​(Value key,
                                            KeyEffect effect)
      • didInvalidateInputKey

        protected void didInvalidateInputKey​(Value key,
                                             KeyEffect effect)
      • willInvalidateInput

        protected void willInvalidateInput()
      • onInvalidateInput

        protected void onInvalidateInput()
      • didInvalidateInput

        protected void didInvalidateInput()
      • willReconcileInputKey

        protected void willReconcileInputKey​(Value key,
                                             KeyEffect effect,
                                             int version)
      • onReconcileInputKey

        protected void onReconcileInputKey​(Value key,
                                           KeyEffect effect,
                                           int version)
      • didReconcileInputKey

        protected void didReconcileInputKey​(Value key,
                                            KeyEffect effect,
                                            int version)
      • willReconcileInput

        protected void willReconcileInput​(int version)
      • onReconcileInput

        protected void onReconcileInput​(int version)
      • didReconcileInput

        protected void didReconcileInput​(int version)