Class BaseBatchReader<T>
java.lang.Object
org.apache.iceberg.arrow.vectorized.BaseBatchReader<T>
- All Implemented Interfaces:
- VectorizedReader<T>
- Direct Known Subclasses:
- ColumnarBatchReader
A base BatchReader class that contains common functionality
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected final VectorizedArrowReader[]protected final VectorHolder[]
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()Release any resources allocated.protected voidvoidsetBatchSize(int batchSize) voidsetRowGroupInfo(org.apache.parquet.column.page.PageReadStore pageStore, Map<org.apache.parquet.hadoop.metadata.ColumnPath, org.apache.parquet.hadoop.metadata.ColumnChunkMetaData> metaData, long rowPosition) Sets the row group information to be used with this readerMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.iceberg.parquet.VectorizedReaderread
- 
Field Details- 
readers
- 
vectorHolders
 
- 
- 
Constructor Details- 
BaseBatchReader
 
- 
- 
Method Details- 
setRowGroupInfopublic void setRowGroupInfo(org.apache.parquet.column.page.PageReadStore pageStore, Map<org.apache.parquet.hadoop.metadata.ColumnPath, org.apache.parquet.hadoop.metadata.ColumnChunkMetaData> metaData, long rowPosition) Description copied from interface:VectorizedReaderSets the row group information to be used with this reader- Specified by:
- setRowGroupInfoin interface- VectorizedReader<T>
- Parameters:
- pageStore- row group information for all the columns
- metaData- map of- ColumnPath->- ColumnChunkMetaDatafor the row group
- rowPosition- the row group's row offset in the parquet file
 
- 
closeVectorsprotected void closeVectors()
- 
closepublic void close()Description copied from interface:VectorizedReaderRelease any resources allocated.- Specified by:
- closein interface- VectorizedReader<T>
 
- 
setBatchSizepublic void setBatchSize(int batchSize) - Specified by:
- setBatchSizein interface- VectorizedReader<T>
 
 
-