public class VectorizedTableScanIterable extends CloseableGroup implements CloseableIterable<ColumnarBatch>
ArrowReader for details.CloseableIterable.ConcatCloseableIterable<E>| Constructor and Description |
|---|
VectorizedTableScanIterable(TableScan scan)
Create a new instance using default values for
batchSize and reuseContainers. |
VectorizedTableScanIterable(TableScan scan,
int batchSize,
boolean reuseContainers)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close all the registered resources.
|
CloseableIterator<ColumnarBatch> |
iterator()
Returns an closeable iterator over elements of type
T. |
addCloseable, addCloseable, setSuppressCloseFailureclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcombine, concat, empty, filter, transform, withNoopClose, withNoopClosepublic VectorizedTableScanIterable(TableScan scan)
batchSize and reuseContainers.
The batchSize is set to BATCH_SIZE_IN_NUM_ROWS and reuseContainers
is set to false.public VectorizedTableScanIterable(TableScan scan, int batchSize, boolean reuseContainers)
ArrowReader(TableScan, int, boolean) for details.public CloseableIterator<ColumnarBatch> iterator()
CloseableIterableT.iterator in interface java.lang.Iterable<ColumnarBatch>iterator in interface CloseableIterable<ColumnarBatch>CloseableIterator.public void close()
throws java.io.IOException
CloseableGroupclose in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class CloseableGroupjava.io.IOException