public class ReOptimizePlugin extends Object implements IReExecutionPlugin
| Constructor and Description |
|---|
ReOptimizePlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterExecute(PlanMapper planMapper,
boolean success)
Called after the driver executed the query - delivers the status and the plan data.
|
void |
beforeExecute(int executionIndex,
boolean explainReOptimization)
Called before executing the query.
|
void |
initialize(Driver driver)
Called when the
Driver is being initialized
The plugin may add hooks/etc to tap into the system. |
void |
prepareToReExecute()
The plugin should prepare for the re-compilation of the query.
|
boolean |
shouldReExecute(int executionNum)
The query have failed, does this plugin advises to re-execute it again?
|
boolean |
shouldReExecuteAfterCompile(int executionNum,
PlanMapper oldPlanMapper,
PlanMapper newPlanMapper)
The query has failed; and have been recompiled - does this plugin advises to re-execute it again?
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafterCompile, beforeCompile, prepareToReCompile, shouldReCompilepublic void initialize(Driver driver)
IReExecutionPluginDriver is being initialized
The plugin may add hooks/etc to tap into the system.initialize in interface IReExecutionPluginpublic boolean shouldReExecute(int executionNum)
IReExecutionPluginshouldReExecute in interface IReExecutionPluginpublic void prepareToReExecute()
IReExecutionPluginprepareToReExecute in interface IReExecutionPluginpublic boolean shouldReExecuteAfterCompile(int executionNum,
PlanMapper oldPlanMapper,
PlanMapper newPlanMapper)
IReExecutionPluginshouldReExecuteAfterCompile in interface IReExecutionPluginpublic void beforeExecute(int executionIndex,
boolean explainReOptimization)
IReExecutionPluginbeforeExecute in interface IReExecutionPluginpublic void afterExecute(PlanMapper planMapper, boolean success)
IReExecutionPluginafterExecute in interface IReExecutionPluginCopyright © 2022 The Apache Software Foundation. All rights reserved.