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, wait
afterCompile, beforeCompile, prepareToReCompile, shouldReCompile
public void initialize(Driver driver)
IReExecutionPlugin
Driver
is being initialized
The plugin may add hooks/etc to tap into the system.initialize
in interface IReExecutionPlugin
public boolean shouldReExecute(int executionNum)
IReExecutionPlugin
shouldReExecute
in interface IReExecutionPlugin
public void prepareToReExecute()
IReExecutionPlugin
prepareToReExecute
in interface IReExecutionPlugin
public boolean shouldReExecuteAfterCompile(int executionNum, PlanMapper oldPlanMapper, PlanMapper newPlanMapper)
IReExecutionPlugin
shouldReExecuteAfterCompile
in interface IReExecutionPlugin
public void beforeExecute(int executionIndex, boolean explainReOptimization)
IReExecutionPlugin
beforeExecute
in interface IReExecutionPlugin
public void afterExecute(PlanMapper planMapper, boolean success)
IReExecutionPlugin
afterExecute
in interface IReExecutionPlugin
Copyright © 2022 The Apache Software Foundation. All rights reserved.