Class ColumnarIterator

java.lang.Object
com.oracle.labs.mlrg.olcut.util.IOSpliterator<ColumnarIterator.Row>
org.tribuo.data.columnar.ColumnarIterator
All Implemented Interfaces:
Iterator<ColumnarIterator.Row>, Spliterator<ColumnarIterator.Row>
Direct Known Subclasses:
CSVIterator, JsonFileIterator, ResultSetIterator

public abstract class ColumnarIterator extends com.oracle.labs.mlrg.olcut.util.IOSpliterator<ColumnarIterator.Row> implements Iterator<ColumnarIterator.Row>
An abstract class for iterators that read data in to a columnar format, usually from a file of some kind. Subclasses handle how to format data from that file.

Note: the fields field must be set in the constructor of implementing classes.

  • Field Details

  • Constructor Details

    • ColumnarIterator

      protected ColumnarIterator()
      Constructs a ColumnarIterator wrapped around a buffering spliterator.

      Note when using this constructor you must set the fields field to the appropriate value after you've called super(). It must be immutable.

    • ColumnarIterator

      protected ColumnarIterator(int characteristics, int batchsize, long estimatedSize)
      Constructs a ColumnarIterator wrapped around a buffering spliterator.

      Note when using this constructor you must set the fields field to the appropriate value after you've called super(). It must be immutable.

      Parameters:
      characteristics - The spliterator characteristics.
      batchsize - The buffer size.
      estimatedSize - The estimated size of this iterator.
  • Method Details