Class Statistics<T>

java.lang.Object
org.apache.parquet.filter2.predicate.Statistics<T>
Type Parameters:
T - the type of values described by the statistics instance

public class Statistics<T> extends Object
Contains statistics about a group of records
  • Constructor Details

    • Statistics

      @Deprecated public Statistics(T min, T max)
      Deprecated.
      will be removed in 2.0.0. Use Statistics(Object, Object, Comparator) instead
      Parameters:
      min - the min value
      max - the max value
    • Statistics

      public Statistics(T min, T max, Comparator<T> comparator)
      Parameters:
      min - the min value
      max - the max value
      comparator - a comparator to use when comparing values described by this statistics instance
  • Method Details

    • getMin

      public T getMin()
      Returns the generic object representing the min value in the statistics. The natural ordering of type T defined by the compareTo method might not be appropriate for the actual logical type. Use getComparator() for comparing.
      Returns:
      the min value
    • getMax

      public T getMax()
      Returns the generic object representing the max value in the statistics. The natural ordering of type T defined by the compareTo method might not be appropriate for the actual logical type. Use getComparator() for comparing.
      Returns:
      the max value
    • getComparator

      public Comparator<T> getComparator()
      Returns the comparator to be used to compare two generic values in the proper way (e.g. unsigned comparison for UINT_32)
      Returns:
      a comparator for the values described by the statistics instance