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 TableStats
UNKNOWN
Unknown definition for table stats: UnknownrowCount
is -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 TableStats
copy()
Create a deep copy of "this" instance.boolean
equals(Object o)
Map<String,ColumnStats>
getColumnStats()
long
getRowCount()
int
hashCode()
TableStats
merge(TableStats other, Set<String> partitionKeys)
Merges two table stats.String
toString()
-
-
-
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.
-
-