Package org.apache.calcite.rel.metadata
Class RelMdSelectivity
java.lang.Object
org.apache.calcite.rel.metadata.RelMdSelectivity
- All Implemented Interfaces:
MetadataHandler<BuiltInMetadata.Selectivity>
public class RelMdSelectivity
extends Object
implements MetadataHandler<BuiltInMetadata.Selectivity>
RelMdSelectivity supplies a default implementation of
RelMetadataQuery.getSelectivity(org.apache.calcite.rel.RelNode, org.apache.calcite.rex.RexNode)
for the standard logical algebra.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetDef()
@Nullable Double
getSelectivity
(Aggregate rel, RelMetadataQuery mq, @Nullable RexNode predicate) @Nullable Double
getSelectivity
(Calc rel, RelMetadataQuery mq, @Nullable RexNode predicate) @Nullable Double
getSelectivity
(Filter rel, RelMetadataQuery mq, @Nullable RexNode predicate) @Nullable Double
getSelectivity
(Join rel, RelMetadataQuery mq, @Nullable RexNode predicate) @Nullable Double
getSelectivity
(Project rel, RelMetadataQuery mq, @Nullable RexNode predicate) @Nullable Double
getSelectivity
(Sort rel, RelMetadataQuery mq, @Nullable RexNode predicate) @Nullable Double
getSelectivity
(TableModify rel, RelMetadataQuery mq, @Nullable RexNode predicate) @Nullable Double
getSelectivity
(TableScan scan, RelMetadataQuery mq, RexNode predicate) @Nullable Double
getSelectivity
(Union rel, RelMetadataQuery mq, @Nullable RexNode predicate) getSelectivity
(RelNode rel, RelMetadataQuery mq, @Nullable RexNode predicate)
-
Field Details
-
SOURCE
-
-
Constructor Details
-
RelMdSelectivity
protected RelMdSelectivity()
-
-
Method Details
-
getDef
- Specified by:
getDef
in interfaceMetadataHandler<BuiltInMetadata.Selectivity>
-
getSelectivity
-
getSelectivity
-
getSelectivity
-
getSelectivity
public @Nullable Double getSelectivity(TableModify rel, RelMetadataQuery mq, @Nullable RexNode predicate) -
getSelectivity
public @Nullable Double getSelectivity(Filter rel, RelMetadataQuery mq, @Nullable RexNode predicate) -
getSelectivity
-
getSelectivity
-
getSelectivity
public @Nullable Double getSelectivity(Aggregate rel, RelMetadataQuery mq, @Nullable RexNode predicate) -
getSelectivity
public @Nullable Double getSelectivity(Project rel, RelMetadataQuery mq, @Nullable RexNode predicate) -
getSelectivity
-