|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.relopt.MulticastRelOptListener
public class MulticastRelOptListener
MulticastRelOptListener implements the RelOptListener
interface by
forwarding events on to a collection of other listeners.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.eigenbase.relopt.RelOptListener |
---|
RelOptListener.RelChosenEvent, RelOptListener.RelDiscardedEvent, RelOptListener.RelEquivalenceEvent, RelOptListener.RelEvent, RelOptListener.RuleAttemptedEvent, RelOptListener.RuleEvent, RelOptListener.RuleProductionEvent |
Field Summary | |
---|---|
private List<RelOptListener> |
listeners
|
Constructor Summary | |
---|---|
MulticastRelOptListener()
Creates a new empty multicast listener. |
Method Summary | |
---|---|
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). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final List<RelOptListener> listeners
Constructor Detail |
---|
public MulticastRelOptListener()
Method Detail |
---|
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 event
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |