com.espertech.esper.core.service
Class EPPreparedQueryImpl

java.lang.Object
  extended by com.espertech.esper.core.service.EPPreparedQueryImpl
All Implemented Interfaces:
EPOnDemandPreparedQuery, EPOnDemandPreparedQuerySPI

public class EPPreparedQueryImpl
extends java.lang.Object
implements EPOnDemandPreparedQuerySPI

Provides prepared query functionality.


Constructor Summary
EPPreparedQueryImpl(EPPreparedExecuteMethod executeMethod, java.lang.String epl)
          Ctor.
 
Method Summary
 EPOnDemandQueryResult execute()
          Execute the prepared query returning query results.
 EPOnDemandQueryResult execute(ContextPartitionSelector[] contextPartitionSelectors)
          For use with named windows that have a context declared and that may therefore have multiple context partitions, allows to target context partitions for query execution selectively.
 EventType getEventType()
          Returns the event type, representing the columns of the select-clause.
 EPPreparedExecuteMethod getExecuteMethod()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EPPreparedQueryImpl

public EPPreparedQueryImpl(EPPreparedExecuteMethod executeMethod,
                           java.lang.String epl)
Ctor.

Parameters:
executeMethod - used at execution time to obtain query results
epl - is the EPL to execute
Method Detail

execute

public EPOnDemandQueryResult execute()
Description copied from interface: EPOnDemandPreparedQuery
Execute the prepared query returning query results.

Specified by:
execute in interface EPOnDemandPreparedQuery
Returns:
query result

execute

public EPOnDemandQueryResult execute(ContextPartitionSelector[] contextPartitionSelectors)
Description copied from interface: EPOnDemandPreparedQuery
For use with named windows that have a context declared and that may therefore have multiple context partitions, allows to target context partitions for query execution selectively.

Specified by:
execute in interface EPOnDemandPreparedQuery
Parameters:
contextPartitionSelectors - selects context partitions to consider
Returns:
query result

getExecuteMethod

public EPPreparedExecuteMethod getExecuteMethod()
Specified by:
getExecuteMethod in interface EPOnDemandPreparedQuerySPI

getEventType

public EventType getEventType()
Description copied from interface: EPOnDemandPreparedQuery
Returns the event type, representing the columns of the select-clause.

Specified by:
getEventType in interface EPOnDemandPreparedQuery
Returns:
event type

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com