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