Class ColumnStats
java.lang.Object
org.apache.flink.table.plan.stats.ColumnStats
Column statistics.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionColumnStats(Long ndv, Long nullCount, Double avgLen, Integer maxLen, Comparable<?> max, Comparable<?> min) -
Method Summary
Modifier and TypeMethodDescriptioncopy()Create a deep copy of "this" instance.booleanComparable<?>getMax()Comparable<?>getMin()getNdv()inthashCode()merge(ColumnStats other, boolean isPartitionKey) Merges two column stats.toString()
-
Field Details
-
UNKNOWN
Unknown definition for column stats.
-
-
Constructor Details
-
ColumnStats
public ColumnStats(Long ndv, Long nullCount, Double avgLen, Integer maxLen, Comparable<?> max, Comparable<?> min)
-
-
Method Details
-
getNdv
-
getNullCount
-
getAvgLen
-
getMaxLen
-
getMax
-
getMin
-
toString
-
copy
Create a deep copy of "this" instance.- Returns:
- a deep copy
-
merge
Merges two column stats. When the stats are unknown, whatever the other are, we need return unknown stats. The unknown definition for column stats is null.- Parameters:
other- The other column stats to merge.- Returns:
- The merged column stats.
-
equals
-
hashCode
public int hashCode()
-