Class TableStats

java.lang.Object
org.apache.flink.table.plan.stats.TableStats

@PublicEvolving public final class TableStats extends Object
Table statistics.
  • Field Details

    • UNKNOWN

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

    • TableStats

      public TableStats(long rowCount)
    • TableStats

      public TableStats(long rowCount, Map<String,ColumnStats> colStats)
  • Method Details

    • getRowCount

      public long getRowCount()
    • getColumnStats

      public Map<String,ColumnStats> getColumnStats()
    • 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.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object