Package org.apache.iceberg.orc
Class VectorizedRowBatchIterator
java.lang.Object
org.apache.iceberg.orc.VectorizedRowBatchIterator
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Iterator<Pair<org.apache.orc.storage.ql.exec.vector.VectorizedRowBatch,
,Long>> CloseableIterator<Pair<org.apache.orc.storage.ql.exec.vector.VectorizedRowBatch,
Long>>
public class VectorizedRowBatchIterator
extends Object
implements CloseableIterator<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
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
hasNext
public boolean hasNext() -
next
-