Class EnumerableCalc
- java.lang.Object
-
- org.apache.calcite.rel.AbstractRelNode
-
- org.apache.calcite.rel.SingleRel
-
- org.apache.calcite.rel.core.Calc
-
- org.apache.calcite.adapter.enumerable.EnumerableCalc
-
- All Implemented Interfaces:
java.lang.Cloneable
,EnumerableRel
,RelOptNode
,RelNode
public class EnumerableCalc extends Calc implements EnumerableRel
Implementation ofCalc
inenumerable calling convention
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.calcite.adapter.enumerable.EnumerableRel
EnumerableRel.Prefer, EnumerableRel.Result
-
Nested classes/interfaces inherited from interface org.apache.calcite.rel.RelNode
RelNode.Context
-
-
Field Summary
-
Fields inherited from class org.apache.calcite.rel.AbstractRelNode
digest, id, rowType, traitSet
-
Fields inherited from interface org.apache.calcite.adapter.enumerable.EnumerableRel
FILTER_FACTORY, PROJECT_FACTORY
-
-
Constructor Summary
Constructors Constructor Description EnumerableCalc(RelOptCluster cluster, RelTraitSet traitSet, RelNode input, RexProgram program)
Creates an EnumerableCalc.EnumerableCalc(RelOptCluster cluster, RelTraitSet traitSet, RelNode input, RexProgram program, java.util.List<RelCollation> collationList)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EnumerableCalc
copy(RelTraitSet traitSet, RelNode child, RexProgram program)
Creates a copy of thisCalc
.static EnumerableCalc
create(RelNode input, RexProgram program)
Creates an EnumerableCalc.RexProgram
getProgram()
EnumerableRel.Result
implement(EnumerableRelImplementor implementor, EnumerableRel.Prefer pref)
Creates a plan for this expression according to a calling convention.-
Methods inherited from class org.apache.calcite.rel.core.Calc
accept, computeSelfCost, copy, copy, estimateRowCount, explainTerms, isValid
-
Methods inherited from class org.apache.calcite.rel.SingleRel
childrenAccept, deriveRowType, getInput, getInputs, replaceInput
-
Methods inherited from class org.apache.calcite.rel.AbstractRelNode
accept, collectVariablesSet, collectVariablesUsed, computeDigest, computeSelfCost, explain, getChildExps, getCluster, getCollationList, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getQuery, getRelTypeName, getRows, getRowType, getTable, getTraitSet, getVariablesSet, getVariablesStopped, isDistinct, isKey, isValid, metadata, onRegister, recomputeDigest, register, sole, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.calcite.rel.RelNode
accept, accept, childrenAccept, collectVariablesSet, collectVariablesUsed, computeSelfCost, computeSelfCost, copy, estimateRowCount, explain, getChildExps, getCollationList, getConvention, getCorrelVariable, getExpectedInputRowType, getInput, getInputs, getQuery, getRelTypeName, getRows, getRowType, getTable, getVariablesSet, getVariablesStopped, isDistinct, isKey, isValid, isValid, metadata, onRegister, recomputeDigest, register, replaceInput
-
Methods inherited from interface org.apache.calcite.plan.RelOptNode
getCluster, getDescription, getDigest, getId, getTraitSet
-
-
-
-
Constructor Detail
-
EnumerableCalc
public EnumerableCalc(RelOptCluster cluster, RelTraitSet traitSet, RelNode input, RexProgram program)
Creates an EnumerableCalc.Use
create(org.apache.calcite.rel.RelNode, org.apache.calcite.rex.RexProgram)
unless you know what you're doing.
-
EnumerableCalc
@Deprecated public EnumerableCalc(RelOptCluster cluster, RelTraitSet traitSet, RelNode input, RexProgram program, java.util.List<RelCollation> collationList)
Deprecated.
-
-
Method Detail
-
create
public static EnumerableCalc create(RelNode input, RexProgram program)
Creates an EnumerableCalc.
-
copy
public EnumerableCalc copy(RelTraitSet traitSet, RelNode child, RexProgram program)
Description copied from class:Calc
Creates a copy of thisCalc
.- Specified by:
copy
in classCalc
- Parameters:
traitSet
- Traitschild
- Input relationprogram
- Calc program- Returns:
- New
Calc
if any parameter differs from the value of thisCalc
, or justthis
if all the parameters are the same - See Also:
Calc.copy(org.apache.calcite.plan.RelTraitSet, java.util.List)
-
implement
public EnumerableRel.Result implement(EnumerableRelImplementor implementor, EnumerableRel.Prefer pref)
Description copied from interface:EnumerableRel
Creates a plan for this expression according to a calling convention.- Specified by:
implement
in interfaceEnumerableRel
- Parameters:
implementor
- Implementorpref
- Preferred representation for rows in result expression- Returns:
- Plan for this expression according to a calling convention
-
getProgram
public RexProgram getProgram()
- Overrides:
getProgram
in classCalc
-
-