Class HopingWindowProcessor<S extends State>

    • Constructor Detail

      • HopingWindowProcessor

        public HopingWindowProcessor()
    • Method Detail

      • init

        protected StateFactory<S> init​(MetaStreamEvent metaStreamEvent,
                                       io.siddhi.query.api.definition.AbstractDefinition inputDefinition,
                                       ExpressionExecutor[] attributeExpressionExecutors,
                                       ConfigReader configReader,
                                       StreamEventClonerHolder streamEventClonerHolder,
                                       boolean outputExpectsExpiredEvents,
                                       boolean findToBeExecuted,
                                       SiddhiQueryContext siddhiQueryContext)
        Description copied from class: AbstractStreamProcessor
        The init method of the StreamProcessor, this method will be called before other methods
        Specified by:
        init in class AbstractStreamProcessor<S extends State>
        Parameters:
        metaStreamEvent - the stream event meta
        inputDefinition - the incoming stream definition
        attributeExpressionExecutors - the executors of each function parameters
        configReader - this hold the AbstractStreamProcessor extensions configuration
        streamEventClonerHolder - stream event cloner holder
        outputExpectsExpiredEvents - is expired events sent as output
        findToBeExecuted - find will be executed
        siddhiQueryContext - current siddhi query context
      • init

        protected abstract StateFactory<S> init​(ExpressionExecutor[] attributeExpressionExecutors,
                                                ConfigReader configReader,
                                                boolean outputExpectsExpiredEvents,
                                                SiddhiQueryContext siddhiQueryContext)
        The init method of the WindowProcessor, this method will be called before other methods
        Parameters:
        attributeExpressionExecutors - the executors of each function parameters
        configReader - the config reader of window
        outputExpectsExpiredEvents - is expired events sent as output
        siddhiQueryContext - the context of the siddhi query
      • processEventChunk

        protected void processEventChunk​(ComplexEventChunk<StreamEvent> streamEventChunk,
                                         Processor nextProcessor,
                                         StreamEventCloner streamEventCloner,
                                         ComplexEventPopulater complexEventPopulater,
                                         S state)
        Description copied from class: AbstractStreamProcessor
        The main processing method that will be called upon event arrival
        Specified by:
        processEventChunk in class AbstractStreamProcessor<S extends State>
        Parameters:
        streamEventChunk - the event chunk that need to be processed
        nextProcessor - the next processor to which the success events need to be passed
        streamEventCloner - helps to clone the incoming event for local storage or modification
        complexEventPopulater - helps to populate the events with the resultant attributes
        state - current state of the processor
      • processEventChunk

        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
        Parameters:
        streamEventChunk - the event chunk that need to be processed
        nextProcessor - the next processor to which the success events need to be passed
        streamEventCloner - helps to clone the incoming event for local storage or modification
        hopingTimestampPopulator - helps to populate the events with the hoping timestamp