public abstract class StreamFunctionProcessor extends AbstractStreamProcessor
additionalAttributes, attributeExpressionExecutors, attributeExpressionLength, complexEventPopulater, elementId, inputDefinition, metaStreamEvent, nextProcessor, siddhiQueryContext, streamEventCloner, streamEventClonerHolder| Constructor and Description |
|---|
StreamFunctionProcessor() |
| Modifier and Type | Method and Description |
|---|---|
ProcessingMode |
getProcessingMode()
Defines the behaviour of the processing, will be called after the init
|
protected abstract List<io.siddhi.query.api.definition.Attribute> |
init(io.siddhi.query.api.definition.AbstractDefinition inputDefinition,
ExpressionExecutor[] attributeExpressionExecutors,
ConfigReader configReader,
boolean outputExpectsExpiredEvents,
SiddhiQueryContext siddhiQueryContext)
The init method of the StreamProcessor, this method will be called before other methods
|
protected List<io.siddhi.query.api.definition.Attribute> |
init(MetaStreamEvent metaStreamEvent,
io.siddhi.query.api.definition.AbstractDefinition inputDefinition,
ExpressionExecutor[] attributeExpressionExecutors,
ConfigReader configReader,
boolean outputExpectsExpiredEvents,
SiddhiQueryContext siddhiQueryContext)
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
|
clean, 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 attributespublic ProcessingMode getProcessingMode()
AbstractStreamProcessorgetProcessingMode in class AbstractStreamProcessorprotected 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<io.siddhi.query.api.definition.Attribute> init(MetaStreamEvent metaStreamEvent, io.siddhi.query.api.definition.AbstractDefinition inputDefinition, ExpressionExecutor[] attributeExpressionExecutors, ConfigReader configReader, boolean outputExpectsExpiredEvents, SiddhiQueryContext siddhiQueryContext)
init in class AbstractStreamProcessormetaStreamEvent - the stream event metainputDefinition - the incoming stream definitionattributeExpressionExecutors - the executors of each function parametersconfigReader - this hold the StreamFunctionProcessor extensions configuration
reader.outputExpectsExpiredEvents - is expired events sent as outputsiddhiQueryContext - siddhi query contextprotected abstract List<io.siddhi.query.api.definition.Attribute> init(io.siddhi.query.api.definition.AbstractDefinition inputDefinition, ExpressionExecutor[] attributeExpressionExecutors, ConfigReader configReader, boolean outputExpectsExpiredEvents, SiddhiQueryContext siddhiQueryContext)
inputDefinition - the incoming stream definitionattributeExpressionExecutors - the executors of each function parametersconfigReader - this hold the StreamFunctionProcessor extensions configuration
reader.outputExpectsExpiredEvents - is expired events sent as outputsiddhiQueryContext - the context of the siddhi queryCopyright © 2019. All rights reserved.