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 Summary
Constructors Constructor Description Statistics(T min, T max)
Deprecated.will be removed in 2.0.0.Statistics(T min, T max, Comparator<T> comparator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Comparator<T>
getComparator()
Returns the comparator to be used to compare two generic values in the proper way (e.g.T
getMax()
Returns the generic object representing the max value in the statistics.T
getMin()
Returns the generic object representing the min value in the statistics.
-
-
-
Constructor Detail
-
Statistics
@Deprecated public Statistics(T min, T max)
Deprecated.will be removed in 2.0.0. UseStatistics(Object, Object, Comparator)
instead- Parameters:
min
- the min valuemax
- the max value
-
Statistics
public Statistics(T min, T max, Comparator<T> comparator)
- Parameters:
min
- the min valuemax
- the max valuecomparator
- 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 typeT
defined by thecompareTo
method might not be appropriate for the actual logical type. UsegetComparator()
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 typeT
defined by thecompareTo
method might not be appropriate for the actual logical type. UsegetComparator()
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
-
-