- All Superinterfaces:
Inlet<I>
- All Known Subinterfaces:
MapInletMapOutlet<KI,,KO, VI, VO, I, O> MapInletOutlet<K,,V, I, O> MapInoutlet<K,VI, VO, I, O>
- All Known Implementing Classes:
AbstractMapInlet,AbstractMapInletMapOutlet,AbstractMapInletOutlet,AbstractMapInoutlet,FilterFieldsCombinator,FilterFieldsOperator,MapFieldValuesCombinator,MapFieldValuesOperator,MapOutput,MemoizeMapCombinator,OutletMapInlet,ReduceFieldsCombinator,ReduceFieldsOperator,WatchFieldsCombinator,WatchFieldsOperator
Input connector into a
Streamlet for a key-value map state.-
Method Summary
Modifier and TypeMethodDescriptionvoiddecohereOutputKey(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 Details
-
decohereOutputKey
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
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.
-