public abstract class ConverterImpl extends SingleRel implements Converter
Converter
.RelNode.Context
Modifier and Type | Field and Description |
---|---|
protected RelTraitSet |
inTraits |
protected RelTraitDef |
traitDef |
digest, id, rowType, traitSet
Modifier | Constructor and Description |
---|---|
protected |
ConverterImpl(RelOptCluster cluster,
RelTraitDef traitDef,
RelTraitSet traits,
RelNode child)
Creates a ConverterImpl.
|
Modifier and Type | Method and Description |
---|---|
protected Error |
cannotImplement()
Deprecated.
|
RelOptCost |
computeSelfCost(RelOptPlanner planner,
RelMetadataQuery mq)
Returns the cost of this plan (not including children).
|
RelTraitSet |
getInputTraits()
Returns the trait of the input relational expression.
|
RelTraitDef |
getTraitDef()
Returns the definition of trait which this converter works on.
|
childrenAccept, deriveRowType, estimateRowCount, explainTerms, getInput, getInputs, replaceInput
accept, accept, collectVariablesSet, collectVariablesUsed, computeDigest, computeSelfCost, copy, explain, getChildExps, getCluster, getCollationList, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getQuery, getRelTypeName, getRows, getRowType, getTable, getTraitSet, getVariablesSet, getVariablesStopped, isDistinct, isKey, isValid, isValid, metadata, onRegister, recomputeDigest, register, sole, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
accept, accept, childrenAccept, collectVariablesSet, collectVariablesUsed, 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
getCluster, getDescription, getDigest, getId, getTraitSet
protected RelTraitSet inTraits
protected final RelTraitDef traitDef
protected ConverterImpl(RelOptCluster cluster, RelTraitDef traitDef, RelTraitSet traits, RelNode child)
cluster
- planner's clustertraitDef
- the RelTraitDef this converter convertstraits
- the output traits of this converterchild
- child rel (provides input traits)public RelOptCost computeSelfCost(RelOptPlanner planner, RelMetadataQuery mq)
RelNode
NOTE 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 RelNode
computeSelfCost
in class AbstractRelNode
planner
- Planner for cost calculationmq
- Metadata query@Deprecated protected Error cannotImplement()
public RelTraitSet getInputTraits()
Converter
getInputTraits
in interface Converter
public RelTraitDef getTraitDef()
Converter
The input relational expression (matched by the rule) must possess
this trait and have the value given by Converter.getInputTraits()
, and the
traits of the output of this converter given by RelOptNode.getTraitSet()
will
have one trait altered and the other orthogonal traits will be the same.
getTraitDef
in interface Converter
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.