com.espertech.esper.epl.db
Class PollExecStrategyDBQuery

java.lang.Object
  extended by com.espertech.esper.epl.db.PollExecStrategyDBQuery
All Implemented Interfaces:
PollExecStrategy

public class PollExecStrategyDBQuery
extends java.lang.Object
implements PollExecStrategy

Viewable providing historical data from a database.


Constructor Summary
PollExecStrategyDBQuery(EventAdapterService eventAdapterService, EventType eventType, ConnectionCache connectionCache, java.lang.String preparedStatementText, java.util.Map<java.lang.String,DBOutputTypeDesc> outputTypes, SQLColumnTypeConversion columnTypeConversionHook, SQLOutputRowConversion outputRowConversionHook, boolean enableJDBCLogging)
          Ctor.
 
Method Summary
 void destroy()
          Indicate we are no going to use this object again.
 void done()
          Indicate we are done polling and can release resources.
 java.util.List<EventBean> poll(java.lang.Object[] lookupValues, ExprEvaluatorContext exprEvaluatorContext)
          Poll events using the keys provided.
 void start()
          Start the poll, called before any poll operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PollExecStrategyDBQuery

public PollExecStrategyDBQuery(EventAdapterService eventAdapterService,
                               EventType eventType,
                               ConnectionCache connectionCache,
                               java.lang.String preparedStatementText,
                               java.util.Map<java.lang.String,DBOutputTypeDesc> outputTypes,
                               SQLColumnTypeConversion columnTypeConversionHook,
                               SQLOutputRowConversion outputRowConversionHook,
                               boolean enableJDBCLogging)
Ctor.

Parameters:
eventAdapterService - for generating event beans
eventType - is the event type that this poll generates
connectionCache - caches Connection and PreparedStatement
preparedStatementText - is the SQL to use for polling
outputTypes - describe columns selected by the SQL
outputRowConversionHook - hook to convert rows, if any hook is registered
columnTypeConversionHook - hook to convert columns, if any hook is registered
Method Detail

start

public void start()
Description copied from interface: PollExecStrategy
Start the poll, called before any poll operation.

Specified by:
start in interface PollExecStrategy

done

public void done()
Description copied from interface: PollExecStrategy
Indicate we are done polling and can release resources.

Specified by:
done in interface PollExecStrategy

destroy

public void destroy()
Description copied from interface: PollExecStrategy
Indicate we are no going to use this object again.

Specified by:
destroy in interface PollExecStrategy

poll

public java.util.List<EventBean> poll(java.lang.Object[] lookupValues,
                                      ExprEvaluatorContext exprEvaluatorContext)
Description copied from interface: PollExecStrategy
Poll events using the keys provided.

Specified by:
poll in interface PollExecStrategy
Parameters:
lookupValues - is keys for exeuting a query or such
Returns:
a list of events for the keys

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