-
- 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
Modifier and Type Method Description voidinvalidateOutputKey(K key, KeyEffect effect)Marks thisMapInletas needing aneffectapplied to a givenkey.voidreconcileOutputKey(K key, int version)Reconciles the state of an individualkeyin thisMapInlet, if the version of thisMapInlet's state differs from the targetversion.-
Methods inherited from interface swim.streamlet.Inlet
bindInput, disconnectInputs, disconnectOutputs, input, invalidateOutput, reconcileOutput, unbindInput
-
-
-
-
Method Detail
-
invalidateOutputKey
void invalidateOutputKey(K key, KeyEffect effect)
Marks thisMapInletas needing aneffectapplied to a givenkey. Invalidating an individual key invalidates the entire state of theInlet. But only the invalidated keys need to be updated in order to reconcile the overall state of theInlet.
-
reconcileOutputKey
void reconcileOutputKey(K key, int version)
Reconciles the state of an individualkeyin thisMapInlet, if the version of thisMapInlet's state differs from the targetversion. To reconcile the state of a key, theMapInletfirst invokesMapOutlet.reconcileInputKey(Object, int)on itsinput, if its input is aMapOutlet, or it invokesOutlet.reconcileInput(int), if its input is not aMapOutlet. Then, if all invalid keys have been reconciled, theMapInletinvokesStreamlet.reconcile(int)on its attached streamlet.
-
-