Package org.apache.calcite.plan
Class RelOptUtil.InputFinder
- All Implemented Interfaces:
RexVisitor<Void>
- Enclosing class:
RelOptUtil
Visitor which builds a bitmap of the inputs used by an expression.
-
Field Summary
Fields inherited from class org.apache.calcite.rex.RexVisitorImpl
deep
-
Constructor Summary
ConstructorDescriptionInputFinder
(@Nullable Set<RelDataTypeField> extraFields) InputFinder
(@Nullable Set<RelDataTypeField> extraFields, ImmutableBitSet initialBits) -
Method Summary
Modifier and TypeMethodDescriptionstatic RelOptUtil.InputFinder
Returns an input finder that has analyzed a given expression.static ImmutableBitSet
Returns a bit set describing the inputs used by a collection of project expressions and an optional condition.static ImmutableBitSet
Returns a bit set describing the inputs used by an expression.build()
Returns the bit set.visitInputRef
(RexInputRef inputRef) Methods inherited from class org.apache.calcite.rex.RexVisitorImpl
visitArrayAnd, visitArrayOr, visitCorrelVariable, visitDynamicParam, visitFieldAccess, visitLambda, visitLambdaRef, visitLiteral, visitLocalRef, visitOver, visitPatternFieldRef, visitRangeRef, visitSubQuery, visitTableInputRef
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.rex.RexVisitor
visitEach, visitList, visitList
-
Constructor Details
-
InputFinder
public InputFinder() -
InputFinder
-
InputFinder
-
-
Method Details
-
analyze
Returns an input finder that has analyzed a given expression. -
bits
Returns a bit set describing the inputs used by an expression. -
bits
Returns a bit set describing the inputs used by a collection of project expressions and an optional condition. -
build
Returns the bit set.After calling this method, you cannot do any more visits or call this method again.
-
visitInputRef
- Specified by:
visitInputRef
in interfaceRexVisitor<Void>
- Overrides:
visitInputRef
in classRexVisitorImpl<Void>
-
visitCall
- Specified by:
visitCall
in interfaceRexVisitor<Void>
- Overrides:
visitCall
in classRexVisitorImpl<Void>
-