public class HepRelVertex extends AbstractRelNode
RelNode as a vertex in a DAG representing
the entire query expression.RelNode.Context| Modifier and Type | Field and Description |
|---|---|
private RelNode |
currentRel
Wrapped rel currently chosen for implementation of expression.
|
digest, id, rowType, traitSet| Constructor and Description |
|---|
HepRelVertex(RelNode rel) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
computeDigest()
Computes the digest.
|
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.
|
protected RelDataType |
deriveRowType() |
double |
estimateRowCount(RelMetadataQuery mq)
Returns an estimate of the number of rows this relational expression will
return.
|
void |
explain(RelWriter pw)
Describes the inputs and attributes of this relational expression.
|
RelNode |
getCurrentRel() |
(package private) void |
replaceRel(RelNode newRel)
Replaces the implementation for this expression with a new one.
|
accept, accept, childrenAccept, collectVariablesSet, collectVariablesUsed, computeSelfCost, explainTerms, getChildExps, getCluster, getCollationList, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getInputs, getQuery, getRelTypeName, getRows, getRowType, getTable, getTraitSet, getVariablesSet, getVariablesStopped, isDistinct, isKey, isValid, isValid, metadata, onRegister, recomputeDigest, register, replaceInput, sole, toStringprivate RelNode currentRel
HepRelVertex(RelNode rel)
public void explain(RelWriter pw)
RelNodesuper.explain, then call the
RelWriterImpl.input(String, RelNode)
and
RelWriterImpl.item(String, Object)
methods for each input and attribute.explain in interface RelNodeexplain in class AbstractRelNodepw - Plan writerpublic 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 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 double estimateRowCount(RelMetadataQuery mq)
RelNodeNOTE jvs 29-Mar-2006: Don't call this method directly. Instead, use
RelMetadataQuery.getRowCount(org.apache.calcite.rel.RelNode), which gives plugins a chance to
override the rel's default ideas about row count.
estimateRowCount in interface RelNodeestimateRowCount in class AbstractRelNodemq - Metadata queryprotected RelDataType deriveRowType()
deriveRowType in class AbstractRelNodeprotected String computeDigest()
AbstractRelNodecomputeDigest in class AbstractRelNodevoid replaceRel(RelNode newRel)
newRel - new expressionpublic RelNode getCurrentRel()
Copyright © 2012–2018 The Apache Software Foundation. All rights reserved.