Interface QueryableProcessor
-
- All Superinterfaces:
FindableProcessor
- All Known Implementing Classes:
AbstractQueryableRecordTable,TableWindowProcessor
public interface QueryableProcessor extends FindableProcessor
Interface for all processors which holds a collection of events and supports traversing and finding events from that collection with different selection criteria. query() will be used by OnDemandQuery to get matching event in defined format.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description CompiledSelectioncompileSelection(io.siddhi.query.api.execution.query.selection.Selector selector, List<io.siddhi.query.api.definition.Attribute> expectedOutputAttributes, MatchingMetaInfoHolder matchingMetaInfoHolder, List<VariableExpressionExecutor> variableExpressionExecutors, Map<String,Table> tableMap, SiddhiQueryContext siddhiQueryContext)To construct a selection having the capability of transforming events based on given selection logic.StreamEventquery(StateEvent matchingEvent, CompiledCondition compiledCondition, CompiledSelection compiledSelection)Deprecated.StreamEventquery(StateEvent matchingEvent, CompiledCondition compiledCondition, CompiledSelection compiledSelection, io.siddhi.query.api.definition.Attribute[] outputAttributes)To find events from the processor event pool, that the matches the matchingEvent based on finder logic and return them based on the defined selection.-
Methods inherited from interface io.siddhi.core.query.processor.stream.window.FindableProcessor
compileCondition, find
-
-
-
-
Method Detail
-
query
StreamEvent query(StateEvent matchingEvent, CompiledCondition compiledCondition, CompiledSelection compiledSelection, io.siddhi.query.api.definition.Attribute[] outputAttributes) throws ConnectionUnavailableException
To find events from the processor event pool, that the matches the matchingEvent based on finder logic and return them based on the defined selection.- Parameters:
matchingEvent- the event to be matched with the events at the processorcompiledCondition- the execution element responsible for matching the corresponding events that matches the matchingEvent based on pool of events at ProcessorcompiledSelection- the execution element responsible for transforming the corresponding events to the given selectionoutputAttributes- the output attributes specified in the query.- Returns:
- the matched events
- Throws:
ConnectionUnavailableException
-
query
@Deprecated StreamEvent query(StateEvent matchingEvent, CompiledCondition compiledCondition, CompiledSelection compiledSelection) throws ConnectionUnavailableException
Deprecated.To find events from the processor event pool, that the matches the matchingEvent based on finder logic and return them based on the defined selection.- Parameters:
matchingEvent- the event to be matched with the events at the processorcompiledCondition- the execution element responsible for matching the corresponding events that matches the matchingEvent based on pool of events at ProcessorcompiledSelection- the execution element responsible for transforming the corresponding events to the given selection- Returns:
- the matched events
- Throws:
ConnectionUnavailableException
-
compileSelection
CompiledSelection compileSelection(io.siddhi.query.api.execution.query.selection.Selector selector, List<io.siddhi.query.api.definition.Attribute> expectedOutputAttributes, MatchingMetaInfoHolder matchingMetaInfoHolder, List<VariableExpressionExecutor> variableExpressionExecutors, Map<String,Table> tableMap, SiddhiQueryContext siddhiQueryContext)
To construct a selection having the capability of transforming events based on given selection logic.- Parameters:
selector- the query selectorexpectedOutputAttributes-matchingMetaInfoHolder- the meta structure of the incoming matchingEventvariableExpressionExecutors- the list of variable ExpressionExecutors already createdtableMap- map of event tablessiddhiQueryContext- current siddhi query context- Returns:
- compiled Selection having the capability of transforming events based on the selection
-
-