Package org.apache.calcite.rel.metadata
Class RelMdPopulationSize
- java.lang.Object
-
- org.apache.calcite.rel.metadata.RelMdPopulationSize
-
- All Implemented Interfaces:
MetadataHandler<BuiltInMetadata.PopulationSize>
public class RelMdPopulationSize extends java.lang.Object implements MetadataHandler<BuiltInMetadata.PopulationSize>
RelMdPopulationSize supplies a default implementation ofRelMetadataQuery.getPopulationSize(org.apache.calcite.rel.RelNode, org.apache.calcite.util.ImmutableBitSet)
for the standard logical algebra.
-
-
Field Summary
Fields Modifier and Type Field Description static RelMetadataProvider
SOURCE
-
Constructor Summary
Constructors Modifier Constructor Description private
RelMdPopulationSize()
-
Method Summary
-
-
-
Field Detail
-
SOURCE
public static final RelMetadataProvider SOURCE
-
-
Method Detail
-
getDef
public MetadataDef<BuiltInMetadata.PopulationSize> getDef()
- Specified by:
getDef
in interfaceMetadataHandler<BuiltInMetadata.PopulationSize>
-
getPopulationSize
public java.lang.Double getPopulationSize(Filter rel, RelMetadataQuery mq, ImmutableBitSet groupKey)
-
getPopulationSize
public java.lang.Double getPopulationSize(Sort rel, RelMetadataQuery mq, ImmutableBitSet groupKey)
-
getPopulationSize
public java.lang.Double getPopulationSize(Exchange rel, RelMetadataQuery mq, ImmutableBitSet groupKey)
-
getPopulationSize
public java.lang.Double getPopulationSize(Union rel, RelMetadataQuery mq, ImmutableBitSet groupKey)
-
getPopulationSize
public java.lang.Double getPopulationSize(Join rel, RelMetadataQuery mq, ImmutableBitSet groupKey)
-
getPopulationSize
public java.lang.Double getPopulationSize(SemiJoin rel, RelMetadataQuery mq, ImmutableBitSet groupKey)
-
getPopulationSize
public java.lang.Double getPopulationSize(Aggregate rel, RelMetadataQuery mq, ImmutableBitSet groupKey)
-
getPopulationSize
public java.lang.Double getPopulationSize(Values rel, RelMetadataQuery mq, ImmutableBitSet groupKey)
-
getPopulationSize
public java.lang.Double getPopulationSize(Project rel, RelMetadataQuery mq, ImmutableBitSet groupKey)
-
getPopulationSize
public java.lang.Double getPopulationSize(RelNode rel, RelMetadataQuery mq, ImmutableBitSet groupKey)
Catch-all implementation forBuiltInMetadata.PopulationSize.getPopulationSize(ImmutableBitSet)
, invoked using reflection.
-
-