|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.wpi.cs.dsrg.xmldb.xat.common.visitorpattern.InheritableVisitor | +--edu.wpi.cs.dsrg.xmldb.xat.component.sqlgeneration.OperatorEvaluator | +--edu.wpi.cs.dsrg.xmldb.xat.component.sqlgeneration.XQueryOperatorEvaluator
Insert the type's description here.
Fields inherited from class edu.wpi.cs.dsrg.xmldb.xat.component.sqlgeneration.OperatorEvaluator |
heuristicType,
sourceVisited,
variableTable |
Constructor Summary | |
XQueryOperatorEvaluator(BindingTable varTable)
XQueryOperatorEvaluator constructor comment. |
|
XQueryOperatorEvaluator(int heuristic,
BindingTable varTable)
XQueryOperatorEvaluator constructor comment. |
Method Summary | |
protected boolean |
traverseTagger(DOMPatternNode rootNode,
java.util.Vector columnName,
java.util.Vector tagName)
deleteTagger will iterate over a Tagger operator and determine if the operator can be deleted or not. |
java.lang.Object |
visit(DistinctImp param)
Evaluates a Distinct Operator and determines the SQL equivalent of the destination |
java.lang.Object |
visit(FunctionImp param)
Evaluates a Function Operator and determines the SQL equivalent |
java.lang.Object |
visit(GroupByImp param)
Evaluates an GroupBy Operator and determines the SQL equivalent of the destination take all of the columns names in the orderBy and add them to the oderBy clause the result will look like GroupBy col1, col2, etc GroupBy returns multiple SQL fragments, 1 for the groupBy and 1 for each of the operators in its subTree Therefore, we first visit the subTree first |
java.lang.Object |
visit(JoinImp param)
Evaluates a Join Operator and determines the SQL equivalent of the destination This adds to the where clause, it will look like Where $a = '10' Same thing as select |
java.lang.Object |
visit(NameColumnImp param)
Deprecated. NameColumn operators can now be pushed down so they will not occur in the tree to generate a query from |
java.lang.Object |
visit(NavUnnestImp param)
Evaluates a Navigate Operator and determines the XQuery equivalent of the destination The Navigate's info is just put in a LET binding |
java.lang.Object |
visit(OrderByImp param)
Deprecated. until I figure out what to do with it |
java.lang.Object |
visit(ProjectImp param)
Evaluates a Project Operator and determines the SQL equivalent of the destination |
java.lang.Object |
visit(SelectImp param)
Evaluates a Select Operator and determines the SQL equivalent of the destination This adds to the where clause, it will look like Where $a = '10' |
java.lang.Object |
visit(SourceImp param)
Evaluates a Source Operator and determines the XQuery equivalent of the destination If a source has already been visited, then add this to the LET, otherwise, add it to FOR |
java.lang.Object |
visit(TaggerImp param)
Evaluates a Tagger Operator and determines the XQuery equivalent of the destination |
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.component.sqlgeneration.OperatorEvaluator |
combineSteps,
createString,
createString,
dispatch,
dispatch,
evaluateOperator,
getVariableTable,
isSourceVisited,
setHeuristicType,
setSourceVisited,
setVariableTable |
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.visitorpattern.InheritableVisitor |
getAncestors,
getMethod,
visit,
visit |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public XQueryOperatorEvaluator(int heuristic, BindingTable varTable)
heuristic
- intvarTable
- java.util.Hashtablepublic XQueryOperatorEvaluator(BindingTable varTable)
varTable
- BindingTableMethod Detail |
protected boolean traverseTagger(DOMPatternNode rootNode, java.util.Vector columnName, java.util.Vector tagName)
rootNode
- root of the DOMPattern to start iterating overpublic java.lang.Object visit(FunctionImp param)
param
- Functionpublic java.lang.Object visit(NameColumnImp param)
param
- NameColumnImppublic java.lang.Object visit(SourceImp param)
param
- Sourcepublic java.lang.Object visit(DistinctImp param)
param
- Distinctpublic java.lang.Object visit(GroupByImp param)
param
- GroupBypublic java.lang.Object visit(JoinImp param)
param
- Joinpublic java.lang.Object visit(OrderByImp param)
param
- OrderBypublic java.lang.Object visit(ProjectImp param)
param
- Projectpublic java.lang.Object visit(SelectImp param)
param
- Selectpublic java.lang.Object visit(NavUnnestImp param)
param
- Navigatepublic java.lang.Object visit(TaggerImp param)
param
- Tagger
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |