Class ParallelizedChain

java.lang.Object
nz.org.riskscape.engine.relation.PeekingTupleIterator
nz.org.riskscape.engine.pipeline.ParallelizedChain
All Implemented Interfaces:
AutoCloseable, Iterator<nz.org.riskscape.engine.Tuple>, nz.org.riskscape.engine.relation.TupleIterator

public class ParallelizedChain extends nz.org.riskscape.engine.relation.PeekingTupleIterator

Wraps a transformation chain to parallelize its execution

  • Field Summary

    Fields inherited from interface nz.org.riskscape.engine.relation.TupleIterator

    EMPTY
  • Constructor Summary

    Constructors
    Constructor
    Description
    ParallelizedChain(TransformationChain chain, int numThreads)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected nz.org.riskscape.engine.Tuple
    get()
     
    protected String
     

    Methods inherited from class nz.org.riskscape.engine.relation.PeekingTupleIterator

    close, hasNext, next, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.util.Iterator

    remove

    Methods inherited from interface nz.org.riskscape.engine.relation.TupleIterator

    collect, forEachRemaining
  • Constructor Details

  • Method Details

    • get

      protected nz.org.riskscape.engine.Tuple get()
      Specified by:
      get in class nz.org.riskscape.engine.relation.PeekingTupleIterator
    • getSource

      protected String getSource()
      Specified by:
      getSource in class nz.org.riskscape.engine.relation.PeekingTupleIterator