- All Superinterfaces:
Outlet<O>
- All Known Subinterfaces:
MapDownlink<K,,V> MapInletMapOutlet<KI,,KO, VI, VO, I, O> MapInoutlet<K,,VI, VO, I, O> MapLane<K,,V> RecordOutlet
- All Known Implementing Classes:
AbstractMapInletMapOutlet,AbstractMapInoutlet,AbstractMapOutlet,AbstractRecordOutlet,DownlinkRecord,FilterFieldsCombinator,FilterFieldsOperator,JoinMapLaneDownlink,ListDownlinkRecord,MapDownlinkRecord,MapDownlinkView,MapFieldValuesCombinator,MapFieldValuesOperator,MapInput,MapLaneView,MemoizeMapCombinator,RecordModel,RecordScope,ValueDownlinkRecord
Output connector from a
Streamlet for a key-value map state.-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(K key) Returnstrueif the current state of thisMapOutletcontains the givenkey; otherwise returnsfalse.voiddecohereInputKey(K key, KeyEffect effect) Marks thisMapOutletas needing aneffectapplied to a givenkey.filter(FilterFieldsFunction<? super K, ? super V> func) Returns the value assocaited with the givenkeyin the current state of thisMapOutlet, if defined; otherwise returnsnull.Returns anIteratorover the keys in the current state of thisMapOutlet.map(MapFieldValuesFunction<? super K, ? super V, V2> func) memoize()Returns anOutletthat updates when the specifiedkeyupdates.voidrecohereInputKey(K key, int version) Updates the state of an individualkeyin thisMapOutletto make it consistent with the targetversion.default <U> Outlet<U>reduce(U identity, CombinerFunction<? super V, U> accumulator, CombinerFunction<U, U> combiner) watch(WatchFieldsFunction<? super K, ? super V> func) Methods inherited from interface swim.streamlet.Outlet
bindOutput, decohereInput, disconnectInputs, disconnectOutputs, get, map, outputIterator, recohereInput, unbindOutput, unbindOutputs, watch
-
Method Details
-
containsKey
Returnstrueif the current state of thisMapOutletcontains the givenkey; otherwise returnsfalse. -
get
Returns the value assocaited with the givenkeyin the current state of thisMapOutlet, if defined; otherwise returnsnull. -
keyIterator
Returns anIteratorover the keys in the current state of thisMapOutlet. -
outlet
Returns anOutletthat updates when the specifiedkeyupdates. -
decohereInputKey
Marks thisMapOutletas needing aneffectapplied to a givenkey. Decohering an individual key decoheres the entire state of theOutlet. But only the decoherent keys need to be updated in order to recohere the overall state of theOutlet. -
recohereInputKey
Updates the state of an individualkeyin thisMapOutletto make it consistent with the targetversion. TheMapOutletonly needs to update if its currentversiondiffers from the targetversion. To update the state of a key, theMapOutletfirst invokesStreamlet.recohere(int)on its attached streamlets. Then, for each dependent output, it invokesMapInlet.recohereOutputKey(Object, int), if the dependent output is aMapInlet, or it invokesInlet.recohereOutput(int), if the dependent output is not aMapInlet. -
memoize
-
filter
-
map
-
reduce
default <U> Outlet<U> reduce(U identity, CombinerFunction<? super V, U> accumulator, CombinerFunction<U, U> combiner) -
watch
-