net.esper.core
Class EPEQLStatementImpl

java.lang.Object
  extended by net.esper.core.EPStatementSupport
      extended by net.esper.core.EPEQLStatementImpl
All Implemented Interfaces:
EPIterable, EPListenable, EPStatement

public class EPEQLStatementImpl
extends EPStatementSupport
implements EPStatement

Statement implementation for EQL statements. The statement starts on construction. When listeners are added and removed from the view a child dispatch view is added/removed to/from the parent view to support push mode.


Constructor Summary
EPEQLStatementImpl(String expressionText, DispatchService dispatchService, EPEQLStmtStartMethod startMethod, ManagedReadWriteLock eventProcessingRWLock)
          Ctor.
 
Method Summary
 EventType getEventType()
          Returns the type of events the iterable returns.
 String getText()
          Returns the underlying expression text or XML.
 Iterator<EventBean> iterator()
          Returns an iterator over 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

EPEQLStatementImpl

public EPEQLStatementImpl(String expressionText,
                          DispatchService dispatchService,
                          EPEQLStmtStartMethod startMethod,
                          ManagedReadWriteLock eventProcessingRWLock)
Ctor.

Parameters:
expressionText - expression
dispatchService - for dispatching
startMethod - to start the view
eventProcessingRWLock - - lock for statement create/start/stop across engine instance competing with events
Method Detail

stop

public void stop()
Description copied from interface: EPStatement
Stop the statement.

Specified by:
stop in interface EPStatement

start

public void start()
Description copied from interface: EPStatement
Start the statement.

Specified by:
start in interface EPStatement

getText

public String getText()
Description copied from interface: EPStatement
Returns the underlying expression text or XML.

Specified by:
getText in interface EPStatement
Returns:
expression text

iterator

public Iterator<EventBean> iterator()
Description copied from interface: EPIterable
Returns an iterator over events.

Specified by:
iterator in interface EPIterable
Returns:
event iterator

getEventType

public EventType getEventType()
Description copied from interface: EPIterable
Returns the type of events the iterable returns.

Specified by:
getEventType in interface EPIterable
Returns:
event type of events the iterator returns