Class ValuesAsBytesReader


  • public class ValuesAsBytesReader
    extends org.apache.parquet.column.values.ValuesReader
    Implements a ValuesReader specifically to read given number of bytes from the underlying ByteBufferInputStream.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.nio.ByteBuffer getBuffer​(int length)  
      void initFromPage​(int valueCount, org.apache.parquet.bytes.ByteBufferInputStream in)  
      boolean readBoolean()  
      int readBooleanAsInt()
      Returns 1 if true, 0 otherwise.
      double readDouble()  
      float readFloat()  
      int readInteger()  
      long readLong()  
      void skip()  
      • Methods inherited from class org.apache.parquet.column.values.ValuesReader

        getNextOffset, initFromPage, initFromPage, readBytes, readValueDictionaryId, skip, updateNextOffset
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ValuesAsBytesReader

        public ValuesAsBytesReader()
    • Method Detail

      • initFromPage

        public void initFromPage​(int valueCount,
                                 org.apache.parquet.bytes.ByteBufferInputStream in)
        Overrides:
        initFromPage in class org.apache.parquet.column.values.ValuesReader
      • skip

        public void skip()
        Specified by:
        skip in class org.apache.parquet.column.values.ValuesReader
      • getBuffer

        public java.nio.ByteBuffer getBuffer​(int length)
      • readInteger

        public final int readInteger()
        Overrides:
        readInteger in class org.apache.parquet.column.values.ValuesReader
      • readLong

        public final long readLong()
        Overrides:
        readLong in class org.apache.parquet.column.values.ValuesReader
      • readFloat

        public final float readFloat()
        Overrides:
        readFloat in class org.apache.parquet.column.values.ValuesReader
      • readDouble

        public final double readDouble()
        Overrides:
        readDouble in class org.apache.parquet.column.values.ValuesReader
      • readBoolean

        public final boolean readBoolean()
        Overrides:
        readBoolean in class org.apache.parquet.column.values.ValuesReader
      • readBooleanAsInt

        public final int readBooleanAsInt()
        Returns 1 if true, 0 otherwise.