Opened 3 years ago
Closed 2 years ago
#2615 closed enhancement (fixed)
WCPS - NEW - build query tree for optimization before generating rasql query
Reported by: | Bang Pham Huu | Owned by: | Bang Pham Huu |
---|---|---|---|
Priority: | major | Milestone: | 10.1 |
Component: | petascope | Version: | 10.0 |
Keywords: | Cc: | Dimitar Misev, Vlad Merticariu | |
Complexity: | Hard |
Description
petascope would need is to first build a query tree for each coverageExpression
, which has:
- Pointer to parent expression node
- Pointer to children argument nodes, and an attribute to distinguish its type.
The Handler
classes could be adapted for this purpose, so:
- Instead of calling their
handle
method directly during the parsing, petascope would construct theHandler
object and return that from eachvisit
method. - Afterwards, calling
rootNode.handle(..)
would have the same effect of returning aWcpsResult
with the rasql. But it would also be possible to traverse the tree and modify it, e.g. push theScale
handler or change its arguments, before callinghandle()
.
Note:
See TracTickets
for help on using tickets.