public class MulticastRelOptListener extends java.lang.Object implements RelOptListener
RelOptListener
interface by
forwarding events on to a collection of other listeners.RelOptListener.RelChosenEvent, RelOptListener.RelDiscardedEvent, RelOptListener.RelEquivalenceEvent, RelOptListener.RelEvent, RelOptListener.RuleAttemptedEvent, RelOptListener.RuleEvent, RelOptListener.RuleProductionEvent
Modifier and Type | Field and Description |
---|---|
private java.util.List<RelOptListener> |
listeners |
Constructor and Description |
---|
MulticastRelOptListener()
Creates a new empty multicast listener.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(RelOptListener listener)
Adds a listener which will receive multicast events.
|
void |
relChosen(RelOptListener.RelChosenEvent event)
Notifies this listener that a relational expression has been chosen as
part of the final implementation of the query plan.
|
void |
relDiscarded(RelOptListener.RelDiscardedEvent event)
Notifies this listener that a relational expression is no longer of
interest to the planner.
|
void |
relEquivalenceFound(RelOptListener.RelEquivalenceEvent event)
Notifies this listener that a relational expression has been registered
with a particular equivalence class after an equivalence has been either
detected or asserted.
|
void |
ruleAttempted(RelOptListener.RuleAttemptedEvent event)
Notifies this listener that an optimizer rule is being applied to a
particular relational expression.
|
void |
ruleProductionSucceeded(RelOptListener.RuleProductionEvent event)
Notifies this listener that an optimizer rule has been successfully
applied to a particular relational expression, resulting in a new
equivalent expression (relEquivalenceFound will also be called unless the
new expression is identical to an existing one).
|
private final java.util.List<RelOptListener> listeners
public MulticastRelOptListener()
public void addListener(RelOptListener listener)
listener
- listener to addpublic void relEquivalenceFound(RelOptListener.RelEquivalenceEvent event)
RelOptListener
relEquivalenceFound
in interface RelOptListener
event
- details about the eventpublic void ruleAttempted(RelOptListener.RuleAttemptedEvent event)
RelOptListener
ruleAttempted
in interface RelOptListener
event
- details about the eventpublic void ruleProductionSucceeded(RelOptListener.RuleProductionEvent event)
RelOptListener
ruleProductionSucceeded
in interface RelOptListener
event
- details about the eventpublic void relChosen(RelOptListener.RelChosenEvent event)
RelOptListener
relChosen
in interface RelOptListener
event
- details about the eventpublic void relDiscarded(RelOptListener.RelDiscardedEvent event)
RelOptListener
relDiscarded
in interface RelOptListener
event
- details about the eventCopyright © 2012–2019 The Apache Software Foundation. All rights reserved.