|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.sf.saffron.opt.VolcanoQuery
A VolcanoQuery represents a set of relational
expressions which derive from the same select statement.
| Field Summary | |
static String |
correlPrefix
Prefix to the name of correlating variables. |
(package private) HashMap |
mapCorrelToRel
Maps name of correlating variable (e.g. |
HashMap |
mapDeferredToCorrel
Maps a from-list expression to the name of the correlating variable which references it. |
private int |
nextCorrel
|
private VolcanoPlanner |
planner
|
| Constructor Summary | |
VolcanoQuery()
|
|
VolcanoQuery(VolcanoPlanner planner)
|
|
| Method Summary | |
VolcanoCluster |
createCluster(Environment env,
SaffronTypeFactory typeFactory)
|
String |
createCorrel()
Constructs a new name for a correlating variable. |
String |
createCorrelUnresolved(Object deferredLookup)
Creates a name for a correlating variable for which no SaffronRel has been created yet. |
SaffronRel |
lookupCorrel(String name)
Returns the relational expression which populates a correlating variable. |
void |
mapCorrel(String name,
SaffronRel rel)
Maps a correlating variable to a SaffronRel. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public final HashMap mapDeferredToCorrel
SaffronRel.
final HashMap mapCorrelToRel
SaffronRel which implements it.
private final VolcanoPlanner planner
private int nextCorrel
public static final String correlPrefix
| Constructor Detail |
public VolcanoQuery()
public VolcanoQuery(VolcanoPlanner planner)
| Method Detail |
public VolcanoCluster createCluster(Environment env,
SaffronTypeFactory typeFactory)
public String createCorrel()
public String createCorrelUnresolved(Object deferredLookup)
SaffronRel has been created yet.
deferredLookup - contains the information required to resolve the
variable laterpublic SaffronRel lookupCorrel(String name)
public void mapCorrel(String name,
SaffronRel rel)
SaffronRel.
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||