Class TableStats

    • Field Detail

      • UNKNOWN

        public static final TableStats UNKNOWN
        Unknown definition for table stats: Unknown rowCount is -1. Unknown colStats is not exist in map.
    • Constructor Detail

      • TableStats

        public TableStats​(long rowCount)
    • Method Detail

      • getRowCount

        public long getRowCount()
      • copy

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

        public TableStats merge​(TableStats other,
                                @Nullable
                                Set<String> partitionKeys)
        Merges two table stats. When the stats are unknown, whatever the other are, we need return unknown stats. See UNKNOWN.
        Parameters:
        other - The other table stats to merge.
        Returns:
        The merged table stats.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object