Class BooleanPlainValuesReader
- java.lang.Object
-
- org.apache.parquet.column.values.ValuesReader
-
- org.apache.parquet.column.values.plain.BooleanPlainValuesReader
-
public class BooleanPlainValuesReader extends ValuesReader
encodes boolean for the plain encoding: one bit at a time (0 = false)
-
-
Constructor Summary
Constructors Constructor Description BooleanPlainValuesReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intgetNextOffset()Deprecated.voidinitFromPage(int valueCount, org.apache.parquet.bytes.ByteBufferInputStream stream)Called to initialize the column reader from a part of a page.booleanreadBoolean()voidskip()Skips the next value in the page-
Methods inherited from class org.apache.parquet.column.values.ValuesReader
initFromPage, initFromPage, readBytes, readDouble, readFloat, readInteger, readLong, readValueDictionaryId, skip, updateNextOffset
-
-
-
-
Method Detail
-
readBoolean
public boolean readBoolean()
- Overrides:
readBooleanin classValuesReader- Returns:
- the next boolean from the page
- See Also:
ValuesReader.readBoolean()
-
skip
public void skip()
Skips the next value in the page- Specified by:
skipin classValuesReader- See Also:
ValuesReader.skip()
-
initFromPage
public void initFromPage(int valueCount, org.apache.parquet.bytes.ByteBufferInputStream stream) throws IOExceptionCalled 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:
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- See Also:
ValuesReader.initFromPage(int, ByteBufferInputStream)
-
getNextOffset
@Deprecated public int getNextOffset()
Deprecated.Description copied from class:ValuesReaderCalled to return offset of the next section- Overrides:
getNextOffsetin classValuesReader- Returns:
- offset of the next section
-
-