Package org.apache.iceberg.orc
Class VectorizedRowBatchIterator
- java.lang.Object
-
- org.apache.iceberg.orc.VectorizedRowBatchIterator
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.util.Iterator<org.apache.orc.storage.ql.exec.vector.VectorizedRowBatch>
public class VectorizedRowBatchIterator extends java.lang.Object implements java.util.Iterator<org.apache.orc.storage.ql.exec.vector.VectorizedRowBatch>, java.io.Closeable
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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
hasNext()
org.apache.orc.storage.ql.exec.vector.VectorizedRowBatch
next()
-
-
-
Method Detail
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Throws:
java.io.IOException
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<org.apache.orc.storage.ql.exec.vector.VectorizedRowBatch>
-
next
public org.apache.orc.storage.ql.exec.vector.VectorizedRowBatch next()
- Specified by:
next
in interfacejava.util.Iterator<org.apache.orc.storage.ql.exec.vector.VectorizedRowBatch>
-
-