Package org.apache.calcite.rel.metadata
Interface BuiltInMetadata.PopulationSize
- All Superinterfaces:
Metadata
- Enclosing class:
BuiltInMetadata
Metadata about the number of distinct values in the original source of a
column or set of columns.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceHandler API. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription@Nullable DoublegetPopulationSize(ImmutableBitSet groupKey) Estimates the distinct row count in the original source for the givengroupKey, ignoring any filtering being applied by the expression.
-
Field Details
-
DEF
-
-
Method Details
-
getPopulationSize
Estimates the distinct row count in the original source for the givengroupKey, ignoring any filtering being applied by the expression. Typically, "original source" means base table, but for derived columns, the estimate may come from a non-leaf rel such as a LogicalProject.- Parameters:
groupKey- column mask representing the subset of columns for which the row count will be determined- Returns:
- distinct row count for the given groupKey, or null if no reliable estimate can be determined
-