Package nz.org.riskscape.engine.pipeline
Class TupleIteratorSink
java.lang.Object
nz.org.riskscape.engine.pipeline.TupleIteratorSink
- All Implemented Interfaces:
nz.org.riskscape.engine.pipeline.Sink
Accepts tuples, while providing a way to iterate over the tuples that were received.
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
Iterator that reads tuples as they are accepted by the sink -
Field Summary
Modifier and TypeFieldDescriptionstatic final nz.org.riskscape.engine.pipeline.SinkConstructor
Fields inherited from interface nz.org.riskscape.engine.pipeline.Sink
DEVNULL
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface nz.org.riskscape.engine.pipeline.Sink
canAccept, isUnbounded
-
Field Details
-
CONSTRUCTOR
public static final nz.org.riskscape.engine.pipeline.SinkConstructor CONSTRUCTOR
-
-
Constructor Details
-
TupleIteratorSink
public TupleIteratorSink()
-
-
Method Details
-
accept
public boolean accept(nz.org.riskscape.engine.Tuple tuple) - Specified by:
accept
in interfacenz.org.riskscape.engine.pipeline.Sink
-
finish
public void finish()- Specified by:
finish
in interfacenz.org.riskscape.engine.pipeline.Sink
-
getInstance
-