if (statementSpec.getOptionalContextName() == null) {
Collection<EventBean>[] snapshots = new Collection[numStreams];
for (int i = 0; i < numStreams; i++) {
ContextPartitionSelector selector = contextPartitionSelectors == null ? null : contextPartitionSelectors[i];
snapshots[i] = getStreamFilterSnapshot(i, selector);
}
resultSetProcessor.clear();
return process(snapshots);
}
List<ContextPartitionResult> contextPartitionResults = new ArrayList<ContextPartitionResult>();
ContextPartitionSelector singleSelector = contextPartitionSelectors != null && contextPartitionSelectors.length > 0 ? contextPartitionSelectors[0] : null;
// context partition runtime query
Collection<Integer> agentInstanceIds = EPPreparedExecuteMethodHelper.getAgentInstanceIds(processors[0], singleSelector, services.getContextManagementService(), statementSpec.getOptionalContextName());
// collect events and agent instances