Class DeltaBinaryPackingValuesReader
java.lang.Object
org.apache.parquet.column.values.ValuesReader
org.apache.parquet.column.values.delta.DeltaBinaryPackingValuesReader
Read values written by
DeltaBinaryPackingValuesWriter-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinitFromPage(int valueCount, org.apache.parquet.bytes.ByteBufferInputStream stream) eagerly loads all the data into memoryintlongreadLong()voidskip()Skips the next value in the pagevoidskip(int n) Skips the next n values in the pageMethods inherited from class org.apache.parquet.column.values.ValuesReader
getNextOffset, initFromPage, initFromPage, readBoolean, readBytes, readDouble, readFloat, readValueDictionaryId, updateNextOffset
-
Constructor Details
-
DeltaBinaryPackingValuesReader
public DeltaBinaryPackingValuesReader()
-
-
Method Details
-
initFromPage
public void initFromPage(int valueCount, org.apache.parquet.bytes.ByteBufferInputStream stream) throws IOException eagerly loads all the data into memory- Overrides:
initFromPagein classValuesReader- Parameters:
valueCount- 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 stream
-
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
-
readInteger
public int readInteger()- Overrides:
readIntegerin classValuesReader- Returns:
- the next integer from the page
-
readLong
public long readLong()- Overrides:
readLongin classValuesReader- Returns:
- the next long from the page
-