Opened 2 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 the Handler object and return that from each visit method.
  • Afterwards, calling rootNode.handle(..) would have the same effect of returning a WcpsResult with the rasql. But it would also be possible to traverse the tree and modify it, e.g. push the Scale handler or change its arguments, before calling handle().

Change History (1)

comment:1 by Bang Pham Huu, 2 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.