java.lang.Object
com.northconcepts.datapipeline.foundations.pipeline.dataset.DatasetIterator
All Implemented Interfaces:
Iterator<Record>

public class DatasetIterator extends Object implements Iterator<Record>
Obtains records from those cached in a Dataset.
  • Constructor Details

    • DatasetIterator

      public DatasetIterator(Dataset dataset)
      Creates an iterator over the dataset's records; it stops when it catches up with loading instead of waiting for more.
  • Method Details

    • getDataset

      public Dataset getDataset()
    • getIndex

      public long getIndex()
      Returns the 0-based index of the next record to return.
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<Record>
    • next

      public Record next()
      Specified by:
      next in interface Iterator<Record>