saffron.rel.convert
Class IterConverter
java.lang.Object
|
+--saffron.rel.Rel
|
+--saffron.rel.SingleRel
|
+--saffron.rel.convert.Converter
|
+--saffron.rel.convert.IterConverter
- public class IterConverter
- extends Converter
IterConverter
converts a plan from inConvention
to
CallingConvention.ITERATOR_ORDINAL
.
Nested classes inherited from class saffron.rel.Rel |
|
Methods inherited from class saffron.rel.Rel |
computeDigest, getChildExps, getCluster, getCorelVariable, getEnvironment, getId, getInput, getOrCreateCorelVariable, getParentEnv, getQualifier, getQuery, getRelTypeName, getRows, getRowType, getTable, getType, getVariablesStopped, implementExp, implementExps, implementFieldAccess, implementSelf, isAccessTo, isDistinct, onRegister, recomputeDigest, register, registerCorelVariable, setCorelVariable, toString |
IterConverter
public IterConverter(Cluster cluster,
Rel child)
clone
public Object clone()
- Specified by:
clone
in class Rel
getConvention
public CallingConvention getConvention()
- Description copied from class:
Rel
- Returns a value from
CallingConvention
.
- Overrides:
getConvention
in class Rel
init
public static void init(Planner planner)
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 Converter
- 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.
implementEnumeration
private Object implementEnumeration(Implementor implementor,
int ordinal)
implementIterable
private Object implementIterable(Implementor implementor,
int ordinal)
implementCollection
private Object implementCollection(Implementor implementor,
int ordinal)
implementResultSet
private Object implementResultSet(Implementor implementor,
int ordinal)
getResultSetAccessorMethod
private String getResultSetAccessorMethod(OJClass clazz)
- Returns the name of the method in
ResultSet
for
retrieving a particular type. For example, getInt
accesses
int
, getString
accesses String
,
getObject
accesses most other kinds of Object.
toInitcap
private String toInitcap(String s)