net.sf.saffron.oj.convert
Class JavaConverterRel

java.lang.Object
  |
  +--net.sf.saffron.rel.SaffronRel
        |
        +--net.sf.saffron.rel.SingleRel
              |
              +--net.sf.saffron.rel.convert.ConverterRel
                    |
                    +--net.sf.saffron.oj.convert.JavaConverterRel

public class JavaConverterRel
extends ConverterRel

JavaConverterRel converts a plan from inConvention to CallingConvention.JAVA_ORDINAL.


Field Summary
private static HashMap jdbcGetterMap
          Maps OJClass to the name of a JDBC getter method.
 
Fields inherited from class net.sf.saffron.rel.convert.ConverterRel
inConvention
 
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
JavaConverterRel(VolcanoCluster cluster, SaffronRel child)
           
 
Method Summary
 Object clone()
           
private static HashMap createJdbcGetterMap()
           
 CallingConvention getConvention()
          Returns a value from CallingConvention.
private static String getJdbcGetterName(OJClass ojClass)
           
 Object implement(RelImplementor implementor, int ordinal)
          Create a plan for this expression according to a calling convention.
private  Object implementArray(RelImplementor implementor, int ordinal)
           
private  Object implementEnumeration(RelImplementor implementor, int ordinal)
           
private  Object implementHashtable(RelImplementor implementor, int ordinal)
           
private  Object implementIterable(RelImplementor implementor, int ordinal)
           
private  Object implementIterator(RelImplementor implementor, int ordinal)
           
private  Object implementMap(RelImplementor implementor, int ordinal)
           
private  Object implementResultSet(RelImplementor implementor, int ordinal)
           
private  Object implementVector(RelImplementor implementor, int ordinal)
           
static void init(SaffronPlanner planner)
           
 
Methods inherited from class net.sf.saffron.rel.convert.ConverterRel
computeSelfCost
 
Methods inherited from class net.sf.saffron.rel.SingleRel
childrenAccept, deriveRowType, 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

jdbcGetterMap

private static final HashMap jdbcGetterMap
Maps OJClass to the name of a JDBC getter method. For example, OJSystem.INT maps to "getInt".

Constructor Detail

JavaConverterRel

public JavaConverterRel(VolcanoCluster cluster,
                        SaffronRel child)
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()
Specified by:
clone in class SaffronRel

init

public static void init(SaffronPlanner planner)

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 ConverterRel
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.

implementArray

private Object implementArray(RelImplementor implementor,
                              int ordinal)

implementEnumeration

private Object implementEnumeration(RelImplementor implementor,
                                    int ordinal)

implementHashtable

private Object implementHashtable(RelImplementor implementor,
                                  int ordinal)

implementIterable

private Object implementIterable(RelImplementor implementor,
                                 int ordinal)

implementIterator

private Object implementIterator(RelImplementor implementor,
                                 int ordinal)

implementMap

private Object implementMap(RelImplementor implementor,
                            int ordinal)

implementResultSet

private Object implementResultSet(RelImplementor implementor,
                                  int ordinal)

getJdbcGetterName

private static String getJdbcGetterName(OJClass ojClass)

createJdbcGetterMap

private static HashMap createJdbcGetterMap()

implementVector

private Object implementVector(RelImplementor implementor,
                               int ordinal)

SourceForge.net_Logo