Class TupleIteratorSink

java.lang.Object
nz.org.riskscape.engine.pipeline.TupleIteratorSink
All Implemented Interfaces:
nz.org.riskscape.engine.pipeline.Sink

public class TupleIteratorSink extends Object implements nz.org.riskscape.engine.pipeline.Sink

Accepts tuples, while providing a way to iterate over the tuples that were received.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    class 
    Iterator that reads tuples as they are accepted by the sink
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final nz.org.riskscape.engine.pipeline.SinkConstructor
     

    Fields inherited from interface nz.org.riskscape.engine.pipeline.Sink

    DEVNULL
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    accept(nz.org.riskscape.engine.Tuple tuple)
     
    void
     
     

    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 interface nz.org.riskscape.engine.pipeline.Sink
    • finish

      public void finish()
      Specified by:
      finish in interface nz.org.riskscape.engine.pipeline.Sink
    • getInstance

      public TupleIteratorSink.Iterator getInstance()