| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | doXPLAIN(RunTimeStatistics rss, Activation activation)
Implements org. This method is the hook method which is called from the TopResultSet. |
| public void | reset()
Implements org. Call this method to reset the visitor for a new run over the statistics. |
| public void | setNumberOfChildren(int
the number of children of the current explained node. noChildren)Implements org. This method informs the visitor about the number of children. |
| public void | visit(ResultSetStatistics
the statistics, which want to get explained. statistics)Implements org. This is the Visitor hook method, which gets called from each ResultSetStatistics. |
| XPLAINDefaultVisitor | back to summary |
|---|---|
| public XPLAINDefaultVisitor() | |
| doXPLAIN | back to summary |
|---|---|
| public void doXPLAIN(RunTimeStatistics rss, Activation activation) Implements org. Doc from org. This method is the hook method which is called from the TopResultSet. It starts the explanation of the current ResultSetStatistics tree and keeps the information during one explain run. | |
| reset | back to summary |
|---|---|
| public void reset() Implements org. Doc from org. Call this method to reset the visitor for a new run over the statistics. A default implementation should call this method automatically at first of a call of doXPLAIN(). | |
| setNumberOfChildren | back to summary |
|---|---|
| public void setNumberOfChildren(int noChildren) Implements org. Doc from org. This method informs the visitor about the number of children. It has to be called first! by the different explainable nodes before the visit method of the visitor gets called. Each node knows how many children he has. The visitor can use this information to resolve the relationship of the current explained node to above nodes. Due to the top-down, pre-order, depth-first traversal of the tree, this information can directly be exploited.
| |
| visit | back to summary |
|---|---|
| public void visit(ResultSetStatistics statistics) Implements org. Doc from org. This is the Visitor hook method, which gets called from each
ResultSetStatistics. It depends on the sub-class implementation of this
interface, to describe the behaviour of the explanation facility.
| |