Class VectorizedTableScanIterable
java.lang.Object
org.apache.iceberg.io.CloseableGroup
org.apache.iceberg.arrow.vectorized.VectorizedTableScanIterable
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Iterable<ColumnarBatch>
,CloseableIterable<ColumnarBatch>
public class VectorizedTableScanIterable
extends CloseableGroup
implements CloseableIterable<ColumnarBatch>
A vectorized implementation of the Iceberg reader that iterates over the table scan. See
ArrowReader
for details.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.iceberg.io.CloseableIterable
CloseableIterable.ConcatCloseableIterable<E>
-
Constructor Summary
ConstructorDescriptionCreate a new instance using default values forbatchSize
andreuseContainers
.VectorizedTableScanIterable
(TableScan scan, int batchSize, boolean reuseContainers) Create a new instance. -
Method Summary
Methods inherited from class org.apache.iceberg.io.CloseableGroup
addCloseable, addCloseable, setSuppressCloseFailure
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
VectorizedTableScanIterable
Create a new instance using default values forbatchSize
andreuseContainers
. ThebatchSize
is set toBATCH_SIZE_IN_NUM_ROWS
andreuseContainers
is set tofalse
. -
VectorizedTableScanIterable
Create a new instance.See
ArrowReader(TableScan, int, boolean)
for details.
-
-
Method Details
-
iterator
Description copied from interface:CloseableIterable
Returns a closeable iterator over elements of typeT
.- Specified by:
iterator
in interfaceCloseableIterable<ColumnarBatch>
- Specified by:
iterator
in interfaceIterable<ColumnarBatch>
- Returns:
- an
CloseableIterator
.
-
close
Description copied from class:CloseableGroup
Close all the registered resources. Close method of each resource will only be called once. Checked exception from AutoCloseable will be wrapped to runtime exception.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classCloseableGroup
- Throws:
IOException
-