Package io.trino.parquet.reader
Class AbstractColumnReader<BufferType>
java.lang.Object
io.trino.parquet.reader.AbstractColumnReader<BufferType>
- All Implemented Interfaces:
ColumnReader
- Direct Known Subclasses:
FlatColumnReader,NestedColumnReader
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ColumnAdapter<BufferType>protected final ValueDecoder.ValueDecodersProvider<BufferType>protected DictionaryDecoder<BufferType>protected final PrimitiveFieldprotected PageReaderprotected RowRangesIterator -
Constructor Summary
ConstructorsConstructorDescriptionAbstractColumnReader(PrimitiveField field, ValueDecoder.ValueDecodersProvider<BufferType> decodersProvider, DictionaryDecoder.DictionaryDecoderProvider<BufferType> dictionaryDecoderProvider, ColumnAdapter<BufferType> columnAdapter) -
Method Summary
Modifier and TypeMethodDescriptionprotected static ColumnChunkcreateDictionaryBlock(int[] dictionaryIds, Block dictionary, int[] definitions, int[] repetitions) protected ValueDecoder<BufferType>createValueDecoder(ValueDecoder.ValueDecodersProvider<BufferType> decodersProvider, ParquetEncoding encoding, io.airlift.slice.Slice data) protected abstract booleanprotected booleanvoidsetPageReader(PageReader pageReader, Optional<FilteredRowRanges> rowRanges) protected static voidthrowEndOfBatchException(int remainingInBatch) protected static voidunpackDictionaryNullId(int[] source, int[] destination, boolean[] isNull, int destOffset, int chunkSize, int nullId) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.trino.parquet.reader.ColumnReader
hasPageReader, prepareNextRead, readPrimitive
-
Field Details
-
field
-
decodersProvider
-
columnAdapter
-
pageReader
-
rowRanges
-
dictionaryDecoder
-
-
Constructor Details
-
AbstractColumnReader
public AbstractColumnReader(PrimitiveField field, ValueDecoder.ValueDecodersProvider<BufferType> decodersProvider, DictionaryDecoder.DictionaryDecoderProvider<BufferType> dictionaryDecoderProvider, ColumnAdapter<BufferType> columnAdapter)
-
-
Method Details
-
setPageReader
- Specified by:
setPageReaderin interfaceColumnReader
-
isNonNull
protected abstract boolean isNonNull() -
produceDictionaryBlock
protected boolean produceDictionaryBlock() -
createValueDecoder
protected ValueDecoder<BufferType> createValueDecoder(ValueDecoder.ValueDecodersProvider<BufferType> decodersProvider, ParquetEncoding encoding, io.airlift.slice.Slice data) -
throwEndOfBatchException
protected static void throwEndOfBatchException(int remainingInBatch) -
unpackDictionaryNullId
protected static void unpackDictionaryNullId(int[] source, int[] destination, boolean[] isNull, int destOffset, int chunkSize, int nullId) -
createDictionaryBlock
protected static ColumnChunk createDictionaryBlock(int[] dictionaryIds, Block dictionary, int[] definitions, int[] repetitions)
-