net.sf.saffron.rel
Class SingleRel
java.lang.Object
|
+--net.sf.saffron.rel.SaffronRel
|
+--net.sf.saffron.rel.SingleRel
- Direct Known Subclasses:
- AggregateRel, ConverterRel, DistinctRel, FilterRel, ProjectRelBase, SingleTerminatorRel, SortRel, TableModificationRel, VolcanoPlannerTest.TestSingleRel
- public abstract class SingleRel
- extends SaffronRel
A SingleRel
is a base class single-input relational
expressions.
- Since:
- 23 September, 2001
- Version:
- $Id: //open/saffron/src/net/sf/saffron/rel/SingleRel.java#5 $
- Author:
- jhyde
Methods inherited from class net.sf.saffron.rel.SaffronRel |
clone, computeDigest, computeSelfCost, getChildExps, getCluster, getConvention, getCorrelVariable, getId, getInput, getOrCreateCorrelVariable, getQualifier, getQuery, getRelTypeName, getRowType, getTable, getVariablesStopped, implement, implementFieldAccess, isAccessTo, isDistinct, onRegister, recomputeDigest, register, registerCorrelVariable, setCorrelVariable, toString |
child
public SaffronRel child
SingleRel
protected SingleRel(VolcanoCluster cluster,
SaffronRel child)
- Creates a
SingleRel
.
- Parameters:
cluster
- VolcanoCluster
this relational expression
belongs tochild
- input relational expression
getInputs
public SaffronRel[] getInputs()
- Description copied from class:
SaffronRel
- Returns an array of this
SaffronRel
's inputs. If there
are no inputs, returns an empty array, not null
.
- Overrides:
getInputs
in class SaffronRel
getRows
public double getRows()
- Description copied from class:
SaffronRel
- Returns an estimate of the number of rows this relational expression
will return.
- Overrides:
getRows
in class SaffronRel
childrenAccept
public void childrenAccept(RelVisitor visitor)
- Overrides:
childrenAccept
in class SaffronRel
explain
public void explain(PlanWriter pw)
- Overrides:
explain
in class SaffronRel
replaceInput
public void replaceInput(int ordinalInParent,
SaffronRel rel)
- Description copied from class:
SaffronRel
- Replaces the
ordinalInParent
th input. You must
override this method if you override SaffronRel.getInputs()
.
- Overrides:
replaceInput
in class SaffronRel
deriveRowType
protected SaffronType deriveRowType()
- Specified by:
deriveRowType
in class SaffronRel