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.
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 |
JavaNestedLoopJoinRel
public JavaNestedLoopJoinRel(VolcanoCluster cluster,
SaffronRel left,
SaffronRel right,
RexNode condition,
int joinType,
Set variablesStopped)
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
- implementorordinal
- 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
i
th 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)