Class ByteStreamSplitValuesReader
- java.lang.Object
-
- org.apache.parquet.column.values.ValuesReader
-
- org.apache.parquet.column.values.bytestreamsplit.ByteStreamSplitValuesReader
-
- Direct Known Subclasses:
ByteStreamSplitValuesReaderForDouble,ByteStreamSplitValuesReaderForFLBA,ByteStreamSplitValuesReaderForFloat,ByteStreamSplitValuesReaderForInteger,ByteStreamSplitValuesReaderForLong
public abstract class ByteStreamSplitValuesReader extends ValuesReader
-
-
Field Summary
Fields Modifier and Type Field Description protected ByteBufferdecodedDataBufferprotected intelementSizeInBytes
-
Constructor Summary
Constructors Modifier Constructor Description protectedByteStreamSplitValuesReader(int elementSizeInBytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitFromPage(int valuesCount, ByteBufferInputStream stream)Called to initialize the column reader from a part of a page.protected intnextElementByteOffset()voidskip()Skips the next value in the pagevoidskip(int n)Skips the next n values in the page-
Methods inherited from class org.apache.parquet.column.values.ValuesReader
getNextOffset, initFromPage, initFromPage, readBoolean, readBytes, readDouble, readFloat, readInteger, readLong, readValueDictionaryId, updateNextOffset
-
-
-
-
Field Detail
-
elementSizeInBytes
protected final int elementSizeInBytes
-
decodedDataBuffer
protected ByteBuffer decodedDataBuffer
-
-
Method Detail
-
nextElementByteOffset
protected int nextElementByteOffset()
-
initFromPage
public void initFromPage(int valuesCount, ByteBufferInputStream stream) throws ParquetDecodingException, IOExceptionDescription copied from class:ValuesReaderCalled to initialize the column reader from a part of a page.Implementations 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:
- repetition levels column
- definition levels column
- data column
- Overrides:
initFromPagein classValuesReader- Parameters:
valuesCount- count of values in this pagestream- an input stream containing the page data at the correct offset- Throws:
IOException- if there is an exception while reading from the input streamParquetDecodingException
-
skip
public void skip()
Description copied from class:ValuesReaderSkips the next value in the page- Specified by:
skipin classValuesReader
-
skip
public void skip(int n)
Description copied from class:ValuesReaderSkips the next n values in the page- Overrides:
skipin classValuesReader- Parameters:
n- the number of values to be skipped
-
-