public class MulticastRelOptListener extends 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| 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).
|
public MulticastRelOptListener()
public void addListener(RelOptListener listener)
listener - listener to addpublic void relEquivalenceFound(RelOptListener.RelEquivalenceEvent event)
RelOptListenerrelEquivalenceFound in interface RelOptListenerevent - details about the eventpublic void ruleAttempted(RelOptListener.RuleAttemptedEvent event)
RelOptListenerruleAttempted in interface RelOptListenerevent - details about the eventpublic void ruleProductionSucceeded(RelOptListener.RuleProductionEvent event)
RelOptListenerruleProductionSucceeded in interface RelOptListenerevent - details about the eventpublic void relChosen(RelOptListener.RelChosenEvent event)
RelOptListenerrelChosen in interface RelOptListenerevent - details about the eventpublic void relDiscarded(RelOptListener.RelDiscardedEvent event)
RelOptListenerrelDiscarded in interface RelOptListenerevent - details about the eventCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.