Package org.apache.calcite.rel.metadata
Class RelMdUtil.CardOfProjExpr
- java.lang.Object
-
- org.apache.calcite.rex.RexVisitorImpl<java.lang.Double>
-
- org.apache.calcite.rel.metadata.RelMdUtil.CardOfProjExpr
-
- All Implemented Interfaces:
RexVisitor<java.lang.Double>
- Enclosing class:
- RelMdUtil
private static class RelMdUtil.CardOfProjExpr extends RexVisitorImpl<java.lang.Double>
Visitor that walks over a scalar expression and computes the cardinality of its result.
-
-
Field Summary
Fields Modifier and Type Field Description private RelMetadataQuery
mq
private Project
rel
-
Fields inherited from class org.apache.calcite.rex.RexVisitorImpl
deep
-
-
Constructor Summary
Constructors Constructor Description CardOfProjExpr(RelMetadataQuery mq, Project rel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Double
visitCall(RexCall call)
java.lang.Double
visitInputRef(RexInputRef var)
java.lang.Double
visitLiteral(RexLiteral literal)
-
Methods inherited from class org.apache.calcite.rex.RexVisitorImpl
visitArrayAnd, visitArrayOr, visitCorrelVariable, visitDynamicParam, visitFieldAccess, visitLocalRef, visitOver, visitPatternFieldRef, visitRangeRef, visitSubQuery, visitTableInputRef
-
-
-
-
Field Detail
-
mq
private final RelMetadataQuery mq
-
rel
private Project rel
-
-
Constructor Detail
-
CardOfProjExpr
CardOfProjExpr(RelMetadataQuery mq, Project rel)
-
-
Method Detail
-
visitInputRef
public java.lang.Double visitInputRef(RexInputRef var)
- Specified by:
visitInputRef
in interfaceRexVisitor<java.lang.Double>
- Overrides:
visitInputRef
in classRexVisitorImpl<java.lang.Double>
-
visitLiteral
public java.lang.Double visitLiteral(RexLiteral literal)
- Specified by:
visitLiteral
in interfaceRexVisitor<java.lang.Double>
- Overrides:
visitLiteral
in classRexVisitorImpl<java.lang.Double>
-
visitCall
public java.lang.Double visitCall(RexCall call)
- Specified by:
visitCall
in interfaceRexVisitor<java.lang.Double>
- Overrides:
visitCall
in classRexVisitorImpl<java.lang.Double>
-
-