public class EnumerableInterpreter extends SingleRel implements EnumerableRel
Although quite a few kinds of RelNode can
be interpreted, this is only created by default for
FilterableTable and
ProjectableFilterableTable.
EnumerableRel.Prefer, EnumerableRel.ResultRelNode.Contextdigest, id, rowType, traitSet| Constructor and Description |
|---|
EnumerableInterpreter(RelOptCluster cluster,
RelTraitSet traitSet,
RelNode input,
double factor)
Creates an EnumerableInterpreter.
|
| Modifier and Type | Method and Description |
|---|---|
@Nullable RelOptCost |
computeSelfCost(RelOptPlanner planner,
RelMetadataQuery mq)
Returns the cost of this plan (not including children).
|
RelNode |
copy(RelTraitSet traitSet,
List<RelNode> inputs)
Creates a copy of this relational expression, perhaps changing traits and
inputs.
|
static EnumerableInterpreter |
create(RelNode input,
double factor)
Creates an EnumerableInterpreter.
|
EnumerableRel.Result |
implement(EnumerableRelImplementor implementor,
EnumerableRel.Prefer pref)
Creates a plan for this expression according to a calling convention.
|
childrenAccept, deriveRowType, estimateRowCount, explainTerms, getInput, getInputs, replaceInputaccept, accept, collectVariablesSet, collectVariablesUsed, deepEquals, deepHashCode, equals, explain, getCluster, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getRelDigest, getRelTypeName, getRowType, getTable, getTraitSet, getVariablesSet, hashCode, isEnforcer, isValid, metadata, onRegister, recomputeDigest, register, sole, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitderiveTraits, getDeriveMode, passThroughTraitsderive, derive, passThroughaccept, accept, childrenAccept, collectVariablesSet, collectVariablesUsed, deepEquals, deepHashCode, estimateRowCount, explain, explain, fieldIsNullable, getConvention, getCorrelVariable, getDigest, getExpectedInputRowType, getInput, getInputs, getRelDigest, getRelTypeName, getRowType, getTable, getVariablesSet, isEnforcer, isValid, metadata, onRegister, recomputeDigest, register, replaceInputgetCluster, getDescription, getId, getTraitSetpublic EnumerableInterpreter(RelOptCluster cluster, RelTraitSet traitSet, RelNode input, double factor)
Use create(org.apache.calcite.rel.RelNode, double) unless you know what you're doing.
cluster - ClustertraitSet - Traitsinput - Input relationfactor - Cost multiply factorpublic static EnumerableInterpreter create(RelNode input, double factor)
input - Input relationfactor - Cost multiply factorpublic @Nullable RelOptCost computeSelfCost(RelOptPlanner planner, RelMetadataQuery mq)
RelNodeNOTE jvs 29-Mar-2006: Don't call this method directly. Instead, use
RelMetadataQuery.getNonCumulativeCost(org.apache.calcite.rel.RelNode), which gives plugins a
chance to override the rel's default ideas about cost.
computeSelfCost in interface RelNodecomputeSelfCost in class AbstractRelNodeplanner - Planner for cost calculationmq - Metadata querypublic RelNode copy(RelTraitSet traitSet, List<RelNode> inputs)
RelNodeSub-classes with other important attributes are encouraged to create variants of this method with more parameters.
copy in interface RelNodecopy in class AbstractRelNodetraitSet - Trait setinputs - Inputspublic EnumerableRel.Result implement(EnumerableRelImplementor implementor, EnumerableRel.Prefer pref)
EnumerableRelimplement in interface EnumerableRelimplementor - Implementorpref - Preferred representation for rows in result expressionCopyright © 2012-2022 Apache Software Foundation. All Rights Reserved.