| Package | Description |
|---|---|
| org.apache.calcite.rex |
Provides a language for representing row-expressions.
|
| Modifier and Type | Method and Description |
|---|---|
RexLocalRef |
RexProgramBuilder.addExpr(RexNode expr)
Adds an expression to the list of common expressions, and returns a
reference to the expression.
|
RexLocalRef |
RexProgramBuilder.addProject(int at,
int ordinal,
String name)
Adds a projection based upon the
indexth expression at a
given position. |
RexLocalRef |
RexProgramBuilder.addProject(int at,
RexNode expr,
String name)
Adds a project expression to the program at a given position.
|
RexLocalRef |
RexProgramBuilder.addProject(int ordinal,
String name)
Adds a projection based upon the
indexth expression. |
RexLocalRef |
RexProgramBuilder.addProject(RexNode expr,
String name)
Adds a project expression to the program.
|
RexLocalRef |
RexProgram.getCondition()
Returns the field reference of this program's filter condition, or null
if there is no condition.
|
RexLocalRef |
RexProgramBuilder.makeInputRef(int index)
Creates a reference to a given input field.
|
RexLocalRef |
RexProgramBuilder.registerInput(RexNode expr)
Registers an expression in the list of common sub-expressions, and
returns a reference to that expression.
|
RexLocalRef |
RexProgramBuilder.registerOutput(RexNode expr)
Converts an expression expressed in terms of the outputs of this
program into an expression expressed in terms of the inputs,
registers it in the list of common sub-expressions, and returns a
reference to that expression.
|
| Modifier and Type | Method and Description |
|---|---|
List<Pair<RexLocalRef,String>> |
RexProgram.getNamedProjects()
Returns a list of project expressions and their field names.
|
List<RexLocalRef> |
RexProgram.getProjectList()
Returns an array of references to the expressions which this program is
to project.
|
List<RexLocalRef> |
RexProgramBuilder.getProjectList()
Returns the list of project expressions.
|
| Modifier and Type | Method and Description |
|---|---|
static RexProgramBuilder |
RexProgramBuilder.create(RexBuilder rexBuilder,
RelDataType inputRowType,
List<RexNode> exprList,
List<RexLocalRef> projectRefList,
RexLocalRef conditionRef,
RelDataType outputRowType,
boolean normalize)
Creates a program builder with the same contents as a program.
|
static RexProgramBuilder |
RexProgramBuilder.create(RexBuilder rexBuilder,
RelDataType inputRowType,
List<RexNode> exprList,
List<RexLocalRef> projectRefList,
RexLocalRef conditionRef,
RelDataType outputRowType,
RexShuttle shuttle,
boolean updateRefs)
Creates a program builder with the same contents as a program, applying a
shuttle first.
|
RexNode |
RexProgram.expandLocalRef(RexLocalRef ref)
Fully expands a RexLocalRef back into a pure RexNode tree containing no
RexLocalRefs (reversing the effect of common subexpression elimination).
|
RexNode |
RexPermutationShuttle.visitLocalRef(RexLocalRef local) |
R |
RexVisitorImpl.visitLocalRef(RexLocalRef localRef) |
RexNode |
RexShuttle.visitLocalRef(RexLocalRef localRef) |
Boolean |
RexChecker.visitLocalRef(RexLocalRef ref) |
R |
RexVisitor.visitLocalRef(RexLocalRef localRef) |
| Modifier and Type | Method and Description |
|---|---|
static RexProgramBuilder |
RexProgramBuilder.create(RexBuilder rexBuilder,
RelDataType inputRowType,
List<RexNode> exprList,
List<RexLocalRef> projectRefList,
RexLocalRef conditionRef,
RelDataType outputRowType,
boolean normalize)
Creates a program builder with the same contents as a program.
|
static RexProgramBuilder |
RexProgramBuilder.create(RexBuilder rexBuilder,
RelDataType inputRowType,
List<RexNode> exprList,
List<RexLocalRef> projectRefList,
RexLocalRef conditionRef,
RelDataType outputRowType,
RexShuttle shuttle,
boolean updateRefs)
Creates a program builder with the same contents as a program, applying a
shuttle first.
|
static void |
RexProgram.deduceCollations(List<RelCollation> outputCollations,
int sourceCount,
List<RexLocalRef> refs,
List<RelCollation> inputCollations)
Given a list of expressions and a description of which are ordered,
computes a list of collations.
|
| Constructor and Description |
|---|
RexProgram(RelDataType inputRowType,
List<? extends RexNode> exprs,
List<RexLocalRef> projects,
RexLocalRef condition,
RelDataType outputRowType)
Creates a program.
|
| Constructor and Description |
|---|
RexProgram(RelDataType inputRowType,
List<? extends RexNode> exprs,
List<RexLocalRef> projects,
RexLocalRef condition,
RelDataType outputRowType)
Creates a program.
|
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.