public abstract class AbstractQueryableRecordTable extends AbstractRecordTable implements QueryableProcessor
ComplexEventChunk so that
developer can directly work with event data.| Modifier and Type | Class and Description |
|---|---|
class |
AbstractQueryableRecordTable.OrderByAttributeBuilder
Holder of order by attribute with order orientation
|
class |
AbstractQueryableRecordTable.SelectAttributeBuilder
Holder of Selection attribute with renaming field
|
AbstractRecordTable.RecordStoreCompiledConditionrecordTableHandler, storeEventPooltableDefinition| Constructor and Description |
|---|
AbstractQueryableRecordTable() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract CompiledSelection |
compileSelection(List<AbstractQueryableRecordTable.SelectAttributeBuilder> selectAttributeBuilders,
List<ExpressionBuilder> groupByExpressionBuilder,
ExpressionBuilder havingExpressionBuilder,
List<AbstractQueryableRecordTable.OrderByAttributeBuilder> orderByAttributeBuilders,
Long limit)
Compile the query selection
|
CompiledSelection |
compileSelection(org.wso2.siddhi.query.api.execution.query.selection.Selector selector,
MatchingMetaInfoHolder matchingMetaInfoHolder,
SiddhiAppContext siddhiAppContext,
List<VariableExpressionExecutor> variableExpressionExecutors,
Map<String,Table> tableMap,
String queryName)
To construct a selection having the capability of transforming events based on given selection logic.
|
protected abstract RecordIterator<Object[]> |
query(Map<String,Object> parameterMap,
CompiledCondition compiledCondition,
CompiledSelection compiledSelection)
Query records matching the compiled condition and selection
|
StreamEvent |
query(StateEvent matchingEvent,
CompiledCondition compiledCondition,
CompiledSelection compiledSelection)
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.
|
add, add, compileCondition, compileCondition, compileSetAttribute, compileUpdateSet, contains, contains, delete, delete, find, find, getTableDefinition, init, init, update, update, updateOrAdd, updateOrAddaddEvents, connect, connectWithRetry, containsEvent, deleteEvents, destroy, disconnect, find, getHandler, initTable, shutdown, updateEvents, updateOrAddEventsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompileCondition, findpublic StreamEvent query(StateEvent matchingEvent, CompiledCondition compiledCondition, CompiledSelection compiledSelection) throws ConnectionUnavailableException
QueryableProcessorquery in interface QueryableProcessormatchingEvent - 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 selectionConnectionUnavailableExceptionprotected abstract RecordIterator<Object[]> query(Map<String,Object> parameterMap, CompiledCondition compiledCondition, CompiledSelection compiledSelection) throws ConnectionUnavailableException
parameterMap - map of matching StreamVariable Ids and their values
corresponding to the compiled condition and selectioncompiledCondition - the compiledCondition against which records should be matchedcompiledSelection - the compiledSelection that maps records based to requested formatConnectionUnavailableExceptionpublic CompiledSelection compileSelection(org.wso2.siddhi.query.api.execution.query.selection.Selector selector, MatchingMetaInfoHolder matchingMetaInfoHolder, SiddhiAppContext siddhiAppContext, List<VariableExpressionExecutor> variableExpressionExecutors, Map<String,Table> tableMap, String queryName)
QueryableProcessorcompileSelection in interface QueryableProcessorselector - the query selectormatchingMetaInfoHolder - the meta structure of the incoming matchingEventsiddhiAppContext - current siddhi app contextvariableExpressionExecutors - the list of variable ExpressionExecutors already createdtableMap - map of event tablesqueryName - query name of findable processor belongs to.protected abstract CompiledSelection compileSelection(List<AbstractQueryableRecordTable.SelectAttributeBuilder> selectAttributeBuilders, List<ExpressionBuilder> groupByExpressionBuilder, ExpressionBuilder havingExpressionBuilder, List<AbstractQueryableRecordTable.OrderByAttributeBuilder> orderByAttributeBuilders, Long limit)
selectAttributeBuilders - helps visiting the select attributes in ordergroupByExpressionBuilder - helps visiting the group by attributes in orderhavingExpressionBuilder - helps visiting the having conditionorderByAttributeBuilders - helps visiting the order by attributes in orderlimit - defines the limit levelCopyright © 2018 WSO2. All rights reserved.