|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.core.EPStatementSupport
net.esper.core.EPPatternStatementImpl
public class EPPatternStatementImpl
Statement for patterns.
Constructor Summary | |
---|---|
EPPatternStatementImpl(java.lang.String expressionText,
EventType eventType,
DispatchService dispatchService,
EventAdapterService eventAdapterService,
EPPatternStmtStartMethod startMethod)
Constructor. |
Method Summary | |
---|---|
EventType |
getEventType()
Returns the type of events the iterable returns. |
java.lang.String |
getText()
Returns the underlying expression text or XML. |
java.util.Iterator<EventBean> |
iterator()
Returns an iterator over events. |
void |
listenerStart()
Called when the first listener is added. |
void |
listenerStop()
Called when the last listener is removed. |
void |
matchFound(java.util.Map<java.lang.String,EventBean> matchEvent)
Indicate matching events. |
void |
start()
Start the statement. |
void |
stop()
Stop the statement. |
Methods inherited from class net.esper.core.EPStatementSupport |
---|
addListener, getListeners, removeAllListeners, removeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.esper.client.EPListenable |
---|
addListener, removeAllListeners, removeListener |
Constructor Detail |
---|
public EPPatternStatementImpl(java.lang.String expressionText, EventType eventType, DispatchService dispatchService, EventAdapterService eventAdapterService, EPPatternStmtStartMethod startMethod)
expressionText
- - expressioneventType
- - event type of events the pattern will firedispatchService
- - service for dispatching eventseventAdapterService
- - service for generating events or event wrappers and typesstartMethod
- - method to start the patternMethod Detail |
---|
public void matchFound(java.util.Map<java.lang.String,EventBean> matchEvent)
PatternMatchCallback
matchFound
in interface PatternMatchCallback
matchEvent
- contains a map of event tags and event objectspublic void stop()
EPStatement
stop
in interface EPStatement
public void start()
EPStatement
start
in interface EPStatement
public void listenerStop()
EPStatementSupport
listenerStop
in class EPStatementSupport
public void listenerStart()
EPStatementSupport
listenerStart
in class EPStatementSupport
public java.util.Iterator<EventBean> iterator()
EPIterable
iterator
in interface EPIterable
public EventType getEventType()
EPIterable
getEventType
in interface EPIterable
public java.lang.String getText()
EPStatement
getText
in interface EPStatement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |