Package org.apache.calcite.rex
Class RexAnalyzer
- java.lang.Object
-
- org.apache.calcite.rex.RexAnalyzer
-
public class RexAnalyzer extends java.lang.Object
Analyzes an expression, figures out what are the unbound variables, assigns a variety of values to each unbound variable, and evaluates the expression.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
RexAnalyzer.VariableCollector
Collects the variables (or other bindable sites) in an expression, and counts features (such as CAST) thatRexInterpreter
cannot handle.
-
Field Summary
Fields Modifier and Type Field Description RexNode
e
int
unsupportedCount
java.util.List<RexNode>
variables
-
Constructor Summary
Constructors Constructor Description RexAnalyzer(RexNode e, RelOptPredicateList predicates)
Creates a RexAnalyzer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Iterable<java.util.Map<RexNode,java.lang.Comparable>>
assignments()
Generates a map of variables and lists of values that could be assigned to them.private static java.util.List<java.lang.Comparable>
getComparables(RexNode variable)
-
-
-
Constructor Detail
-
RexAnalyzer
public RexAnalyzer(RexNode e, RelOptPredicateList predicates)
Creates a RexAnalyzer.
-
-