net.sf.saffron.oj.rel
Class ForTerminatorRel

java.lang.Object
  |
  +--net.sf.saffron.rel.SaffronRel
        |
        +--net.sf.saffron.rel.SingleRel
              |
              +--net.sf.saffron.oj.rel.SingleTerminatorRel
                    |
                    +--net.sf.saffron.oj.rel.ForTerminatorRel
All Implemented Interfaces:
TerminatorRel

public class ForTerminatorRel
extends SingleTerminatorRel

Converts a SaffronRel of CallingConvention.JAVA into a Java for-loop.


Field Summary
(package private)  StatementList body
           
(package private)  String label
           
(package private)  Variable variable
           
 
Fields inherited from class net.sf.saffron.rel.SingleRel
child
 
Fields inherited from class net.sf.saffron.rel.SaffronRel
cluster, digest, id, rowType
 
Constructor Summary
ForTerminatorRel(VolcanoCluster cluster, SaffronRel child, Variable variable, StatementList body, String label)
           
 
Method Summary
 Object clone()
           
 Object implement(RelImplementor implementor, int ordinal)
          Create a plan for this expression according to a calling convention.
 
Methods inherited from class net.sf.saffron.oj.rel.SingleTerminatorRel
computeSelfCost, deriveRowType, getConvention
 
Methods inherited from class net.sf.saffron.rel.SingleRel
childrenAccept, explain, getInputs, getRows, replaceInput
 
Methods inherited from class net.sf.saffron.rel.SaffronRel
computeDigest, getChildExps, getCluster, getCorrelVariable, getId, getInput, getOrCreateCorrelVariable, getQualifier, getQuery, getRelTypeName, getRowType, getTable, getVariablesStopped, 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
 

Field Detail

body

StatementList body

label

String label

variable

Variable variable
Constructor Detail

ForTerminatorRel

public ForTerminatorRel(VolcanoCluster cluster,
                        SaffronRel child,
                        Variable variable,
                        StatementList body,
                        String label)
Method Detail

clone

public Object clone()
Specified by:
clone 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.

SourceForge.net_Logo