public interface StatementResultService
Modifier and Type | Method and Description |
---|---|
void |
dispatchOnStop()
Dispatch the remaining results, if any, to listeners as the statement is about to be stopped.
|
void |
execute()
Execution of result indication.
|
int |
getStatementId() |
EPStatementListenerSet |
getStatementListenerSet() |
String |
getStatementName() |
void |
indicate(UniformPair<EventBean[]> results)
Stores for dispatching the statement results.
|
boolean |
isMakeNatural()
Returns true to indicate that natural events should be produced, for
use in select expression processing.
|
boolean |
isMakeSynthetic()
Returns true to indicate that synthetic events should be produced, for
use in select expression processing.
|
void |
setContext(EPStatementSPI epStatement,
EPServiceProviderSPI epServiceProvider,
boolean isInsertInto,
boolean isPattern,
boolean isDistinct,
boolean isForClause,
StatementMetricHandle statementMetricHandle)
For initialization of the service to provide statement context.
|
void |
setSelectClause(Class[] selectClauseTypes,
String[] selectClauseColumnNames,
boolean forClauseDelivery,
ExprEvaluator[] groupDeliveryExpressions,
ExprEvaluatorContext exprEvaluatorContext)
For initialize of the service providing select clause column types and names.
|
void |
setUpdateListeners(EPStatementListenerSet updateListeners,
boolean isRecovery)
Indicate a change in update listener.
|
void setContext(EPStatementSPI epStatement, EPServiceProviderSPI epServiceProvider, boolean isInsertInto, boolean isPattern, boolean isDistinct, boolean isForClause, StatementMetricHandle statementMetricHandle)
epStatement
- the statementepServiceProvider
- the engine instanceisInsertInto
- true if this is insert intoisPattern
- true if this is a pattern statementisDistinct
- true if using distinctstatementMetricHandle
- handle for metrics reportingisForClause
- indicator that for-clause existsvoid setSelectClause(Class[] selectClauseTypes, String[] selectClauseColumnNames, boolean forClauseDelivery, ExprEvaluator[] groupDeliveryExpressions, ExprEvaluatorContext exprEvaluatorContext)
selectClauseTypes
- types of columns in the select clauseselectClauseColumnNames
- column namesforClauseDelivery
- for-clausegroupDeliveryExpressions
- grouped-deliveryexprEvaluatorContext
- contextboolean isMakeSynthetic()
boolean isMakeNatural()
void dispatchOnStop()
void setUpdateListeners(EPStatementListenerSet updateListeners, boolean isRecovery)
updateListeners
- is the new listeners and subscriberisRecovery
- indicator whether recoveringvoid indicate(UniformPair<EventBean[]> results)
results
- is the insert and remove stream datavoid execute()
String getStatementName()
int getStatementId()
EPStatementListenerSet getStatementListenerSet()