saffron.rel.java
Class JavaOneRow

java.lang.Object
  |
  +--saffron.rel.Rel
        |
        +--saffron.rel.OneRow
              |
              +--saffron.rel.java.JavaOneRow

public class JavaOneRow
extends OneRow

JavaOneRow implements OneRow inline.


Nested Class Summary
 
Nested classes inherited from class saffron.rel.OneRow
 
Nested classes inherited from class saffron.rel.Rel
 
Field Summary
 
Fields inherited from class saffron.rel.Rel
cluster, digest, id, rowType
 
Constructor Summary
JavaOneRow(Cluster cluster)
           
 
Method Summary
 Object clone()
           
 CallingConvention getConvention()
          Returns a value from CallingConvention.
 Object implement(Implementor implementor, int ordinal)
          Create a plan for this expression according to a calling convention.
 Expression implementSelf(Implementor implementor)
          Returns a Java expression which yields the current row of this relational expression.
 
Methods inherited from class saffron.rel.OneRow
computeSelfCost, deriveRowType, register
 
Methods inherited from class saffron.rel.Rel
childrenAccept, computeDigest, explain, getChildExps, getCluster, getCorelVariable, getEnvironment, getId, getInput, getInputs, getOrCreateCorelVariable, getParentEnv, getQualifier, getQuery, getRelTypeName, getRows, getRowType, getTable, getType, getVariablesStopped, implementExp, implementExps, implementFieldAccess, isAccessTo, isDistinct, onRegister, recomputeDigest, registerCorelVariable, replaceInput, setCorelVariable, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaOneRow

public JavaOneRow(Cluster cluster)
Method Detail

clone

public Object clone()
Overrides:
clone in class OneRow

getConvention

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

Overrides:
getConvention in class Rel

implement

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

Overrides:
implement in class Rel
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(Implementor implementor)
Description copied from class: Rel
Returns a Java expression which yields the current row of this relational expression. This method is called by the Rel.PlanImplementor the first time a piece of Java code wants to refer to this relation. The implementor then uses this expression to initialize a variable.

If no code needs to refer to this relation, then the expression is never generated. This prevents generating useless code like

Dummy_12f614.Ojp_1 oj_var8 = new Dummy_12f614.Ojp_1();
.

Overrides:
implementSelf in class Rel
See Also:
Implementor#bind(Rel,Rel)

SourceForge.net_Logo