Class VectorizedRowBatchIterator

java.lang.Object
org.apache.iceberg.orc.VectorizedRowBatchIterator
All Implemented Interfaces:
Closeable, AutoCloseable, Iterator<org.apache.iceberg.util.Pair<org.apache.orc.storage.ql.exec.vector.VectorizedRowBatch,Long>>, org.apache.iceberg.io.CloseableIterator<org.apache.iceberg.util.Pair<org.apache.orc.storage.ql.exec.vector.VectorizedRowBatch,Long>>

public class VectorizedRowBatchIterator extends Object implements org.apache.iceberg.io.CloseableIterator<org.apache.iceberg.util.Pair<org.apache.orc.storage.ql.exec.vector.VectorizedRowBatch,Long>>
An adaptor so that the ORC RecordReader can be used as an Iterator. Because the same VectorizedRowBatch is reused on each call to next, it gets changed when hasNext or next is called.
  • Method Details

    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Throws:
      IOException
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<org.apache.iceberg.util.Pair<org.apache.orc.storage.ql.exec.vector.VectorizedRowBatch,Long>>
    • next

      public org.apache.iceberg.util.Pair<org.apache.orc.storage.ql.exec.vector.VectorizedRowBatch,Long> next()
      Specified by:
      next in interface Iterator<org.apache.iceberg.util.Pair<org.apache.orc.storage.ql.exec.vector.VectorizedRowBatch,Long>>