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>, swim.util.PairBuilder<swim.structure.Value,​swim.structure.Value,​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  
    • 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)  
      void decohereInput()  
      void decohereInputKey​(swim.structure.Value key, swim.streamlet.KeyEffect effect)  
      protected void didDecohereInput()  
      protected void didDecohereInputKey​(swim.structure.Value key, swim.streamlet.KeyEffect effect)  
      protected void didRecohereInput​(int version)  
      protected void didRecohereInputKey​(swim.structure.Value key, swim.streamlet.KeyEffect effect, int version)  
      void disconnectInputs()  
      void disconnectOutputs()  
      swim.structure.Record get()  
      abstract Iterator<swim.structure.Value> keyIterator()  
      protected void onDecohereInput()  
      protected void onDecohereInputKey​(swim.structure.Value key, swim.streamlet.KeyEffect effect)  
      protected void onRecohereInput​(int version)  
      protected void onRecohereInputKey​(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 recohereInput​(int version)  
      void recohereInputKey​(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 willDecohereInput()  
      protected void willDecohereInputKey​(swim.structure.Value key, swim.streamlet.KeyEffect effect)  
      protected void willRecohereInput​(int version)  
      protected void willRecohereInputKey​(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, add, addAll, addAll, alias, appended, appended, asMutable, 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, isDefinite, 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>
      • decohereInputKey

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

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

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

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

        protected void willDecohereInputKey​(swim.structure.Value key,
                                            swim.streamlet.KeyEffect effect)
      • onDecohereInputKey

        protected void onDecohereInputKey​(swim.structure.Value key,
                                          swim.streamlet.KeyEffect effect)
      • didDecohereInputKey

        protected void didDecohereInputKey​(swim.structure.Value key,
                                           swim.streamlet.KeyEffect effect)
      • willDecohereInput

        protected void willDecohereInput()
      • onDecohereInput

        protected void onDecohereInput()
      • didDecohereInput

        protected void didDecohereInput()
      • willRecohereInputKey

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

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

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

        protected void willRecohereInput​(int version)
      • onRecohereInput

        protected void onRecohereInput​(int version)
      • didRecohereInput

        protected void didRecohereInput​(int version)