Class BytesColumnReader
- java.lang.Object
-
- org.apache.flink.formats.parquet.vector.reader.AbstractColumnReader<WritableBytesVector>
-
- org.apache.flink.formats.parquet.vector.reader.BytesColumnReader
-
- All Implemented Interfaces:
ColumnReader<WritableBytesVector>
public class BytesColumnReader extends AbstractColumnReader<WritableBytesVector>
BytesColumnReader
. A int length and bytes data.
-
-
Field Summary
-
Fields inherited from class org.apache.flink.formats.parquet.vector.reader.AbstractColumnReader
descriptor, dictionary, maxDefLevel, runLenDecoder
-
-
Constructor Summary
Constructors Constructor Description BytesColumnReader(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, WritableBytesVector column)
Read batch fromAbstractColumnReader.runLenDecoder
andAbstractColumnReader.dataInputStream
.protected void
readBatchFromDictionaryIds(int rowId, int num, WritableBytesVector 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
-
BytesColumnReader
public BytesColumnReader(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, WritableBytesVector column)
Description copied from class:AbstractColumnReader
Read batch fromAbstractColumnReader.runLenDecoder
andAbstractColumnReader.dataInputStream
.- Specified by:
readBatch
in classAbstractColumnReader<WritableBytesVector>
-
readBatchFromDictionaryIds
protected void readBatchFromDictionaryIds(int rowId, int num, WritableBytesVector column, WritableIntVector dictionaryIds)
Description copied from class:AbstractColumnReader
Decode dictionary ids to data. FromAbstractColumnReader.runLenDecoder
andAbstractColumnReader.dictionaryIdsDecoder
.- Specified by:
readBatchFromDictionaryIds
in classAbstractColumnReader<WritableBytesVector>
-
-