public abstract class StreamFunctionProcessor extends AbstractStreamProcessor
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
outputExpectsExpiredEvents |
additionalAttributes, attributeExpressionExecutors, attributeExpressionLength, complexEventPopulater, elementId, executionPlanContext, inputDefinition, log, nextProcessor, queryName, streamEventCloner| Constructor and Description |
|---|
StreamFunctionProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract List<org.wso2.siddhi.query.api.definition.Attribute> |
init(org.wso2.siddhi.query.api.definition.AbstractDefinition inputDefinition,
ExpressionExecutor[] attributeExpressionExecutors,
ExecutionPlanContext executionPlanContext) |
protected List<org.wso2.siddhi.query.api.definition.Attribute> |
init(org.wso2.siddhi.query.api.definition.AbstractDefinition inputDefinition,
ExpressionExecutor[] attributeExpressionExecutors,
ExecutionPlanContext executionPlanContext,
boolean outputExpectsExpiredEvents)
The init method of the StreamProcessor, this method will be called before other methods
|
protected abstract Object[] |
process(Object data)
The process method of the StreamFunction, used when zero or one function parameter is provided
|
protected abstract Object[] |
process(Object[] data)
The process method of the StreamFunction, used when more then one function parameters are provided
|
protected void |
processEventChunk(ComplexEventChunk<StreamEvent> streamEventChunk,
Processor nextProcessor,
StreamEventCloner streamEventCloner,
ComplexEventPopulater complexEventPopulater)
The main processing method that will be called upon event arrival
|
cloneProcessor, constructStreamEventPopulater, getElementId, getNextProcessor, initProcessor, process, setNextProcessor, setStreamEventCloner, setToLastclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitstart, stopcurrentState, restoreStateprotected void processEventChunk(ComplexEventChunk<StreamEvent> streamEventChunk, Processor nextProcessor, StreamEventCloner streamEventCloner, ComplexEventPopulater complexEventPopulater)
AbstractStreamProcessorprocessEventChunk in class AbstractStreamProcessorstreamEventChunk - the event chunk that need to be processednextProcessor - the next processor to which the success events need to be passedstreamEventCloner - helps to clone the incoming event for local storage or modificationcomplexEventPopulater - helps to populate the events with the resultant attributesprotected abstract Object[] process(Object[] data)
data - the data values for the function parametersprotected abstract Object[] process(Object data)
data - null if the function parameter count is zero or runtime data value of the function parameterprotected List<org.wso2.siddhi.query.api.definition.Attribute> init(org.wso2.siddhi.query.api.definition.AbstractDefinition inputDefinition, ExpressionExecutor[] attributeExpressionExecutors, ExecutionPlanContext executionPlanContext, boolean outputExpectsExpiredEvents)
init in class AbstractStreamProcessorinputDefinition - the incoming stream definitionattributeExpressionExecutors - the executors of each function parametersexecutionPlanContext - the context of the execution planoutputExpectsExpiredEvents - is output expects ExpiredEventsprotected abstract List<org.wso2.siddhi.query.api.definition.Attribute> init(org.wso2.siddhi.query.api.definition.AbstractDefinition inputDefinition, ExpressionExecutor[] attributeExpressionExecutors, ExecutionPlanContext executionPlanContext)
Copyright © 2018 WSO2. All Rights Reserved.