Package org.apache.calcite.rel.metadata
Class RelMdMeasure.DelegatingContext
java.lang.Object
org.apache.calcite.rel.metadata.RelMdMeasure.DelegatingContext
- All Implemented Interfaces:
BuiltInMetadata.Measure.Context
- Enclosing class:
RelMdMeasure
public abstract static class RelMdMeasure.DelegatingContext
extends Object
implements BuiltInMetadata.Measure.Context
Implementation of Context that delegates to another Context.
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns the number of dimension columns.Returns a (conjunctive) list of filters.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.calcite.rel.metadata.BuiltInMetadata.Measure.Context
getRexBuilder, getTypeFactory
-
Field Details
-
context
-
-
Constructor Details
-
DelegatingContext
-
-
Method Details
-
getRelBuilder
- Specified by:
getRelBuilder
in interfaceBuiltInMetadata.Measure.Context
-
getFilters
Description copied from interface:BuiltInMetadata.Measure.Context
Returns a (conjunctive) list of filters.The filters represent the "filter context" and will become the
WHERE
clause of the subquery.If the relation defining the measure has
N
dimensions then the dimensions can be referenced usingRexInputRef
0 through N-1.- Specified by:
getFilters
in interfaceBuiltInMetadata.Measure.Context
-
getDimensionCount
public int getDimensionCount()Description copied from interface:BuiltInMetadata.Measure.Context
Returns the number of dimension columns.- Specified by:
getDimensionCount
in interfaceBuiltInMetadata.Measure.Context
-