public abstract class HopingWindowProcessor extends WindowProcessor
| Modifier and Type | Class and Description |
|---|---|
class |
HopingWindowProcessor.HopingTimestampPopulator
Populates hopping timestamp to the complex event
|
| Modifier and Type | Field and Description |
|---|---|
protected HopingWindowProcessor.HopingTimestampPopulator |
hopingTimestampPopulator |
protected List<io.siddhi.query.api.definition.Attribute> |
internalAttributes |
additionalAttributes, attributeExpressionExecutors, attributeExpressionLength, complexEventPopulater, elementId, inputDefinition, metaStreamEvent, nextProcessor, siddhiQueryContext, streamEventCloner, streamEventClonerHolder| Constructor and Description |
|---|
HopingWindowProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
constructStreamEventPopulater(MetaStreamEvent metaStreamEvent,
int streamEventChainIndex) |
ProcessingMode |
getProcessingMode()
Defines the behaviour of the processing, will be called after the init
|
protected abstract void |
init(ExpressionExecutor[] attributeExpressionExecutors,
ConfigReader configReader,
boolean outputExpectsExpiredEvents,
SiddhiQueryContext siddhiQueryContext)
The init method of the WindowProcessor, 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 void |
processEventChunk(ComplexEventChunk<StreamEvent> streamEventChunk,
Processor nextProcessor,
StreamEventCloner streamEventCloner,
ComplexEventPopulater complexEventPopulater)
The main processing method that will be called upon event arrival
|
protected abstract void |
processEventChunk(ComplexEventChunk<StreamEvent> streamEventChunk,
Processor nextProcessor,
StreamEventCloner streamEventCloner,
HopingWindowProcessor.HopingTimestampPopulator hopingTimestampPopulator)
The main processing method that will be called upon event arrival
|
clean, cloneProcessor, getElementId, getNextProcessor, initProcessor, process, setNextProcessor, setStreamEventCloner, setToLastclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitstart, stopcurrentState, restoreStateprotected List<io.siddhi.query.api.definition.Attribute> internalAttributes
protected HopingWindowProcessor.HopingTimestampPopulator hopingTimestampPopulator
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)
AbstractStreamProcessorinit in class AbstractStreamProcessormetaStreamEvent - the stream event metainputDefinition - the incoming stream definitionattributeExpressionExecutors - the executors of each function parametersconfigReader - this hold the AbstractStreamProcessor extensions configuration
reader.outputExpectsExpiredEvents - is expired events sent as outputsiddhiQueryContext - current siddhi query contextprotected abstract void init(ExpressionExecutor[] attributeExpressionExecutors, ConfigReader configReader, boolean outputExpectsExpiredEvents, SiddhiQueryContext siddhiQueryContext)
attributeExpressionExecutors - the executors of each function parametersconfigReader - the config reader of windowoutputExpectsExpiredEvents - is expired events sent as outputsiddhiQueryContext - the context of the siddhi queryprotected 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 void processEventChunk(ComplexEventChunk<StreamEvent> streamEventChunk, Processor nextProcessor, StreamEventCloner streamEventCloner, HopingWindowProcessor.HopingTimestampPopulator hopingTimestampPopulator)
streamEventChunk - 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 modificationhopingTimestampPopulator - helps to populate the events with the hoping timestamppublic void constructStreamEventPopulater(MetaStreamEvent metaStreamEvent, int streamEventChainIndex)
constructStreamEventPopulater in class AbstractStreamProcessorpublic ProcessingMode getProcessingMode()
AbstractStreamProcessorgetProcessingMode in class AbstractStreamProcessorCopyright © 2019. All rights reserved.