@InterfaceAudience.Private @InterfaceStability.Unstable public interface IReExecutionPlugin
| Modifier and Type | Method and Description |
|---|---|
default void |
afterCompile(boolean successful)
Called after the compilation - delivers the result of the new compilation.
|
default void |
afterExecute(PlanMapper planMapper,
boolean successful)
Called after the driver executed the query - delivers the status and the plan data.
|
default void |
beforeCompile(int compilationNum)
Called before the compilation happen.
|
default 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. |
default void |
prepareToReCompile()
The plugin should prepare for the recompilation of the query
|
default void |
prepareToReExecute()
The plugin should prepare for the re-compilation of the query.
|
default boolean |
shouldReCompile(int compilationNum)
The query has failed.
|
default boolean |
shouldReExecute(int executionNum)
The query have failed, does this plugin advises to re-execute it again?
|
default 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?
|
void initialize(Driver driver)
Driver is being initialized
The plugin may add hooks/etc to tap into the system.default void beforeExecute(int executionIndex,
boolean explainReOptimization)
default boolean shouldReExecute(int executionNum)
default void prepareToReExecute()
default boolean shouldReExecuteAfterCompile(int executionNum,
PlanMapper oldPlanMapper,
PlanMapper newPlanMapper)
default void afterExecute(PlanMapper planMapper, boolean successful)
planMapper - successful - default void beforeCompile(int compilationNum)
compilationNum - Number of the previous compilationsdefault boolean shouldReCompile(int compilationNum)
compilationNum - Number of the previous compilationsdefault void prepareToReCompile()
default void afterCompile(boolean successful)
successful - Copyright © 2024 The Apache Software Foundation. All rights reserved.