Class ValuesAsBytesReader

java.lang.Object
org.apache.parquet.column.values.ValuesReader
org.apache.iceberg.parquet.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.
  • Constructor Details

    • ValuesAsBytesReader

      public ValuesAsBytesReader()
  • Method Details

    • 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 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.