T
- The constant value to usepublic static class VectorizedArrowReader.ConstantVectorReader<T> extends VectorizedArrowReader
VectorizedArrowReader.ConstantVectorReader<T>
DEFAULT_BATCH_SIZE
Constructor and Description |
---|
ConstantVectorReader(T value) |
Modifier and Type | Method and Description |
---|---|
VectorHolder |
read(VectorHolder reuse,
int numValsToRead)
Reads a batch of type @param <T> and of size numRows
|
void |
setBatchSize(int batchSize) |
void |
setRowGroupInfo(org.apache.parquet.column.page.PageReadStore source,
java.util.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 reader
|
java.lang.String |
toString() |
close, nulls, positions
public ConstantVectorReader(T value)
public VectorHolder read(VectorHolder reuse, int numValsToRead)
VectorizedReader
read
in interface VectorizedReader<VectorHolder>
read
in class VectorizedArrowReader
reuse
- container for the last batch to be reused for next batchnumValsToRead
- number of rows to readpublic void setRowGroupInfo(org.apache.parquet.column.page.PageReadStore source, java.util.Map<org.apache.parquet.hadoop.metadata.ColumnPath,org.apache.parquet.hadoop.metadata.ColumnChunkMetaData> metadata, long rowPosition)
VectorizedReader
setRowGroupInfo
in interface VectorizedReader<VectorHolder>
setRowGroupInfo
in class VectorizedArrowReader
source
- row group information for all the columnsmetadata
- map of ColumnPath
-> ColumnChunkMetaData
for the row grouprowPosition
- the row group's row offset in the parquet filepublic java.lang.String toString()
toString
in class VectorizedArrowReader
public void setBatchSize(int batchSize)
setBatchSize
in interface VectorizedReader<VectorHolder>
setBatchSize
in class VectorizedArrowReader