Class 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 Detail

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

      • 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