|
||||||||||
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 toMethod Detail |
public Object clone()
clone
in class Rel
public String getQualifier()
getQualifier
in class Rel
public CallingConvention getConvention()
Rel
CallingConvention
.
getConvention
in class Rel
protected Type deriveRowType()
deriveRowType
in class Rel
public Cost computeSelfCost(Planner planner)
Rel
computeSelfCost
in class Rel
public void onRegister(Planner planner)
Rel
onRegister
in class Rel
public static void register(Planner planner)
Rel
The 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 Rel
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |