Class SizeStatistics.Builder

java.lang.Object
org.apache.parquet.column.statistics.SizeStatistics.Builder
Enclosing class:
SizeStatistics

public static class SizeStatistics.Builder extends Object
Builder to create a SizeStatistics.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final PrimitiveType
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(int repetitionLevel, int definitionLevel)
    Add repetition and definition level of a value to the statistics.
    void
    add(int repetitionLevel, int definitionLevel, Binary value)
    Add repetition and definition level of a value to the statistics.
    Build a SizeStatistics from the builder.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Method Details

    • add

      public void add(int repetitionLevel, int definitionLevel)
      Add repetition and definition level of a value to the statistics. It is called when value is null, or the column is not of BYTE_ARRAY type.
      Parameters:
      repetitionLevel - repetition level of the value
      definitionLevel - definition level of the value
    • add

      public void add(int repetitionLevel, int definitionLevel, Binary value)
      Add repetition and definition level of a value to the statistics. It is called when the column is of BYTE_ARRAY type.
      Parameters:
      repetitionLevel - repetition level of the value
      definitionLevel - definition level of the value
      value - value of to be added
    • build

      public SizeStatistics build()
      Build a SizeStatistics from the builder.