Interface EPFireAndForgetPreparedQuery
public interface EPFireAndForgetPreparedQuery
Interface for a prepared on-demand query that can be executed multiple times.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Releases resources.execute()
Execute the prepared query returning query results.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.Returns the event type, representing the columns of the select-clause.
-
Method Details
-
execute
EPFireAndForgetQueryResult execute()Execute the prepared query returning query results.- Returns:
- query result
-
execute
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.- Parameters:
contextPartitionSelectors
- selects context partitions to consider- Returns:
- query result
-
getEventType
EventType getEventType()Returns the event type, representing the columns of the select-clause.- Returns:
- event type
-
close
void close()Releases resources.Required for use with fire-and-forget queries that use SQL queries i.e. "from SQL:db [query]". Optional for all other EPL queries.
-