public class ByteColumnReader extends AbstractColumnReader<WritableByteVector>
ColumnReader. Using INT32 to store byte, so just cast int to byte.descriptor, dictionary, maxDefLevel, runLenDecoder| Constructor and Description |
|---|
ByteColumnReader(org.apache.parquet.column.ColumnDescriptor descriptor,
org.apache.parquet.column.page.PageReader pageReader) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
readBatch(int rowId,
int num,
WritableByteVector column)
Read batch from
AbstractColumnReader.runLenDecoder and AbstractColumnReader.dataInputStream. |
protected void |
readBatchFromDictionaryIds(int rowId,
int num,
WritableByteVector column,
WritableIntVector dictionaryIds)
Decode dictionary ids to data.
|
afterReadPage, checkTypeName, readToVector, supportLazyDecodepublic ByteColumnReader(org.apache.parquet.column.ColumnDescriptor descriptor,
org.apache.parquet.column.page.PageReader pageReader)
throws IOException
IOExceptionprotected void readBatch(int rowId,
int num,
WritableByteVector column)
AbstractColumnReaderAbstractColumnReader.runLenDecoder and AbstractColumnReader.dataInputStream.readBatch in class AbstractColumnReader<WritableByteVector>protected void readBatchFromDictionaryIds(int rowId,
int num,
WritableByteVector column,
WritableIntVector dictionaryIds)
AbstractColumnReaderAbstractColumnReader.runLenDecoder and AbstractColumnReader.dictionaryIdsDecoder.readBatchFromDictionaryIds in class AbstractColumnReader<WritableByteVector>Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.