-
- All Superinterfaces:
Inlet<I>
- All Known Subinterfaces:
MapDownlink<K,V>,MapInletMapOutlet<KI,KO,VI,VO,I,O>,MapInletOutlet<K,V,I,O>,MapInoutlet<K,VI,VO,I,O>,MapLane<K,V>
- All Known Implementing Classes:
AbstractMapInlet,AbstractMapInletMapOutlet,AbstractMapInletOutlet,AbstractMapInoutlet,FilterFieldsCombinator,FilterFieldsOperator,JoinMapLaneDownlink,MapDownlinkView,MapFieldValuesCombinator,MapFieldValuesOperator,MapLaneView,MapOutput,MemoizeMapCombinator,OutletMapInlet,ReduceFieldsCombinator,ReduceFieldsOperator,WatchFieldsCombinator,WatchFieldsOperator
public interface MapInlet<K,V,I> extends Inlet<I>
Input connector into aStreamletfor a key-value map state.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddecohereOutputKey(K key, KeyEffect effect)Marks thisMapInletas needing aneffectapplied to a givenkey.voidrecohereOutputKey(K key, int version)Updates the state of an individualkeyin thisMapInletto make it consistent with the targetversion.-
Methods inherited from interface swim.streamlet.Inlet
bindInput, decohereOutput, disconnectInputs, disconnectOutputs, input, recohereOutput, unbindInput
-
-
-
-
Method Detail
-
decohereOutputKey
void decohereOutputKey(K key, KeyEffect effect)
Marks thisMapInletas needing aneffectapplied to a givenkey. Decohering an individual key decoheres the entire state of theInlet. But only the decoherent keys need to be updated in order to recohere the overall state of theInlet.
-
recohereOutputKey
void recohereOutputKey(K key, int version)
Updates the state of an individualkeyin thisMapInletto make it consistent with the targetversion. TheMapInletonly needs to update if the currentversiondiffers from the targetversion. To update the state of a key, theMapInletfirst invokesMapOutlet.recohereInputKey(Object, int)on itsinput, if its input is aMapOutlet, or it invokesOutlet.recohereInput(int), if its input is not aMapOutlet. Then, if all decoherent keys have been recohered, theMapInletinvokesStreamlet.recohere(int)on its attached streamlet.
-
-