public abstract class ByteStreamSplitValuesReader extends ValuesReader
| Modifier and Type | Field and Description |
|---|---|
protected ByteBuffer |
decodedDataBuffer |
protected int |
elementSizeInBytes |
| Modifier | Constructor and Description |
|---|---|
protected |
ByteStreamSplitValuesReader(int elementSizeInBytes) |
| Modifier and Type | Method and Description |
|---|---|
void |
initFromPage(int valuesCount,
ByteBufferInputStream stream)
Called to initialize the column reader from a part of a page.
|
protected int |
nextElementByteOffset() |
void |
skip()
Skips the next value in the page
|
void |
skip(int n)
Skips the next n values in the page
|
getNextOffset, initFromPage, initFromPage, readBoolean, readBytes, readDouble, readFloat, readInteger, readLong, readValueDictionaryId, updateNextOffsetprotected final int elementSizeInBytes
protected ByteBuffer decodedDataBuffer
protected ByteStreamSplitValuesReader(int elementSizeInBytes)
protected int nextElementByteOffset()
public void initFromPage(int valuesCount,
ByteBufferInputStream stream)
throws ParquetDecodingException,
IOException
ValuesReaderImplementations must consume all bytes from the input stream, leaving the stream ready to read the next section of data. The underlying implementation knows how much data to read, so a length is not provided.
Each page may contain several sections:
initFromPage in class ValuesReadervaluesCount - count of values in this pagestream - an input stream containing the page data at the correct offsetIOException - if there is an exception while reading from the input streamParquetDecodingExceptionpublic void skip()
ValuesReaderskip in class ValuesReaderpublic void skip(int n)
ValuesReaderskip in class ValuesReadern - the number of values to be skippedCopyright © 2024 The Apache Software Foundation. All rights reserved.