public class RexExecutorImpl extends Object implements RexExecutor
RexNode expression.
For this impl, all the public methods should be
static except that it inherits from RexExecutor.
This pretends that other code in the project assumes
the executor instance is RexExecutorImpl.
| Constructor and Description |
|---|
RexExecutorImpl(DataContext dataContext) |
| Modifier and Type | Method and Description |
|---|---|
static RexExecutable |
getExecutable(RexBuilder rexBuilder,
List<RexNode> exps,
RelDataType rowType)
Creates an
RexExecutable that allows to apply the
generated code during query processing (filter, projection). |
void |
reduce(RexBuilder rexBuilder,
List<RexNode> constExps,
List<RexNode> reducedValues)
Do constant reduction using generated code.
|
public RexExecutorImpl(DataContext dataContext)
public static RexExecutable getExecutable(RexBuilder rexBuilder, List<RexNode> exps, RelDataType rowType)
RexExecutable that allows to apply the
generated code during query processing (filter, projection).rexBuilder - Rex builderexps - ExpressionsrowType - describes the structure of the input row.public void reduce(RexBuilder rexBuilder, List<RexNode> constExps, List<RexNode> reducedValues)
reduce in interface RexExecutorrexBuilder - Rex builderconstExps - Expressions to be reducedreducedValues - List to which reduced expressions are appendedCopyright © 2012-2022 Apache Software Foundation. All Rights Reserved.