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
Contains statistics about a group of records
-
Constructor Summary
ConstructorsConstructorDescriptionStatistics(T min, T max) Deprecated.will be removed in 2.0.0.Statistics(T min, T max, Comparator<T> comparator) -
Method Summary
Modifier and TypeMethodDescriptionReturns the comparator to be used to compare two generic values in the proper way (e.g. unsigned comparison for UINT_32)getMax()Returns the generic object representing the max value in the statistics.getMin()Returns the generic object representing the min value in the statistics.
-
Constructor Details
-
Statistics
Deprecated.will be removed in 2.0.0. UseStatistics(Object, Object, Comparator)instead- Parameters:
min- the min valuemax- the max value
-
Statistics
- Parameters:
min- the min valuemax- the max valuecomparator- a comparator to use when comparing values described by this statistics instance
-
-
Method Details
-
getMin
Returns the generic object representing the min value in the statistics. The natural ordering of typeTdefined by thecompareTomethod might not be appropriate for the actual logical type. UsegetComparator()for comparing.- Returns:
- the min value
-
getMax
Returns the generic object representing the max value in the statistics. The natural ordering of typeTdefined by thecompareTomethod might not be appropriate for the actual logical type. UsegetComparator()for comparing.- Returns:
- the max value
-
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
-