- 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
All Methods Instance Methods Abstract Methods Concrete Methods 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
onDecohereOutputKey(K key, KeyEffect effect)
protected void
onRecohereOutputKey(K key, KeyEffect effect, int version)
protected KeyEffect
willRecohereInputKey(K key, KeyEffect effect, int version)
-
Methods inherited from class swim.streamlet.AbstractMapInletMapOutlet
bindInput, bindInput, bindOutput, decohere, decohereInput, decohereInputKey, decohereOutput, decohereOutputKey, didDecohere, didDecohereInputKey, didDecohereOutputKey, didRecohere, didRecohereInputKey, didRecohereOutputKey, disconnectInputs, disconnectOutputs, input, onDecohere, onDecohereInputKey, onRecohere, onRecohereInputKey, outlet, outputIterator, recohere, recohereInput, recohereInputKey, recohereOutput, recohereOutputKey, unbindInput, unbindOutput, unbindOutputs, willDecohere, willDecohereInputKey, willDecohereOutputKey, willRecohere, willRecohereOutputKey
-
-
-
-
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>>
-
onDecohereOutputKey
protected void onDecohereOutputKey(K key, KeyEffect effect)
- Overrides:
onDecohereOutputKey
in classAbstractMapInletMapOutlet<K,K,V,V,I,Map<K,V>>
-
onRecohereOutputKey
protected void onRecohereOutputKey(K key, KeyEffect effect, int version)
- Overrides:
onRecohereOutputKey
in classAbstractMapInletMapOutlet<K,K,V,V,I,Map<K,V>>
-
willRecohereInputKey
protected KeyEffect willRecohereInputKey(K key, KeyEffect effect, int version)
- Overrides:
willRecohereInputKey
in classAbstractMapInletMapOutlet<K,K,V,V,I,Map<K,V>>
-
-