net.sf.farrago.fennel.rel
Class FennelSingleRel

java.lang.Object
  extended by org.eigenbase.rel.AbstractRelNode
      extended by org.eigenbase.rel.SingleRel
          extended by net.sf.farrago.fennel.rel.FennelSingleRel
All Implemented Interfaces:
Cloneable, FennelRel, RelNode
Direct Known Subclasses:
FennelBernoulliSamplingRel, FennelBufferRel, FennelCalcRel, FennelIdxWriteRel, FennelOptionalRel, FennelPullCollectRel, FennelPullUncollectRel, FennelRenameRel, FennelReshapeRel, FennelSortRel, FennelTempIdxSearchRel, FennelWindowRel, FtrsIndexBuilderRel, FtrsIndexSearchRel, LcsIndexBuilderRel, LcsIndexMergeRel, LcsNormalizerRel

public abstract class FennelSingleRel
extends SingleRel
implements FennelRel

FennelSingleRel is a FennelRel corresponding to SingleRel, and which only takes a FennelRel as input.

Version:
$Id: //open/dev/farrago/src/net/sf/farrago/fennel/rel/FennelSingleRel.java#1 $
Author:
John V. Sichi

Field Summary
 
Fields inherited from class org.eigenbase.rel.AbstractRelNode
digest, id, rowType, traits
 
Fields inherited from interface net.sf.farrago.query.FennelRel
FENNEL_EXEC_CONVENTION
 
Fields inherited from interface org.eigenbase.rel.RelNode
emptyArray
 
Constructor Summary
protected FennelSingleRel(RelOptCluster cluster, RelNode child)
          Creates a new FennelSingleRel object.
protected FennelSingleRel(RelOptCluster cluster, RelTraitSet traits, RelNode child)
          Creates a new FennelSingleRel object with specific traits.
 
Method Summary
 RelFieldCollation[] getCollations()
          TODO: jhyde, 2006/3/28: unify with RelNode.getCollationList()
 FarragoTypeFactory getFarragoTypeFactory()
           
private  FennelRel getFennelInput()
          NOTE: this method is intentionally private because interactions between FennelRels must be mediated by FarragoRelImplementor.
 Object implementFennelChild(FennelRelImplementor implementor)
          Visits this relational expression as part of the implementation process.
 
Methods inherited from class org.eigenbase.rel.SingleRel
childrenAccept, deriveRowType, explain, getChild, getInputs, getRows, replaceInput
 
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
 
Methods inherited from interface net.sf.farrago.query.FennelRel
toStreamDef
 
Methods inherited from interface org.eigenbase.rel.RelNode
childrenAccept, clone, collectVariablesSet, collectVariablesUsed, computeSelfCost, explain, getChildExps, getCluster, getCollationList, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getInputs, getOrCreateCorrelVariable, getQuery, getRelTypeName, getRows, getRowType, getTable, getTraits, getVariablesStopped, isAccessTo, isDistinct, isValid, onRegister, recomputeDigest, registerCorrelVariable, replaceInput, setCorrelVariable
 

Constructor Detail

FennelSingleRel

protected FennelSingleRel(RelOptCluster cluster,
                          RelNode child)
Creates a new FennelSingleRel object.

Parameters:
cluster - RelOptCluster for this rel
child - input rel

FennelSingleRel

protected FennelSingleRel(RelOptCluster cluster,
                          RelTraitSet traits,
                          RelNode child)
Creates a new FennelSingleRel object with specific traits.

Parameters:
cluster - RelOptCluster for this rel
traits - traits for this rel
child - input rel
Method Detail

getFarragoTypeFactory

public FarragoTypeFactory getFarragoTypeFactory()

getFennelInput

private FennelRel getFennelInput()
NOTE: this method is intentionally private because interactions between FennelRels must be mediated by FarragoRelImplementor.

Returns:
this rel's input, which must already have been converted to a FennelRel

getCollations

public RelFieldCollation[] getCollations()
Description copied from interface: FennelRel

TODO: jhyde, 2006/3/28: unify with RelNode.getCollationList()

Specified by:
getCollations in interface FennelRel
Returns:
the sort order produced by this FennelRel, or an empty array if the output is not guaranteed to be in any particular order.

implementFennelChild

public Object implementFennelChild(FennelRelImplementor implementor)
Description copied from interface: FennelRel
Visits this relational expression as part of the implementation process. Fennel relational expressions are implemented in a two-phase process: first call this method, then call FennelRel.toStreamDef(net.sf.farrago.query.FennelRelImplementor).

Specified by:
implementFennelChild in interface FennelRel