org.eigenbase.relopt.volcano
Class VolcanoPlannerTraitTest.TestSingleRel

java.lang.Object
  extended by org.eigenbase.rel.AbstractRelNode
      extended by org.eigenbase.rel.SingleRel
          extended by org.eigenbase.relopt.volcano.VolcanoPlannerTraitTest.TestSingleRel
All Implemented Interfaces:
Cloneable, RelNode
Direct Known Subclasses:
VolcanoPlannerTraitTest.IterSingleRel, VolcanoPlannerTraitTest.NoneSingleRel
Enclosing class:
VolcanoPlannerTraitTest

private abstract static class VolcanoPlannerTraitTest.TestSingleRel
extends SingleRel


Field Summary
 
Fields inherited from class org.eigenbase.rel.AbstractRelNode
digest, id, rowType, traits
 
Fields inherited from interface org.eigenbase.rel.RelNode
emptyArray
 
Constructor Summary
protected VolcanoPlannerTraitTest.TestSingleRel(RelOptCluster cluster, RelTraitSet traits, RelNode child)
           
 
Method Summary
 RelOptCost computeSelfCost(RelOptPlanner planner)
          Returns the cost of this plan (not including children).
protected  RelDataType deriveRowType()
           
 
Methods inherited from class org.eigenbase.rel.SingleRel
childrenAccept, explain, getChild, getInputs, getRows, replaceInput
 
Methods inherited from class org.eigenbase.rel.AbstractRelNode
clone, cloneTraits, collectVariablesSet, collectVariablesUsed, computeDigest, 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
 

Constructor Detail

VolcanoPlannerTraitTest.TestSingleRel

protected VolcanoPlannerTraitTest.TestSingleRel(RelOptCluster cluster,
                                                RelTraitSet traits,
                                                RelNode child)
Method Detail

computeSelfCost

public RelOptCost computeSelfCost(RelOptPlanner planner)
Description copied from interface: RelNode
Returns the cost of this plan (not including children). The base implementation throws an error; derived classes should override.

NOTE 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.

Specified by:
computeSelfCost in interface RelNode
Overrides:
computeSelfCost in class AbstractRelNode

deriveRowType

protected RelDataType deriveRowType()
Overrides:
deriveRowType in class SingleRel