|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 ordinalInParent th 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 expressionMethod Detail |
---|
public RelNode getChild()
public RelNode[] getInputs()
RelNode
null
.
getInputs
in interface RelNode
getInputs
in class AbstractRelNode
public double getRows()
RelNode
NOTE 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 RelNode
getRows
in class AbstractRelNode
public void childrenAccept(RelVisitor visitor)
RelNode
RelVisitor
in a visitor pattern
to traverse
the tree of relational expressions.
childrenAccept
in interface RelNode
childrenAccept
in class AbstractRelNode
public void explain(RelOptPlanWriter pw)
explain
in interface RelNode
explain
in class AbstractRelNode
public void replaceInput(int ordinalInParent, RelNode rel)
RelNode
ordinalInParent
th input. You must
override this method if you override RelNode.getInputs()
.
replaceInput
in interface RelNode
replaceInput
in class AbstractRelNode
protected RelDataType deriveRowType()
deriveRowType
in class AbstractRelNode
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |