public class Pol2CartStreamFunctionProcessor extends StreamFunctionProcessor
outputExpectsExpiredEventsadditionalAttributes, attributeExpressionExecutors, attributeExpressionLength, complexEventPopulater, elementId, inputDefinition, nextProcessor, queryName, siddhiAppContext, streamEventCloner, streamEventClonerHolder| Constructor and Description |
|---|
Pol2CartStreamFunctionProcessor() |
| Modifier and Type | Method and Description |
|---|---|
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
|
protected List<org.wso2.siddhi.query.api.definition.Attribute> |
init(org.wso2.siddhi.query.api.definition.AbstractDefinition inputDefinition,
ExpressionExecutor[] attributeExpressionExecutors,
ConfigReader configReader,
SiddhiAppContext siddhiAppContext)
The init method of the StreamFunction
|
protected Object[] |
process(Object data)
The process method of the StreamFunction, used when single function parameter is provided
|
protected Object[] |
process(Object[] data)
The process method of the StreamFunction, used when multiple function parameters are provided
|
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 |
start()
This will be called only once and this can be used to acquire
required resources for the processing element.
|
void |
stop()
This will be called only once and this can be used to release
the acquired resources for processing.
|
init, processEventChunkclean, cloneProcessor, constructStreamEventPopulater, getElementId, getNextProcessor, initProcessor, process, setNextProcessor, setStreamEventCloner, setToLastprotected List<org.wso2.siddhi.query.api.definition.Attribute> init(org.wso2.siddhi.query.api.definition.AbstractDefinition inputDefinition, ExpressionExecutor[] attributeExpressionExecutors, ConfigReader configReader, SiddhiAppContext siddhiAppContext)
init in class StreamFunctionProcessorinputDefinition - the incoming stream definitionattributeExpressionExecutors - the executors for the function parameterssiddhiAppContext - siddhi app contextprotected Object[] process(Object[] data)
process in class StreamFunctionProcessordata - the data values for the function parametersprotected Object[] process(Object data)
process in class StreamFunctionProcessordata - the data value for the function parameterpublic void start()
EternalReferencedHolderpublic void stop()
EternalReferencedHolderpublic Map<String,Object> currentState()
Snapshotablepublic void restoreState(Map<String,Object> state)
Snapshotablestate - the stateful objects of the element as an array on
the same order provided by currentState().Copyright © 2019 WSO2. All rights reserved.