Class ByteColumnReader
- java.lang.Object
-
- org.apache.flink.formats.parquet.vector.reader.AbstractColumnReader<WritableByteVector>
-
- org.apache.flink.formats.parquet.vector.reader.ByteColumnReader
-
- All Implemented Interfaces:
ColumnReader<WritableByteVector>
public class ByteColumnReader extends AbstractColumnReader<WritableByteVector>
ByteColumnReader
. Using INT32 to store byte, so just cast int to byte.
-
-
Field Summary
-
Fields inherited from class org.apache.flink.formats.parquet.vector.reader.AbstractColumnReader
descriptor, dictionary, maxDefLevel, runLenDecoder
-
-
Constructor Summary
Constructors Constructor Description ByteColumnReader(org.apache.parquet.column.ColumnDescriptor descriptor, org.apache.parquet.column.page.PageReader pageReader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
readBatch(int rowId, int num, WritableByteVector column)
Read batch fromAbstractColumnReader.runLenDecoder
andAbstractColumnReader.dataInputStream
.protected void
readBatchFromDictionaryIds(int rowId, int num, WritableByteVector column, WritableIntVector dictionaryIds)
Decode dictionary ids to data.-
Methods inherited from class org.apache.flink.formats.parquet.vector.reader.AbstractColumnReader
afterReadPage, checkTypeName, readToVector, supportLazyDecode
-
-
-
-
Constructor Detail
-
ByteColumnReader
public ByteColumnReader(org.apache.parquet.column.ColumnDescriptor descriptor, org.apache.parquet.column.page.PageReader pageReader) throws IOException
- Throws:
IOException
-
-
Method Detail
-
readBatch
protected void readBatch(int rowId, int num, WritableByteVector column)
Description copied from class:AbstractColumnReader
Read batch fromAbstractColumnReader.runLenDecoder
andAbstractColumnReader.dataInputStream
.- Specified by:
readBatch
in classAbstractColumnReader<WritableByteVector>
-
readBatchFromDictionaryIds
protected void readBatchFromDictionaryIds(int rowId, int num, WritableByteVector column, WritableIntVector dictionaryIds)
Description copied from class:AbstractColumnReader
Decode dictionary ids to data. FromAbstractColumnReader.runLenDecoder
andAbstractColumnReader.dictionaryIdsDecoder
.- Specified by:
readBatchFromDictionaryIds
in classAbstractColumnReader<WritableByteVector>
-
-