Class BooleanPlainValuesReader


  • public class BooleanPlainValuesReader
    extends ValuesReader
    encodes boolean for the plain encoding: one bit at a time (0 = false)
    • Constructor Detail

      • BooleanPlainValuesReader

        public BooleanPlainValuesReader()
    • Method Detail

      • initFromPage

        public void initFromPage​(int valueCount,
                                 org.apache.parquet.bytes.ByteBufferInputStream stream)
                          throws IOException
        Called 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:
        initFromPage in class ValuesReader
        Parameters:
        valueCount - count of values in this page
        stream - 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: ValuesReader
        Called to return offset of the next section
        Overrides:
        getNextOffset in class ValuesReader
        Returns:
        offset of the next section