Interface EPFireAndForgetService
public interface EPFireAndForgetService
Executes fire-and-forget non-continuous on-demand queries against named windows or tables.
Compile queries use the compile-query methods of the compiler.
-
Method Summary
Modifier and TypeMethodDescriptionexecuteQuery
(EPCompiled compiled) Execute a fire-and-forget query.executeQuery
(EPCompiled compiled, ContextPartitionSelector[] selectors) Execute a fire-and-forget query for use with named windows and tables that have a context declared and that may therefore have multiple context partitions, allows to target context partitions for query execution selectively.executeQuery
(EPFireAndForgetPreparedQueryParameterized parameterizedQuery) Execute a fire-and-forget parameterized query.executeQuery
(EPFireAndForgetPreparedQueryParameterized parameterizedQuery, ContextPartitionSelector[] selectors) Execute a fire-and-forget parameterized query.prepareQuery
(EPCompiled compiled) Prepare an unparameterized fire-and-forget query before execution and for repeated execution.prepareQueryWithParameters
(EPCompiled compiled) Prepare a parameterized fire-and-forget query for repeated parameter setting and execution.
-
Method Details
-
executeQuery
Execute a fire-and-forget query.- Parameters:
compiled
- is the compiled EPL query to execute- Returns:
- query result
-
executeQuery
Execute a fire-and-forget query for use with named windows and tables that have a context declared and that may therefore have multiple context partitions, allows to target context partitions for query execution selectively.- Parameters:
compiled
- is the compiled EPL query to executeselectors
- selects context partitions to consider- Returns:
- result
-
prepareQuery
Prepare an unparameterized fire-and-forget query before execution and for repeated execution.Call
EPFireAndForgetPreparedQuery.close()
when done executing queries.- Parameters:
compiled
- is the compiled EPL query to prepare- Returns:
- proxy to execute upon, that also provides the event type of the returned results
-
prepareQueryWithParameters
Prepare a parameterized fire-and-forget query for repeated parameter setting and execution. Set all values on the returned holder then execute usingexecuteQuery(EPFireAndForgetPreparedQueryParameterized)
.Call
EPFireAndForgetPreparedQueryParameterized.close()
when done executing queries.- Parameters:
compiled
- is the compiled EPL query to prepare- Returns:
- parameter holder upon which to set values
-
executeQuery
EPFireAndForgetQueryResult executeQuery(EPFireAndForgetPreparedQueryParameterized parameterizedQuery) Execute a fire-and-forget parameterized query.- Parameters:
parameterizedQuery
- contains the query and parameter values- Returns:
- query result
-
executeQuery
EPFireAndForgetQueryResult executeQuery(EPFireAndForgetPreparedQueryParameterized parameterizedQuery, ContextPartitionSelector[] selectors) Execute a fire-and-forget parameterized query.- Parameters:
parameterizedQuery
- contains the query and parameter valuesselectors
- selects context partitions to consider- Returns:
- query result
-