Class VectorizedTableScanIterable
java.lang.Object
org.apache.iceberg.io.CloseableGroup
org.apache.iceberg.arrow.vectorized.VectorizedTableScanIterable
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterable<ColumnarBatch>,org.apache.iceberg.io.CloseableIterable<ColumnarBatch>
public class VectorizedTableScanIterable
extends org.apache.iceberg.io.CloseableGroup
implements org.apache.iceberg.io.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
org.apache.iceberg.io.CloseableIterable.ConcatCloseableIterable<E extends Object> -
Constructor Summary
ConstructorsConstructorDescriptionVectorizedTableScanIterable(org.apache.iceberg.TableScan scan) Create a new instance using default values forbatchSizeandreuseContainers.VectorizedTableScanIterable(org.apache.iceberg.TableScan scan, int batchSize, boolean reuseContainers) Create a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()org.apache.iceberg.io.CloseableIterator<ColumnarBatch>iterator()Methods inherited from class org.apache.iceberg.io.CloseableGroup
addCloseable, addCloseable, setSuppressCloseFailureMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
VectorizedTableScanIterable
public VectorizedTableScanIterable(org.apache.iceberg.TableScan scan) Create a new instance using default values forbatchSizeandreuseContainers. ThebatchSizeis set toBATCH_SIZE_IN_NUM_ROWSandreuseContainersis set tofalse. -
VectorizedTableScanIterable
public VectorizedTableScanIterable(org.apache.iceberg.TableScan scan, int batchSize, boolean reuseContainers) Create a new instance.See
ArrowReader(TableScan, int, boolean)for details.
-
-
Method Details
-
iterator
- Specified by:
iteratorin interfaceorg.apache.iceberg.io.CloseableIterable<ColumnarBatch>- Specified by:
iteratorin interfaceIterable<ColumnarBatch>
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classorg.apache.iceberg.io.CloseableGroup- Throws:
IOException
-