|
|||||||||
| 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
public abstract class SingleRel
A SingleRel is a base class single-input relational expressions.
| Field Summary | |
|---|---|
private RelNode |
child
|
| 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 |
SingleRel(RelOptCluster cluster,
RelTraitSet traits,
RelNode child)
Creates a SingleRel. |
| Method Summary | |
|---|---|
void |
childrenAccept(RelVisitor visitor)
Interacts with the RelVisitor in a visitor pattern to traverse
the tree of relational expressions. |
protected RelDataType |
deriveRowType()
|
void |
explain(RelOptPlanWriter pw)
|
RelNode |
getChild()
|
RelNode[] |
getInputs()
Returns an array of this relational expression's inputs. |
double |
getRows()
Returns an estimate of the number of rows this relational expression will return. |
void |
replaceInput(int ordinalInParent,
RelNode rel)
Replaces the ordinalInParentth input. |
| Methods inherited from class org.eigenbase.rel.AbstractRelNode |
|---|
clone, cloneTraits, collectVariablesSet, collectVariablesUsed, computeDigest, computeSelfCost, getChildExps, getCluster, getCollationList, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getOrCreateCorrelVariable, getQuery, getRelTypeName, getRowType, getTable, getTraits, getVariablesStopped, inheritTraitsFrom, isAccessTo, isDistinct, isValid, onRegister, recomputeDigest, register, registerCorrelVariable, setCorrelVariable, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private RelNode child
| Constructor Detail |
|---|
protected SingleRel(RelOptCluster cluster,
RelTraitSet traits,
RelNode child)
SingleRel.
cluster - RelOptCluster this relational expression belongs
tochild - input relational expression| Method Detail |
|---|
public RelNode getChild()
public RelNode[] getInputs()
RelNodenull.
getInputs in interface RelNodegetInputs in class AbstractRelNodepublic 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 AbstractRelNodepublic void childrenAccept(RelVisitor visitor)
RelNodeRelVisitor in a visitor pattern to traverse
the tree of relational expressions.
childrenAccept in interface RelNodechildrenAccept in class AbstractRelNodepublic void explain(RelOptPlanWriter pw)
explain in interface RelNodeexplain in class AbstractRelNode
public void replaceInput(int ordinalInParent,
RelNode rel)
RelNodeordinalInParentth input. You must
override this method if you override RelNode.getInputs().
replaceInput in interface RelNodereplaceInput in class AbstractRelNodeprotected RelDataType deriveRowType()
deriveRowType in class AbstractRelNode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||