|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eigenbase.rel.AbstractRelNode
org.eigenbase.rel.SingleRel
org.eigenbase.rel.CalcRelBase
public abstract class CalcRelBase
CalcRelBase is an abstract base class for implementations of
CalcRel.
| Field Summary | |
|---|---|
private List<RelCollation> |
collationList
|
protected RexProgram |
program
|
| Fields inherited from class org.eigenbase.rel.AbstractRelNode |
|---|
digest, id, nextId, rowType, traits |
| Fields inherited from interface org.eigenbase.rel.RelNode |
|---|
emptyArray |
| Constructor Summary | |
|---|---|
protected |
CalcRelBase(RelOptCluster cluster,
RelTraitSet traits,
RelNode child,
RelDataType rowType,
RexProgram program,
List<RelCollation> collationList)
|
| Method Summary | |
|---|---|
RelOptCost |
computeSelfCost(RelOptPlanner planner)
Returns the cost of this plan (not including children). |
void |
explain(RelOptPlanWriter pw)
|
RexNode[] |
getChildExps()
Returns an array of this relational expression's child expressions (not including the inputs returned by RelNode.getInputs(). |
List<RelCollation> |
getCollationList()
Returns a description of the physical ordering (or orderings) of this relational expression. |
RexProgram |
getProgram()
|
double |
getRows()
Returns an estimate of the number of rows this relational expression will return. |
boolean |
isValid(boolean fail)
Returns whether this relational expression is valid. |
| Methods inherited from class org.eigenbase.rel.SingleRel |
|---|
childrenAccept, deriveRowType, getChild, getInputs, replaceInput |
| Methods inherited from class org.eigenbase.rel.AbstractRelNode |
|---|
clone, cloneTraits, collectVariablesSet, collectVariablesUsed, computeDigest, getCluster, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getOrCreateCorrelVariable, getQuery, getRelTypeName, getRowType, getTable, getTraits, getVariablesStopped, inheritTraitsFrom, isAccessTo, isDistinct, onRegister, recomputeDigest, register, registerCorrelVariable, setCorrelVariable, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final RexProgram program
private final List<RelCollation> collationList
| Constructor Detail |
|---|
protected CalcRelBase(RelOptCluster cluster,
RelTraitSet traits,
RelNode child,
RelDataType rowType,
RexProgram program,
List<RelCollation> collationList)
| Method Detail |
|---|
public boolean isValid(boolean fail)
RelNodeIf assertions are enabled, this method is typically called with
fail = true, as follows:
This signals that the method can throw anassert rel.isValid(true)
AssertionError if it is
not valid.
isValid in interface RelNodeisValid in class AbstractRelNodefail - Whether to fail if invalid
public RexProgram getProgram()
public double getRows()
RelNodeNOTE jvs 29-Mar-2006: Don't call this method directly. Instead, use
RelMetadataQuery.getRowCount(org.eigenbase.rel.RelNode), which gives plugins a chance to
override the rel's default ideas about row count.
getRows in interface RelNodegetRows in class SingleRelpublic List<RelCollation> getCollationList()
RelNode
getCollationList in interface RelNodegetCollationList in class AbstractRelNodepublic RelOptCost computeSelfCost(RelOptPlanner planner)
RelNodeNOTE jvs 29-Mar-2006: Don't call this method directly. Instead, use
RelMetadataQuery.getNonCumulativeCost(org.eigenbase.rel.RelNode), which gives plugins a
chance to override the rel's default ideas about cost.
computeSelfCost in interface RelNodecomputeSelfCost in class AbstractRelNodepublic RexNode[] getChildExps()
RelNodeRelNode.getInputs(). If there are no
child expressions, returns an empty array, not null.
getChildExps in interface RelNodegetChildExps in class AbstractRelNodepublic void explain(RelOptPlanWriter pw)
explain in interface RelNodeexplain in class SingleRel
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||