Class DataPageV1


public class DataPageV1 extends DataPage
  • Constructor Details

    • DataPageV1

      public DataPageV1(org.apache.parquet.bytes.BytesInput bytes, int valueCount, int uncompressedSize, Statistics<?> statistics, Encoding rlEncoding, Encoding dlEncoding, Encoding valuesEncoding)
      Parameters:
      bytes - the bytes for this page
      valueCount - count of values in this page
      uncompressedSize - the uncompressed size of the page
      statistics - of the page's values (max, min, num_null)
      rlEncoding - the repetition level encoding for this page
      dlEncoding - the definition level encoding for this page
      valuesEncoding - the values encoding for this page
    • DataPageV1

      public DataPageV1(org.apache.parquet.bytes.BytesInput bytes, int valueCount, int uncompressedSize, long firstRowIndex, int rowCount, Statistics<?> statistics, Encoding rlEncoding, Encoding dlEncoding, Encoding valuesEncoding)
      Parameters:
      bytes - the bytes for this page
      valueCount - count of values in this page
      uncompressedSize - the uncompressed size of the page
      firstRowIndex - the index of the first row in this page
      rowCount - the number of rows in this page
      statistics - of the page's values (max, min, num_null)
      rlEncoding - the repetition level encoding for this page
      dlEncoding - the definition level encoding for this page
      valuesEncoding - the values encoding for this page
  • Method Details

    • getBytes

      public org.apache.parquet.bytes.BytesInput getBytes()
      Returns:
      the bytes for the page
    • getStatistics

      public Statistics<?> getStatistics()
      Returns:
      the statistics for this page (max, min, num_nulls)
    • getDlEncoding

      public Encoding getDlEncoding()
      Returns:
      the definition level encoding for this page
    • getRlEncoding

      public Encoding getRlEncoding()
      Returns:
      the repetition level encoding for this page
    • getValueEncoding

      public Encoding getValueEncoding()
      Returns:
      the values encoding for this page
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • accept

      public <T> T accept(DataPage.Visitor<T> visitor)
      Specified by:
      accept in class DataPage
    • getIndexRowCount

      public Optional<Integer> getIndexRowCount()
      Specified by:
      getIndexRowCount in class DataPage
      Returns:
      the number of rows in this page if the related data is available (in case of pageV1 the optional column-index contains this value)