Class ColumnStats


  • @PublicEvolving
    public final class ColumnStats
    extends Object
    Column statistics.
    • Field Detail

      • UNKNOWN

        public static final ColumnStats UNKNOWN
        Unknown definition for column stats.
    • Method Detail

      • getNdv

        public Long getNdv()
      • getNullCount

        public Long getNullCount()
      • getAvgLen

        public Double getAvgLen()
      • getMaxLen

        public Integer getMaxLen()
      • copy

        public ColumnStats copy()
        Create a deep copy of "this" instance.
        Returns:
        a deep copy
      • merge

        public ColumnStats merge​(ColumnStats other,
                                 boolean isPartitionKey)
        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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object