public class InMemoryTable extends Table implements Snapshotable
| Constructor and Description |
|---|
InMemoryTable() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(ComplexEventChunk<StreamEvent> addingEventChunk) |
void |
clean()
Used to clean its references
|
CompiledCondition |
compileCondition(io.siddhi.query.api.expression.Expression condition,
MatchingMetaInfoHolder matchingMetaInfoHolder,
List<VariableExpressionExecutor> variableExpressionExecutors,
Map<String,Table> tableMap,
SiddhiQueryContext siddhiQueryContext)
To construct a finder having the capability of finding events at the processor that corresponds to the incoming
matchingEvent and the given matching expression logic.
|
CompiledUpdateSet |
compileUpdateSet(io.siddhi.query.api.execution.query.output.stream.UpdateSet updateSet,
MatchingMetaInfoHolder matchingMetaInfoHolder,
List<VariableExpressionExecutor> variableExpressionExecutors,
Map<String,Table> tableMap,
SiddhiQueryContext siddhiQueryContext)
Builds the "compiled" set clause of an update query.
|
protected void |
connect() |
boolean |
contains(StateEvent matchingEvent,
CompiledCondition compiledCondition) |
Map<String,Object> |
currentState()
Used to collect the serializable state of the processing element, that need to be
persisted for the reconstructing the element to the same state on a different point of time
|
void |
delete(ComplexEventChunk<StateEvent> deletingEventChunk,
CompiledCondition compiledCondition) |
protected void |
destroy() |
protected void |
disconnect() |
StreamEvent |
find(CompiledCondition compiledCondition,
StateEvent matchingEvent) |
String |
getElementId() |
io.siddhi.query.api.definition.TableDefinition |
getTableDefinition() |
void |
init(io.siddhi.query.api.definition.TableDefinition tableDefinition,
StreamEventPool storeEventPool,
StreamEventCloner storeEventCloner,
ConfigReader configReader,
SiddhiAppContext siddhiAppContext,
RecordTableHandler recordTableHandler) |
void |
restoreState(Map<String,Object> state)
Used to restore serialized state of the processing element, for reconstructing
the element to the same state as if was on a previous point of time.
|
void |
update(ComplexEventChunk<StateEvent> updatingEventChunk,
CompiledCondition compiledCondition,
CompiledUpdateSet compiledUpdateSet) |
void |
updateOrAdd(ComplexEventChunk<StateEvent> updateOrAddingEventChunk,
CompiledCondition compiledCondition,
CompiledUpdateSet compiledUpdateSet,
AddingStreamEventExtractor addingStreamEventExtractor) |
addEvents, connectWithRetry, containsEvent, deleteEvents, find, getHandler, initTable, shutdown, updateEvents, updateOrAddEventspublic void init(io.siddhi.query.api.definition.TableDefinition tableDefinition,
StreamEventPool storeEventPool,
StreamEventCloner storeEventCloner,
ConfigReader configReader,
SiddhiAppContext siddhiAppContext,
RecordTableHandler recordTableHandler)
public io.siddhi.query.api.definition.TableDefinition getTableDefinition()
getTableDefinition in class Tablepublic void add(ComplexEventChunk<StreamEvent> addingEventChunk)
public void delete(ComplexEventChunk<StateEvent> deletingEventChunk, CompiledCondition compiledCondition)
public void update(ComplexEventChunk<StateEvent> updatingEventChunk, CompiledCondition compiledCondition, CompiledUpdateSet compiledUpdateSet)
public void updateOrAdd(ComplexEventChunk<StateEvent> updateOrAddingEventChunk, CompiledCondition compiledCondition, CompiledUpdateSet compiledUpdateSet, AddingStreamEventExtractor addingStreamEventExtractor)
updateOrAdd in class Tablepublic boolean contains(StateEvent matchingEvent, CompiledCondition compiledCondition)
protected void connect()
throws ConnectionUnavailableException
connect in class TableConnectionUnavailableExceptionprotected void disconnect()
disconnect in class Tablepublic StreamEvent find(CompiledCondition compiledCondition, StateEvent matchingEvent)
public CompiledCondition compileCondition(io.siddhi.query.api.expression.Expression condition, MatchingMetaInfoHolder matchingMetaInfoHolder, List<VariableExpressionExecutor> variableExpressionExecutors, Map<String,Table> tableMap, SiddhiQueryContext siddhiQueryContext)
FindableProcessorcompileCondition in interface FindableProcessorcondition - the matching conditionmatchingMetaInfoHolder - the meta structure of the incoming matchingEventvariableExpressionExecutors - the list of variable ExpressionExecutors already createdtableMap - map of event tablessiddhiQueryContext - current siddhi query contextpublic CompiledUpdateSet compileUpdateSet(io.siddhi.query.api.execution.query.output.stream.UpdateSet updateSet, MatchingMetaInfoHolder matchingMetaInfoHolder, List<VariableExpressionExecutor> variableExpressionExecutors, Map<String,Table> tableMap, SiddhiQueryContext siddhiQueryContext)
TablecompileUpdateSet in class TableupdateSet - the set of assignment expressions, each containing the table column to be
updated and the expression to be assigned.matchingMetaInfoHolder - the meta structure of the incoming matchingEventvariableExpressionExecutors - the list of variable ExpressionExecutors already createdtableMap - map of event tablessiddhiQueryContext - current siddhi query contextpublic Map<String,Object> currentState()
SnapshotablecurrentState in interface Snapshotablepublic void restoreState(Map<String,Object> state)
SnapshotablerestoreState in interface Snapshotablestate - the stateful objects of the element as an array on
the same order provided by currentState().public String getElementId()
getElementId in interface Snapshotablepublic void clean()
Snapshotableclean in interface SnapshotableCopyright © 2019. All rights reserved.