public class ReExecutionOverlayPlugin extends Object implements IReExecutionPlugin
| Constructor and Description |
|---|
ReExecutionOverlayPlugin() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterExecute(PlanMapper planMapper,
boolean success) |
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-compilaton of the query.
|
boolean |
shouldReExecute(int executionNum)
The query have failed, does this plugin advises to re-execute it again?
|
boolean |
shouldReExecute(int executionNum,
PlanMapper pm1,
PlanMapper pm2)
The query have failed; and have been recompiled - does this plugin advises to re-execute it again?
|
public void initialize(Driver driver)
IReExecutionPluginDriver is being initialized
The plugin may add hooks/etc to tap into the system.initialize in interface IReExecutionPluginpublic void prepareToReExecute()
IReExecutionPluginprepareToReExecute in interface IReExecutionPluginpublic boolean shouldReExecute(int executionNum)
IReExecutionPluginshouldReExecute in interface IReExecutionPluginpublic boolean shouldReExecute(int executionNum,
PlanMapper pm1,
PlanMapper pm2)
IReExecutionPluginshouldReExecute in interface IReExecutionPluginpublic void beforeExecute(int executionIndex,
boolean explainReOptimization)
IReExecutionPluginbeforeExecute in interface IReExecutionPluginpublic void afterExecute(PlanMapper planMapper, boolean success)
afterExecute in interface IReExecutionPluginCopyright © 2019 The Apache Software Foundation. All Rights Reserved.