- 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 TypeMethodDescriptionboolean
containsKey
(K key) Returnstrue
if the current state of thisMapOutlet
contains the givenkey
; otherwise returnsfalse
.void
decohereInputKey
(K key, KeyEffect effect) Marks thisMapOutlet
as needing aneffect
applied to a givenkey
.filter
(FilterFieldsFunction<? super K, ? super V> func) Returns the value assocaited with the givenkey
in the current state of thisMapOutlet
, if defined; otherwise returnsnull
.Returns anIterator
over the keys in the current state of thisMapOutlet
.map
(MapFieldValuesFunction<? super K, ? super V, V2> func) memoize()
Returns anOutlet
that updates when the specifiedkey
updates.void
recohereInputKey
(K key, int version) Updates the state of an individualkey
in thisMapOutlet
to 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
Returnstrue
if the current state of thisMapOutlet
contains the givenkey
; otherwise returnsfalse
. -
get
Returns the value assocaited with the givenkey
in the current state of thisMapOutlet
, if defined; otherwise returnsnull
. -
keyIterator
Returns anIterator
over the keys in the current state of thisMapOutlet
. -
outlet
Returns anOutlet
that updates when the specifiedkey
updates. -
decohereInputKey
Marks thisMapOutlet
as needing aneffect
applied 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 individualkey
in thisMapOutlet
to make it consistent with the targetversion
. TheMapOutlet
only needs to update if its currentversion
differs from the targetversion
. To update the state of a key, theMapOutlet
first 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
-