Class TableStats
- java.lang.Object
-
- org.apache.flink.table.plan.stats.TableStats
-
@PublicEvolving public final class TableStats extends Object
Table statistics.
-
-
Field Summary
Fields Modifier and Type Field Description static TableStatsUNKNOWNUnknown definition for table stats: UnknownrowCountis -1.
-
Constructor Summary
Constructors Constructor Description TableStats(long rowCount)TableStats(long rowCount, Map<String,ColumnStats> colStats)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TableStatscopy()Create a deep copy of "this" instance.booleanequals(Object o)Map<String,ColumnStats>getColumnStats()longgetRowCount()inthashCode()TableStatsmerge(TableStats other, Set<String> partitionKeys)Merges two table stats.StringtoString()
-
-
-
Field Detail
-
UNKNOWN
public static final TableStats UNKNOWN
-
-
Constructor Detail
-
TableStats
public TableStats(long rowCount)
-
TableStats
public TableStats(long rowCount, Map<String,ColumnStats> colStats)
-
-
Method Detail
-
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. SeeUNKNOWN.- Parameters:
other- The other table stats to merge.- Returns:
- The merged table stats.
-
-