net.sf.saffron.oj.rel
Class JavaNestedLoopJoinRel

java.lang.Object
  |
  +--net.sf.saffron.rel.SaffronRel
        |
        +--net.sf.saffron.rel.JoinRel
              |
              +--net.sf.saffron.oj.rel.JavaNestedLoopJoinRel
All Implemented Interfaces:
JavaRel

public class JavaNestedLoopJoinRel
extends JoinRel
implements JavaRel

Implements the JoinRel relational expression using the nested-loop algorithm, with output as Java code.


Nested Class Summary
 
Nested classes inherited from class net.sf.saffron.rel.JoinRel
JoinRel.JoinType
 
Field Summary
 
Fields inherited from class net.sf.saffron.rel.JoinRel
condition, joinType, left, right, variablesStopped
 
Fields inherited from class net.sf.saffron.rel.SaffronRel
cluster, digest, id, rowType
 
Constructor Summary
JavaNestedLoopJoinRel(VolcanoCluster cluster, SaffronRel left, SaffronRel right, RexNode condition, int joinType, Set variablesStopped)
           
 
Method Summary
 Object clone()
           
 PlanCost computeSelfCost(SaffronPlanner planner)
          Returns the cost of this plan (not including children).
 CallingConvention getConvention()
          Returns a value from CallingConvention.
 Object implement(RelImplementor implementor, int ordinal)
          Create a plan for this expression according to a calling convention.
 Expression implementSelf(RelImplementor implementor)
          Returns a Java expression which yields the current row of this relational expression.
 
Methods inherited from class net.sf.saffron.rel.JoinRel
childrenAccept, deriveRowType, explain, getChildExps, getCondition, getInputs, getJoinType, getLeft, getRight, getVariablesStopped, registerStoppedVariable, replaceInput, setVariablesStopped, switchJoinType
 
Methods inherited from class net.sf.saffron.rel.SaffronRel
computeDigest, getCluster, getCorrelVariable, getId, getInput, getOrCreateCorrelVariable, getQualifier, getQuery, getRelTypeName, getRows, getRowType, getTable, implementFieldAccess, isAccessTo, isDistinct, onRegister, recomputeDigest, register, registerCorrelVariable, setCorrelVariable, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaNestedLoopJoinRel

public JavaNestedLoopJoinRel(VolcanoCluster cluster,
                             SaffronRel left,
                             SaffronRel right,
                             RexNode condition,
                             int joinType,
                             Set variablesStopped)
Method Detail

getConvention

public CallingConvention getConvention()
Description copied from class: SaffronRel
Returns a value from CallingConvention.

Overrides:
getConvention in class SaffronRel

clone

public Object clone()
Overrides:
clone in class JoinRel

computeSelfCost

public PlanCost computeSelfCost(SaffronPlanner planner)
Description copied from class: SaffronRel
Returns the cost of this plan (not including children). The base implementation throws an error; derived classes should override.

Overrides:
computeSelfCost in class SaffronRel

implement

public Object implement(RelImplementor implementor,
                        int ordinal)
Description copied from class: SaffronRel
Create a plan for this expression according to a calling convention.

Overrides:
implement in class SaffronRel
Parameters:
implementor - implementor
ordinal - indicates our position in the pre-, in- and postfix walk over the tree; ordinal is -1 when called from the parent, and i when called from the ith child.

implementSelf

public Expression implementSelf(RelImplementor implementor)
Returns a Java expression which yields the current row of this relational expression.

Specified by:
implementSelf in interface JavaRel
See Also:
RelImplementor.bind(SaffronRel,SaffronRel)

SourceForge.net_Logo