|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--saffron.rel.Rel
|
+--saffron.sql.JdbcQuery
A JdbcQuery is a relational expression whose source is a SQL
statement executed against a JDBC data source. It has result set calling convention.
| Nested Class Summary |
| Nested classes inherited from class saffron.rel.Rel |
|
| Field Summary | |
(package private) Expression |
connectionExp
The expression which yields the connection object. |
(package private) SqlDialect |
dialect
|
(package private) String |
queryString
For debug. |
(package private) SqlSelect |
sql
|
| Fields inherited from class saffron.rel.Rel |
cluster, digest, id, rowType |
| Constructor Summary | |
JdbcQuery(Cluster cluster,
Type rowType,
Expression connectionExp,
SqlDialect dialect,
SqlSelect sql)
Creates a JdbcQuery. |
|
| Method Summary | |
Object |
clone()
|
Cost |
computeSelfCost(Planner planner)
Returns the cost of this plan (not including children). |
protected Type |
deriveRowType()
|
CallingConvention |
getConvention()
Returns a value from CallingConvention. |
String |
getQualifier()
|
Object |
implement(Implementor implementor,
int ordinal)
Create a plan for this expression according to a calling convention. |
void |
onRegister(Planner planner)
This method is called just before the expression is registered. |
static void |
register(Planner planner)
Registers any special rules specific to this kind of relational expression. |
| Methods inherited from class saffron.rel.Rel |
childrenAccept, computeDigest, explain, getChildExps, getCluster, getCorelVariable, getEnvironment, getId, getInput, getInputs, getOrCreateCorelVariable, getParentEnv, getQuery, getRelTypeName, getRows, getRowType, getTable, getType, getVariablesStopped, implementExp, implementExps, implementFieldAccess, implementSelf, isAccessTo, isDistinct, recomputeDigest, registerCorelVariable, replaceInput, setCorelVariable, toString |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
Expression connectionExp
SqlDialect dialect
SqlSelect sql
String queryString
| Constructor Detail |
public JdbcQuery(Cluster cluster,
Type rowType,
Expression connectionExp,
SqlDialect dialect,
SqlSelect sql)
JdbcQuery.
cluster - Cluster this relational expression belongs to| Method Detail |
public Object clone()
clone in class Relpublic String getQualifier()
getQualifier in class Relpublic CallingConvention getConvention()
RelCallingConvention.
getConvention in class Relprotected Type deriveRowType()
deriveRowType in class Relpublic Cost computeSelfCost(Planner planner)
Rel
computeSelfCost in class Relpublic void onRegister(Planner planner)
Rel
onRegister in class Relpublic static void register(Planner planner)
RelThe planner calls this method this first time that it sees a
relational expression of this class. The derived class should call
Planner.addRule(saffron.opt.Rule) for each rule, and then call
Rel.register(saffron.Planner) on its base class.
public Object implement(Implementor implementor,
int ordinal)
Rel
implement in class Relimplementor - 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
ith child.
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||