Package org.apache.calcite.schema
Interface Statistic
public interface Statistic
Statistics about a
Table.
Each of the methods may return null meaning "not known".
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable List<RelCollation>Returns the collections of columns on which this table is sorted.default @Nullable RelDistributionReturns the distribution of the data in this table.default @Nullable List<ImmutableBitSet>getKeys()Returns a list of unique keys, or null if no key exist.default @Nullable List<RelReferentialConstraint>Returns the collection of referential constraints (foreign-keys) for this table.default @Nullable DoubleReturns the approximate number of rows in the table.default booleanisKey(ImmutableBitSet columns) Returns whether the given set of columns is a unique key, or a superset of a unique key, of the table.
-
Method Details
-
getRowCount
Returns the approximate number of rows in the table. -
isKey
Returns whether the given set of columns is a unique key, or a superset of a unique key, of the table. -
getKeys
Returns a list of unique keys, or null if no key exist. -
getReferentialConstraints
Returns the collection of referential constraints (foreign-keys) for this table. -
getCollations
Returns the collections of columns on which this table is sorted. -
getDistribution
Returns the distribution of the data in this table.
-