Package swim.dataflow

Class AbstractRecordOutlet

  • All Implemented Interfaces:
    Comparable<swim.structure.Item>, Iterable<swim.structure.Item>, Collection<swim.structure.Item>, List<swim.structure.Item>, swim.codec.Debug, swim.codec.Display, RecordOutlet, swim.streamlet.MapOutlet<swim.structure.Value,​swim.structure.Value,​swim.structure.Record>, swim.streamlet.Outlet<swim.structure.Record>, swim.streamlet.StreamletScope<swim.structure.Value>, swim.util.Builder<swim.structure.Item,​swim.structure.Record>
    Direct Known Subclasses:
    RecordModel

    public abstract class AbstractRecordOutlet
    extends swim.structure.Record
    implements RecordOutlet
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected swim.collections.HashTrieMap<swim.structure.Value,​swim.streamlet.KeyEffect> effects  
      protected swim.collections.HashTrieMap<swim.structure.Value,​swim.streamlet.KeyOutlet<swim.structure.Value,​swim.structure.Value>> outlets  
      protected swim.streamlet.Inlet<? super swim.structure.Record>[] outputs  
      protected int version  
      • Fields inherited from class swim.structure.Record

        FLAGS
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void bindOutput​(swim.streamlet.Inlet<? super swim.structure.Record> output)  
      boolean containsOwnKey​(swim.structure.Value key)  
      protected void didInvalidateInput()  
      protected void didInvalidateInputKey​(swim.structure.Value key, swim.streamlet.KeyEffect effect)  
      protected void didReconcileInput​(int version)  
      protected void didReconcileInputKey​(swim.structure.Value key, swim.streamlet.KeyEffect effect, int version)  
      void disconnectInputs()  
      void disconnectOutputs()  
      swim.structure.Record get()  
      void invalidateInput()  
      void invalidateInputKey​(swim.structure.Value key, swim.streamlet.KeyEffect effect)  
      abstract Iterator<swim.structure.Value> keyIterator()  
      protected void onInvalidateInput()  
      protected void onInvalidateInputKey​(swim.structure.Value key, swim.streamlet.KeyEffect effect)  
      protected void onReconcileInput​(int version)  
      protected void onReconcileInputKey​(swim.structure.Value key, swim.streamlet.KeyEffect effect, int version)  
      swim.streamlet.Outlet<swim.structure.Value> outlet​(String key)  
      swim.streamlet.Outlet<swim.structure.Value> outlet​(swim.structure.Value key)  
      Iterator<swim.streamlet.Inlet<? super swim.structure.Record>> outputIterator()  
      void reconcileInput​(int version)  
      void reconcileInputKey​(swim.structure.Value key, int version)  
      swim.streamlet.StreamletContext streamletContext()  
      swim.streamlet.StreamletScope<? extends swim.structure.Value> streamletScope()  
      void unbindOutput​(swim.streamlet.Inlet<? super swim.structure.Record> output)  
      void unbindOutputs()  
      protected void willInvalidateInput()  
      protected void willInvalidateInputKey​(swim.structure.Value key, swim.streamlet.KeyEffect effect)  
      protected void willReconcileInput​(int version)  
      protected void willReconcileInputKey​(swim.structure.Value key, swim.streamlet.KeyEffect effect, int version)  
      • Methods inherited from class swim.structure.Record

        add, add, add, add, add, add, add, add, add, add, add, add, add, add, addAll, addAll, alias, appended, appended, attr, attr, attr, attr, attr, attr, attr, attr, attr, attr, attr, attr, attr, attr, attr, attr, bind, body, branch, clear, commit, compareTo, compareTo, concat, contains, contains, containsAll, containsKey, containsKey, containsValue, create, create, debug, empty, entrySet, equals, evaluate, fieldCount, fieldIterator, fieldSet, flattened, get, get, get, getAttr, getAttr, getField, getField, getItem, getSlot, getSlot, hashCode, head, header, headers, indexOf, isAliased, isArray, isConstant, isEmpty, isMutable, isObject, item, item, item, item, item, item, item, iterator, keySet, lastIndexOf, length, listIterator, listIterator, of, of, of, prepended, prepended, put, put, put, put, put, put, put, put, put, put, put, put, put, put, putAll, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putAttr, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, putSlot, remove, remove, removeAll, removed, removed, removeKey, removeKey, retainAll, set, setItem, setItem, setItem, setItem, setItem, setItem, setItem, size, slot, slot, slot, slot, slot, slot, slot, slot, slot, slot, slot, slot, slot, slot, slot, slot, stringValue, stringValue, subList, substitute, tag, tail, target, toArray, toArray, typeOrder, unflattened, updated, updated, updatedAttr, updatedAttr, updatedSlot, updatedSlot, valueCount, valueIterator, values
      • Methods inherited from class swim.structure.Value

        absent, and, and, bitwiseAnd, bitwiseAnd, bitwiseNot, bitwiseOr, bitwiseOr, bitwiseXor, bitwiseXor, booleanValue, booleanValue, builder, byteValue, byteValue, charValue, charValue, conditional, conditional, divide, divide, doubleValue, doubleValue, eq, eq, extant, floatValue, floatValue, fromObject, ge, ge, gt, gt, integerValue, integerValue, intValue, intValue, inverse, isDefined, isDistinct, key, keyEquals, lambda, le, le, longValue, longValue, lt, lt, minus, minus, modulo, modulo, ne, ne, negative, not, numberValue, numberValue, or, or, plus, plus, positive, shortValue, shortValue, times, times, toValue
      • Methods inherited from class swim.structure.Item

        appended, appended, appended, appended, appended, appended, cast, cast, coerce, coerce, display, evaluate, filter, filter, globalScope, invoke, max, min, precedence, prepended, prepended, prepended, prepended, prepended, prepended, substitute, toString, updated, updated, updated, updated, updated, updated, updated, updated, updated, updated, updated, updated, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedAttr, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot, updatedSlot
      • Methods inherited from interface swim.streamlet.MapOutlet

        containsKey, filter, get, map, memoize, reduce, watch
      • Methods inherited from interface swim.streamlet.Outlet

        map, watch
    • Field Detail

      • effects

        protected swim.collections.HashTrieMap<swim.structure.Value,​swim.streamlet.KeyEffect> effects
      • outlets

        protected swim.collections.HashTrieMap<swim.structure.Value,​swim.streamlet.KeyOutlet<swim.structure.Value,​swim.structure.Value>> outlets
      • outputs

        protected swim.streamlet.Inlet<? super swim.structure.Record>[] outputs
      • version

        protected int version
    • Constructor Detail

      • AbstractRecordOutlet

        public AbstractRecordOutlet()
    • Method Detail

      • streamletScope

        public swim.streamlet.StreamletScope<? extends swim.structure.Value> streamletScope()
        Specified by:
        streamletScope in interface swim.streamlet.StreamletScope<swim.structure.Value>
      • streamletContext

        public swim.streamlet.StreamletContext streamletContext()
        Specified by:
        streamletContext in interface swim.streamlet.StreamletScope<swim.structure.Value>
      • containsOwnKey

        public boolean containsOwnKey​(swim.structure.Value key)
      • keyIterator

        public abstract Iterator<swim.structure.Value> keyIterator()
        Specified by:
        keyIterator in interface swim.streamlet.MapOutlet<swim.structure.Value,​swim.structure.Value,​swim.structure.Record>
        Overrides:
        keyIterator in class swim.structure.Record
      • get

        public swim.structure.Record get()
        Specified by:
        get in interface swim.streamlet.Outlet<swim.structure.Record>
      • outlet

        public swim.streamlet.Outlet<swim.structure.Value> outlet​(swim.structure.Value key)
        Specified by:
        outlet in interface swim.streamlet.MapOutlet<swim.structure.Value,​swim.structure.Value,​swim.structure.Record>
        Specified by:
        outlet in interface RecordOutlet
      • outlet

        public swim.streamlet.Outlet<swim.structure.Value> outlet​(String key)
        Specified by:
        outlet in interface RecordOutlet
        Specified by:
        outlet in interface swim.streamlet.StreamletScope<swim.structure.Value>
      • outputIterator

        public Iterator<swim.streamlet.Inlet<? super swim.structure.Record>> outputIterator()
        Specified by:
        outputIterator in interface swim.streamlet.Outlet<swim.structure.Record>
      • bindOutput

        public void bindOutput​(swim.streamlet.Inlet<? super swim.structure.Record> output)
        Specified by:
        bindOutput in interface swim.streamlet.Outlet<swim.structure.Record>
      • unbindOutput

        public void unbindOutput​(swim.streamlet.Inlet<? super swim.structure.Record> output)
        Specified by:
        unbindOutput in interface swim.streamlet.Outlet<swim.structure.Record>
      • unbindOutputs

        public void unbindOutputs()
        Specified by:
        unbindOutputs in interface swim.streamlet.Outlet<swim.structure.Record>
      • disconnectOutputs

        public void disconnectOutputs()
        Specified by:
        disconnectOutputs in interface swim.streamlet.Outlet<swim.structure.Record>
      • disconnectInputs

        public void disconnectInputs()
        Specified by:
        disconnectInputs in interface swim.streamlet.Outlet<swim.structure.Record>
      • invalidateInputKey

        public void invalidateInputKey​(swim.structure.Value key,
                                       swim.streamlet.KeyEffect effect)
        Specified by:
        invalidateInputKey in interface swim.streamlet.MapOutlet<swim.structure.Value,​swim.structure.Value,​swim.structure.Record>
      • invalidateInput

        public void invalidateInput()
        Specified by:
        invalidateInput in interface swim.streamlet.Outlet<swim.structure.Record>
      • reconcileInputKey

        public void reconcileInputKey​(swim.structure.Value key,
                                      int version)
        Specified by:
        reconcileInputKey in interface swim.streamlet.MapOutlet<swim.structure.Value,​swim.structure.Value,​swim.structure.Record>
      • reconcileInput

        public void reconcileInput​(int version)
        Specified by:
        reconcileInput in interface swim.streamlet.Outlet<swim.structure.Record>
      • willInvalidateInputKey

        protected void willInvalidateInputKey​(swim.structure.Value key,
                                              swim.streamlet.KeyEffect effect)
      • onInvalidateInputKey

        protected void onInvalidateInputKey​(swim.structure.Value key,
                                            swim.streamlet.KeyEffect effect)
      • didInvalidateInputKey

        protected void didInvalidateInputKey​(swim.structure.Value key,
                                             swim.streamlet.KeyEffect effect)
      • willInvalidateInput

        protected void willInvalidateInput()
      • onInvalidateInput

        protected void onInvalidateInput()
      • didInvalidateInput

        protected void didInvalidateInput()
      • willReconcileInputKey

        protected void willReconcileInputKey​(swim.structure.Value key,
                                             swim.streamlet.KeyEffect effect,
                                             int version)
      • onReconcileInputKey

        protected void onReconcileInputKey​(swim.structure.Value key,
                                           swim.streamlet.KeyEffect effect,
                                           int version)
      • didReconcileInputKey

        protected void didReconcileInputKey​(swim.structure.Value key,
                                            swim.streamlet.KeyEffect effect,
                                            int version)
      • willReconcileInput

        protected void willReconcileInput​(int version)
      • onReconcileInput

        protected void onReconcileInput​(int version)
      • didReconcileInput

        protected void didReconcileInput​(int version)