Package org.apache.calcite.rel.metadata
Interface BuiltInMetadata.Selectivity
- All Superinterfaces:
Metadata
- Enclosing class:
BuiltInMetadata
Metadata about the selectivity of a predicate.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Handler API. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescription@Nullable Double
getSelectivity
(@Nullable RexNode predicate) Estimates the percentage of an expression's output rows which satisfy a given predicate.
-
Field Details
-
DEF
-
-
Method Details
-
getSelectivity
Estimates the percentage of an expression's output rows which satisfy a given predicate. Returns null to indicate that no reliable estimate can be produced.- Parameters:
predicate
- predicate whose selectivity is to be estimated against rel's output- Returns:
- estimated selectivity (between 0.0 and 1.0), or null if no reliable estimate can be determined
-