public abstract class RecordTableHandler extends Object
| Constructor and Description |
|---|
RecordTableHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(long timestamp,
List<Object[]> records) |
abstract void |
add(long timestamp,
List<Object[]> records,
RecordTableHandlerCallback recordTableHandlerCallback) |
boolean |
contains(long timestamp,
Map<String,Object> containsConditionParameterMap,
CompiledCondition compiledCondition) |
abstract boolean |
contains(long timestamp,
Map<String,Object> containsConditionParameterMap,
CompiledCondition compiledCondition,
RecordTableHandlerCallback recordTableHandlerCallback) |
void |
delete(long timestamp,
List<Map<String,Object>> deleteConditionParameterMaps,
CompiledCondition compiledCondition) |
abstract void |
delete(long timestamp,
List<Map<String,Object>> deleteConditionParameterMaps,
CompiledCondition compiledCondition,
RecordTableHandlerCallback recordTableHandlerCallback) |
Iterator<Object[]> |
find(long timestamp,
Map<String,Object> findConditionParameterMap,
CompiledCondition compiledCondition) |
abstract Iterator<Object[]> |
find(long timestamp,
Map<String,Object> findConditionParameterMap,
CompiledCondition compiledCondition,
RecordTableHandlerCallback recordTableHandlerCallback) |
String |
getElementId() |
abstract void |
init(String elementId,
org.wso2.siddhi.query.api.definition.TableDefinition tableDefinition)
Initialize the Record Table Handler
|
protected void |
init(String elementId,
org.wso2.siddhi.query.api.definition.TableDefinition tableDefinition,
RecordTableHandlerCallback recordTableHandlerCallback) |
Iterator<Object[]> |
query(long timestamp,
Map<String,Object> parameterMap,
CompiledCondition compiledCondition,
CompiledSelection compiledSelection)
Deprecated.
|
Iterator<Object[]> |
query(long timestamp,
Map<String,Object> parameterMap,
CompiledCondition compiledCondition,
CompiledSelection compiledSelection,
org.wso2.siddhi.query.api.definition.Attribute[] outputAttributes) |
abstract Iterator<Object[]> |
query(long timestamp,
Map<String,Object> parameterMap,
CompiledCondition compiledCondition,
CompiledSelection compiledSelection,
org.wso2.siddhi.query.api.definition.Attribute[] outputAttributes,
RecordTableHandlerCallback recordTableHandlerCallback) |
abstract Iterator<Object[]> |
query(long timestamp,
Map<String,Object> parameterMap,
CompiledCondition compiledCondition,
CompiledSelection compiledSelection,
RecordTableHandlerCallback recordTableHandlerCallback)
Deprecated.
|
void |
update(long timestamp,
CompiledCondition compiledCondition,
List<Map<String,Object>> updateConditionParameterMaps,
LinkedHashMap<String,CompiledExpression> updateSetMap,
List<Map<String,Object>> updateSetParameterMaps) |
abstract void |
update(long timestamp,
CompiledCondition updateCondition,
List<Map<String,Object>> updateConditionParameterMaps,
LinkedHashMap<String,CompiledExpression> updateSetExpressions,
List<Map<String,Object>> updateSetParameterMaps,
RecordTableHandlerCallback recordTableHandlerCallback) |
void |
updateOrAdd(long timestamp,
CompiledCondition compiledCondition,
List<Map<String,Object>> updateConditionParameterMaps,
LinkedHashMap<String,CompiledExpression> updateSetMap,
List<Map<String,Object>> updateSetParameterMaps,
List<Object[]> addingRecords) |
abstract void |
updateOrAdd(long timestamp,
CompiledCondition updateCondition,
List<Map<String,Object>> updateConditionParameterMaps,
LinkedHashMap<String,CompiledExpression> updateSetExpressions,
List<Map<String,Object>> updateSetParameterMaps,
List<Object[]> addingRecords,
RecordTableHandlerCallback recordTableHandlerCallback) |
public String getElementId()
protected final void init(String elementId, org.wso2.siddhi.query.api.definition.TableDefinition tableDefinition, RecordTableHandlerCallback recordTableHandlerCallback)
public abstract void init(String elementId, org.wso2.siddhi.query.api.definition.TableDefinition tableDefinition)
elementId - is the generated id for the record table handlertableDefinition - is the definition of the table with annotations if anypublic void add(long timestamp,
List<Object[]> records)
throws ConnectionUnavailableException
ConnectionUnavailableExceptionpublic abstract void add(long timestamp,
List<Object[]> records,
RecordTableHandlerCallback recordTableHandlerCallback)
throws ConnectionUnavailableException
timestamp - the timestamp of the last event in the event chunkrecords - records that need to be added to the table, each Object[] represent a
record and it will match the attributes of the Table Definition.recordTableHandlerCallback - call back to do operations on the record tableConnectionUnavailableExceptionpublic void delete(long timestamp,
List<Map<String,Object>> deleteConditionParameterMaps,
CompiledCondition compiledCondition)
throws ConnectionUnavailableException
ConnectionUnavailableExceptionpublic abstract void delete(long timestamp,
List<Map<String,Object>> deleteConditionParameterMaps,
CompiledCondition compiledCondition,
RecordTableHandlerCallback recordTableHandlerCallback)
throws ConnectionUnavailableException
timestamp - the timestamp of the last event in the event chunkdeleteConditionParameterMaps - map of matching StreamVariable Ids and their values corresponding to the
compiled conditioncompiledCondition - the compiledCondition against which records should be matched for deletionrecordTableHandlerCallback - call back to do operations on the record tableConnectionUnavailableExceptionpublic void update(long timestamp,
CompiledCondition compiledCondition,
List<Map<String,Object>> updateConditionParameterMaps,
LinkedHashMap<String,CompiledExpression> updateSetMap,
List<Map<String,Object>> updateSetParameterMaps)
throws ConnectionUnavailableException
ConnectionUnavailableExceptionpublic abstract void update(long timestamp,
CompiledCondition updateCondition,
List<Map<String,Object>> updateConditionParameterMaps,
LinkedHashMap<String,CompiledExpression> updateSetExpressions,
List<Map<String,Object>> updateSetParameterMaps,
RecordTableHandlerCallback recordTableHandlerCallback)
throws ConnectionUnavailableException
timestamp - the timestamp of the last event in the event chunkupdateCondition - the compiledCondition against which records should be matched for updateupdateConditionParameterMaps - map of matching StreamVariable Ids and their values corresponding to the
compiled condition based on which the records will be updatedupdateSetExpressions - the set of updates mappings and related complied expressionsupdateSetParameterMaps - map of matching StreamVariable Ids and their values corresponding to therecordTableHandlerCallback - call back to do operations on the record tableConnectionUnavailableExceptionpublic void updateOrAdd(long timestamp,
CompiledCondition compiledCondition,
List<Map<String,Object>> updateConditionParameterMaps,
LinkedHashMap<String,CompiledExpression> updateSetMap,
List<Map<String,Object>> updateSetParameterMaps,
List<Object[]> addingRecords)
throws ConnectionUnavailableException
ConnectionUnavailableExceptionpublic abstract void updateOrAdd(long timestamp,
CompiledCondition updateCondition,
List<Map<String,Object>> updateConditionParameterMaps,
LinkedHashMap<String,CompiledExpression> updateSetExpressions,
List<Map<String,Object>> updateSetParameterMaps,
List<Object[]> addingRecords,
RecordTableHandlerCallback recordTableHandlerCallback)
throws ConnectionUnavailableException
timestamp - the timestamp of the last event in the event chunkupdateCondition - the compiledCondition against which records should be matched for updateupdateConditionParameterMaps - map of matching StreamVariable Ids and their values corresponding to the
compiled condition based on which the records will be updatedupdateSetExpressions - the set of updates mappings and related complied expressionsupdateSetParameterMaps - map of matching StreamVariable Ids and their values corresponding to the
update setaddingRecords - the values for adding new records if the update condition did not matchrecordTableHandlerCallback - call back to do operations on the record tableConnectionUnavailableExceptionpublic Iterator<Object[]> find(long timestamp, Map<String,Object> findConditionParameterMap, CompiledCondition compiledCondition) throws ConnectionUnavailableException
ConnectionUnavailableExceptionpublic abstract Iterator<Object[]> find(long timestamp, Map<String,Object> findConditionParameterMap, CompiledCondition compiledCondition, RecordTableHandlerCallback recordTableHandlerCallback) throws ConnectionUnavailableException
timestamp - the timestamp of the event used to match from record tablefindConditionParameterMap - map of matching StreamVariable Ids and their values
corresponding to the compiled conditioncompiledCondition - the compiledCondition against which records should be matchedrecordTableHandlerCallback - call back to do operations on the record tableConnectionUnavailableExceptionpublic boolean contains(long timestamp,
Map<String,Object> containsConditionParameterMap,
CompiledCondition compiledCondition)
throws ConnectionUnavailableException
ConnectionUnavailableExceptionpublic abstract boolean contains(long timestamp,
Map<String,Object> containsConditionParameterMap,
CompiledCondition compiledCondition,
RecordTableHandlerCallback recordTableHandlerCallback)
throws ConnectionUnavailableException
timestamp - the timestamp of the event used to match from record tablecontainsConditionParameterMap - map of matching StreamVariable Ids and their values corresponding to the
compiled conditioncompiledCondition - the compiledCondition against which records should be matchedrecordTableHandlerCallback - call back to do operations on the record tableConnectionUnavailableException@Deprecated public Iterator<Object[]> query(long timestamp, Map<String,Object> parameterMap, CompiledCondition compiledCondition, CompiledSelection compiledSelection) throws ConnectionUnavailableException
ConnectionUnavailableExceptionpublic Iterator<Object[]> query(long timestamp, Map<String,Object> parameterMap, CompiledCondition compiledCondition, CompiledSelection compiledSelection, org.wso2.siddhi.query.api.definition.Attribute[] outputAttributes) throws ConnectionUnavailableException
ConnectionUnavailableException@Deprecated public abstract Iterator<Object[]> query(long timestamp, Map<String,Object> parameterMap, CompiledCondition compiledCondition, CompiledSelection compiledSelection, RecordTableHandlerCallback recordTableHandlerCallback) throws ConnectionUnavailableException
timestamp - the timestamp of the event used to match from record tableparameterMap - 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 which maps the events based on selectionrecordTableHandlerCallback - call back to do operations on the record tableConnectionUnavailableExceptionpublic abstract Iterator<Object[]> query(long timestamp, Map<String,Object> parameterMap, CompiledCondition compiledCondition, CompiledSelection compiledSelection, org.wso2.siddhi.query.api.definition.Attribute[] outputAttributes, RecordTableHandlerCallback recordTableHandlerCallback) throws ConnectionUnavailableException
ConnectionUnavailableExceptionCopyright © 2018 WSO2. All rights reserved.