com.lucidera.lcs
Class LcsIndexBitOpRel

java.lang.Object
  extended by org.eigenbase.rel.AbstractRelNode
      extended by net.sf.farrago.fennel.rel.FennelMultipleRel
          extended by com.lucidera.lcs.LcsIndexBitOpRel
All Implemented Interfaces:
Cloneable, FennelRel, RelNode
Direct Known Subclasses:
LcsIndexIntersectRel, LcsIndexMinusRel

public abstract class LcsIndexBitOpRel
extends FennelMultipleRel

LcsIndexBitOpRel is a base class for implementing bit operation streams with 2 or more inputs

Version:
$Id: //open/dev/farrago/src/com/lucidera/lcs/LcsIndexBitOpRel.java#8 $
Author:
Zelaine Fong

Field Summary
(package private)  LcsTable lcsTable
           
(package private)  FennelRelParamId rowLimitParamId
           
(package private)  FennelRelParamId startRidParamId
           
 
Fields inherited from class net.sf.farrago.fennel.rel.FennelMultipleRel
inputs
 
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
LcsIndexBitOpRel(RelOptCluster cluster, RelNode[] inputs, LcsTable lcsTable, FennelRelParamId startRidParamId, FennelRelParamId rowLimitParamId)
           
 
Method Summary
 RelOptCost computeSelfCost(RelOptPlanner planner)
          Returns the cost of this plan (not including children).
protected  RelDataType deriveRowType()
           
 void explain(RelOptPlanWriter pw)
           
 FennelRelParamId getRowLimitParamId()
           
 FennelRelParamId getStartRidParamId()
           
protected  void setBitOpChildStreams(FennelRelImplementor implementor, FemLbmBitOpStreamDef bitOpStream)
          Connects the children input streams to the parent bit operation stream
 
Methods inherited from class net.sf.farrago.fennel.rel.FennelMultipleRel
getCollations, getFarragoTypeFactory, getInputs, implementFennelChild, replaceInput
 
Methods inherited from class org.eigenbase.rel.AbstractRelNode
childrenAccept, clone, cloneTraits, collectVariablesSet, collectVariablesUsed, computeDigest, getChildExps, getCluster, getCollationList, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getOrCreateCorrelVariable, getQuery, getRelTypeName, getRows, 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, getChildExps, getCluster, getCollationList, getConvention, getCorrelVariable, getDescription, getDigest, getExpectedInputRowType, getId, getInput, getOrCreateCorrelVariable, getQuery, getRelTypeName, getRows, getRowType, getTable, getTraits, getVariablesStopped, isAccessTo, isDistinct, isValid, onRegister, recomputeDigest, registerCorrelVariable, setCorrelVariable
 

Field Detail

lcsTable

final LcsTable lcsTable

startRidParamId

FennelRelParamId startRidParamId

rowLimitParamId

FennelRelParamId rowLimitParamId
Constructor Detail

LcsIndexBitOpRel

public LcsIndexBitOpRel(RelOptCluster cluster,
                        RelNode[] inputs,
                        LcsTable lcsTable,
                        FennelRelParamId startRidParamId,
                        FennelRelParamId rowLimitParamId)
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

explain

public void explain(RelOptPlanWriter pw)
Specified by:
explain in interface RelNode
Overrides:
explain in class AbstractRelNode

deriveRowType

protected RelDataType deriveRowType()
Overrides:
deriveRowType in class FennelMultipleRel

setBitOpChildStreams

protected void setBitOpChildStreams(FennelRelImplementor implementor,
                                    FemLbmBitOpStreamDef bitOpStream)
Connects the children input streams to the parent bit operation stream

Parameters:
implementor - implementor for the bit operation stream
bitOpStream - the bit operation stream

getStartRidParamId

public FennelRelParamId getStartRidParamId()

getRowLimitParamId

public FennelRelParamId getRowLimitParamId()