| Package | Description |
|---|---|
| org.apache.calcite.adapter.enumerable |
Query optimizer rules for Java calling convention.
|
| org.apache.calcite.adapter.jdbc |
Query provider based on a JDBC data source.
|
| org.apache.calcite.rel.core |
Defines core relational expressions.
|
| org.apache.calcite.rel.logical |
Defines logical relational expressions.
|
| org.apache.calcite.rel.metadata |
Defines metadata interfaces and utilities for relational
expressions.
|
| org.apache.calcite.rel.mutable |
Defines mutable relational expressions.
|
| org.apache.calcite.rel.rel2sql |
Translates a relational expression to SQL parse tree.
|
| org.apache.calcite.rel.rules |
Provides a core set of planner rules.
|
| org.apache.calcite.rex |
Provides a language for representing row-expressions.
|
| Modifier and Type | Field and Description |
|---|---|
private RexProgram |
RexToLixTranslator.program |
| Modifier and Type | Method and Description |
|---|---|
RexProgram |
EnumerableCalc.getProgram() |
| Modifier and Type | Method and Description |
|---|---|
EnumerableCalc |
EnumerableCalc.copy(RelTraitSet traitSet,
RelNode child,
RexProgram program) |
static EnumerableCalc |
EnumerableCalc.create(RelNode input,
RexProgram program)
Creates an EnumerableCalc.
|
static Expression |
RexToLixTranslator.translateCondition(RexProgram program,
JavaTypeFactory typeFactory,
BlockBuilder list,
RexToLixTranslator.InputGetter inputGetter,
Function1<String,RexToLixTranslator.InputGetter> correlates) |
static List<Expression> |
RexToLixTranslator.translateProjects(RexProgram program,
JavaTypeFactory typeFactory,
BlockBuilder list,
PhysType outputPhysType,
Expression root,
RexToLixTranslator.InputGetter inputGetter,
Function1<String,RexToLixTranslator.InputGetter> correlates)
Translates a
RexProgram to a sequence of expressions and
declarations. |
| Modifier and Type | Field and Description |
|---|---|
private RexProgram |
JdbcRules.JdbcCalc.program |
| Constructor and Description |
|---|
JdbcCalc(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode input,
RexProgram program) |
JdbcCalc(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode input,
RexProgram program,
int flags)
Deprecated.
|
| Modifier and Type | Field and Description |
|---|---|
protected RexProgram |
Calc.program |
| Modifier and Type | Method and Description |
|---|---|
RexProgram |
Calc.getProgram() |
| Modifier and Type | Method and Description |
|---|---|
abstract Calc |
Calc.copy(RelTraitSet traitSet,
RelNode child,
RexProgram program)
Creates a copy of this
Calc. |
Calc |
Calc.copy(RelTraitSet traitSet,
RelNode child,
RexProgram program,
List<RelCollation> collationList)
Deprecated.
|
static double |
Filter.estimateFilteredRows(RelNode child,
RexProgram program)
Deprecated.
|
| Constructor and Description |
|---|
Calc(RelOptCluster cluster,
RelTraitSet traits,
RelNode child,
RexProgram program)
Creates a Calc.
|
Calc(RelOptCluster cluster,
RelTraitSet traits,
RelNode child,
RexProgram program,
List<RelCollation> collationList)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
LogicalCalc |
LogicalCalc.copy(RelTraitSet traitSet,
RelNode child,
RexProgram program) |
static LogicalCalc |
LogicalCalc.create(RelNode input,
RexProgram program) |
static RelNode |
LogicalWindow.create(RelOptCluster cluster,
RelTraitSet traitSet,
RelBuilder relBuilder,
RelNode child,
RexProgram program)
Creates a LogicalWindow by parsing a
RexProgram. |
| Constructor and Description |
|---|
LogicalCalc(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode child,
RexProgram program)
Creates a LogicalCalc.
|
LogicalCalc(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode child,
RexProgram program,
List<RelCollation> collationList)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static List<RelCollation> |
RelMdCollation.calc(RelMetadataQuery mq,
RelNode input,
RexProgram program)
Helper method to determine a
Calc's collation. |
static RelDistribution |
RelMdDistribution.calc(RelMetadataQuery mq,
RelNode input,
RexProgram program)
Helper method to determine a
Calc's distribution. |
static double |
RelMdUtil.estimateFilteredRows(RelNode child,
RexProgram program,
RelMetadataQuery mq) |
| Modifier and Type | Field and Description |
|---|---|
RexProgram |
MutableCalc.program |
| Modifier and Type | Method and Description |
|---|---|
static MutableCalc |
MutableCalc.of(MutableRel input,
RexProgram program)
Creates a MutableCalc
|
| Constructor and Description |
|---|
MutableCalc(MutableRel input,
RexProgram program) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
SqlImplementor.isStar(RexProgram program) |
private List<SqlNode> |
SqlImplementor.Context.toSql(RexProgram program,
List<RexNode> operandList) |
private SqlNode |
SqlImplementor.Context.toSql(RexProgram program,
RexFieldCollation rfc) |
SqlNode |
SqlImplementor.Context.toSql(RexProgram program,
RexNode rex)
|
SqlNode |
SqlImplementor.MatchRecognizeContext.toSql(RexProgram program,
RexNode rex) |
private SqlCall |
SqlImplementor.Context.toSql(RexProgram program,
RexOver rexOver) |
| Modifier and Type | Field and Description |
|---|---|
protected RexProgram |
CalcRelSplitter.program |
| Modifier and Type | Method and Description |
|---|---|
private RexProgram |
FilterMergeRule.createProgram(Filter filterRel)
Creates a RexProgram corresponding to a LogicalFilter
|
private RexProgram |
CalcRelSplitter.createProgramForLevel(int level,
int levelCount,
RelDataType inputRowType,
RexNode[] allExprs,
int[] exprLevels,
int[] inputExprOrdinals,
int[] projectExprOrdinals,
int conditionExprOrdinal,
RelDataType outputRowType)
Creates a program containing the expressions for a given level.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
CalcRelSplitter.RelType.canImplement(RexProgram program)
Returns whether this tester's
RelType can implement a
given program. |
protected RelNode |
CalcRelSplitter.RelType.makeRel(RelOptCluster cluster,
RelTraitSet traitSet,
RelBuilder relBuilder,
RelNode input,
RexProgram program) |
| Modifier and Type | Method and Description |
|---|---|
static RexProgram |
RexProgram.create(RelDataType inputRowType,
List<? extends RexNode> projectExprs,
RexNode conditionExpr,
List<String> fieldNames,
RexBuilder rexBuilder)
Creates a program which calculates projections and filters rows based
upon a condition.
|
static RexProgram |
RexProgram.create(RelDataType inputRowType,
List<? extends RexNode> projectExprs,
RexNode conditionExpr,
RelDataType outputRowType,
RexBuilder rexBuilder)
Creates a program which calculates projections and filters rows based
upon a condition.
|
static RexProgram |
RexProgram.createIdentity(RelDataType rowType)
Creates the identity program.
|
static RexProgram |
RexProgram.createIdentity(RelDataType rowType,
RelDataType outputRowType)
Creates a program that projects its input fields but with possibly
different names for the output fields.
|
RexProgram |
RexProgramBuilder.getProgram()
Converts the state of the program builder to an immutable program,
normalizing in the process.
|
RexProgram |
RexProgramBuilder.getProgram(boolean normalize)
Converts the state of the program builder to an immutable program.
|
static RexProgram |
RexProgramBuilder.mergePrograms(RexProgram topProgram,
RexProgram bottomProgram,
RexBuilder rexBuilder)
Merges two programs together, and normalizes the result.
|
static RexProgram |
RexProgramBuilder.mergePrograms(RexProgram topProgram,
RexProgram bottomProgram,
RexBuilder rexBuilder,
boolean normalize)
Merges two programs together.
|
RexProgram |
RexProgram.normalize(RexBuilder rexBuilder,
boolean simplify)
Deprecated.
|
static RexProgram |
RexProgramBuilder.normalize(RexBuilder rexBuilder,
RexProgram program)
Deprecated.
|
RexProgram |
RexProgram.normalize(RexBuilder rexBuilder,
RexSimplify simplify)
Creates a simplified/normalized copy of this program.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
RexMultisetUtil.containsMixing(RexProgram program)
Returns true if any expression in a program contains a mixing between
multiset and non-multiset calls.
|
static boolean |
RexMultisetUtil.containsMultiset(RexProgram program)
Returns whether a program contains a multiset.
|
static boolean |
RexOver.containsOver(RexProgram program)
Returns whether a program contains an OVER clause.
|
static RexProgramBuilder |
RexProgramBuilder.forProgram(RexProgram program,
RexBuilder rexBuilder,
boolean normalize)
Creates a program builder and initializes it from an existing program.
|
static RexProgram |
RexProgramBuilder.mergePrograms(RexProgram topProgram,
RexProgram bottomProgram,
RexBuilder rexBuilder)
Merges two programs together, and normalizes the result.
|
static RexProgram |
RexProgramBuilder.mergePrograms(RexProgram topProgram,
RexProgram bottomProgram,
RexBuilder rexBuilder,
boolean normalize)
Merges two programs together.
|
static RexProgram |
RexProgramBuilder.normalize(RexBuilder rexBuilder,
RexProgram program)
Deprecated.
|
private List<RexLocalRef> |
RexProgramBuilder.registerProjectsAndCondition(RexProgram program) |
static boolean |
RexUtil.requiresDecimalExpansion(RexProgram program,
boolean recurse)
Returns whether a
RexProgram contains expressions which require
decimal expansion. |
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.