- java.lang.Object
-
- swim.streamlet.AbstractMapInletMapOutlet<K,K,V,V,I,Map<K,V>>
-
- swim.streamlet.combinator.FilterFieldsOperator<K,V,I>
-
- All Implemented Interfaces:
Inlet<I>
,MapInlet<K,V,I>
,MapInletMapOutlet<K,K,V,V,I,Map<K,V>>
,MapOutlet<K,V,Map<K,V>>
,Outlet<Map<K,V>>
- Direct Known Subclasses:
FilterFieldsCombinator
public abstract class FilterFieldsOperator<K,V,I> extends AbstractMapInletMapOutlet<K,K,V,V,I,Map<K,V>>
-
-
Field Summary
-
Fields inherited from class swim.streamlet.AbstractMapInletMapOutlet
input, inputEffects, outlets, outputEffects, outputs, version
-
-
Constructor Summary
Constructors Constructor Description FilterFieldsOperator()
-
Method Summary
Modifier and Type Method Description boolean
containsKey(K key)
Returnstrue
if the current state of thisMapOutlet
contains the givenkey
; otherwise returnsfalse
.abstract boolean
evaluate(K key, V value)
Map<K,V>
get()
Returns the current state of thisOutlet
.V
get(K key)
Returns the value assocaited with the givenkey
in the current state of thisMapOutlet
, if defined; otherwise returnsnull
.Iterator<K>
keyIterator()
Returns anIterator
over the keys in the current state of thisMapOutlet
.protected void
onInvalidateOutputKey(K key, KeyEffect effect)
protected void
onReconcileOutputKey(K key, KeyEffect effect, int version)
protected KeyEffect
willReconcileInputKey(K key, KeyEffect effect, int version)
-
Methods inherited from class swim.streamlet.AbstractMapInletMapOutlet
bindInput, bindInput, bindOutput, didInvalidate, didInvalidateInputKey, didInvalidateOutputKey, didReconcile, didReconcileInputKey, didReconcileOutputKey, disconnectInputs, disconnectOutputs, input, invalidate, invalidateInput, invalidateInputKey, invalidateOutput, invalidateOutputKey, onInvalidate, onInvalidateInputKey, onReconcile, onReconcileInputKey, outlet, outputIterator, reconcile, reconcileInput, reconcileInputKey, reconcileOutput, reconcileOutputKey, unbindInput, unbindOutput, unbindOutputs, willInvalidate, willInvalidateInputKey, willInvalidateOutputKey, willReconcile, willReconcileOutputKey
-
-
-
-
Method Detail
-
containsKey
public boolean containsKey(K key)
Description copied from interface:MapOutlet
Returnstrue
if the current state of thisMapOutlet
contains the givenkey
; otherwise returnsfalse
.- Specified by:
containsKey
in interfaceMapOutlet<K,V,I>
- Specified by:
containsKey
in classAbstractMapInletMapOutlet<K,K,V,V,I,Map<K,V>>
-
get
public V get(K key)
Description copied from interface:MapOutlet
Returns the value assocaited with the givenkey
in the current state of thisMapOutlet
, if defined; otherwise returnsnull
.
-
get
public Map<K,V> get()
Description copied from interface:Outlet
Returns the current state of thisOutlet
.
-
keyIterator
public Iterator<K> keyIterator()
Description copied from interface:MapOutlet
Returns anIterator
over the keys in the current state of thisMapOutlet
.- Specified by:
keyIterator
in interfaceMapOutlet<K,V,I>
- Specified by:
keyIterator
in classAbstractMapInletMapOutlet<K,K,V,V,I,Map<K,V>>
-
onInvalidateOutputKey
protected void onInvalidateOutputKey(K key, KeyEffect effect)
- Overrides:
onInvalidateOutputKey
in classAbstractMapInletMapOutlet<K,K,V,V,I,Map<K,V>>
-
onReconcileOutputKey
protected void onReconcileOutputKey(K key, KeyEffect effect, int version)
- Overrides:
onReconcileOutputKey
in classAbstractMapInletMapOutlet<K,K,V,V,I,Map<K,V>>
-
willReconcileInputKey
protected KeyEffect willReconcileInputKey(K key, KeyEffect effect, int version)
- Overrides:
willReconcileInputKey
in classAbstractMapInletMapOutlet<K,K,V,V,I,Map<K,V>>
-
-