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