Class FrequentWindowProcessor

    • Constructor Detail

      • FrequentWindowProcessor

        public FrequentWindowProcessor()
        Deprecated.
    • Method Detail

      • init

        protected StateFactory<io.siddhi.core.query.processor.stream.window.FrequentWindowProcessor.WindowState> init​(ExpressionExecutor[] attributeExpressionExecutors,
                                                                                                                      ConfigReader configReader,
                                                                                                                      SiddhiQueryContext siddhiQueryContext)
        Deprecated.
        Description copied from class: SlidingWindowProcessor
        The init method of the WindowProcessor, this method will be called before other methods
        Specified by:
        init in class SlidingWindowProcessor<io.siddhi.core.query.processor.stream.window.FrequentWindowProcessor.WindowState>
        Parameters:
        attributeExpressionExecutors - the executors of each function parameters
        configReader - the config reader of window
        siddhiQueryContext - the context of the siddhi query
      • process

        protected void process​(ComplexEventChunk<StreamEvent> streamEventChunk,
                               Processor nextProcessor,
                               StreamEventCloner streamEventCloner,
                               io.siddhi.core.query.processor.stream.window.FrequentWindowProcessor.WindowState state)
        Deprecated.
        Description copied from class: SlidingWindowProcessor
        The main processing method that will be called upon event arrival
        Specified by:
        process in class SlidingWindowProcessor<io.siddhi.core.query.processor.stream.window.FrequentWindowProcessor.WindowState>
        Parameters:
        streamEventChunk - the stream 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
        state - current query state
      • start

        public void start()
        Deprecated.
        Description copied from interface: ExternalReferencedHolder
        This will be called only once and this can be used to acquire required resources for the processing element. This will be called after initializing the system and before starting to process the events.
      • stop

        public void stop()
        Deprecated.
        Description copied from interface: ExternalReferencedHolder
        This will be called only once and this can be used to release the acquired resources for processing. This will be called before shutting down the system.
      • compileCondition

        public CompiledCondition compileCondition​(io.siddhi.query.api.expression.Expression condition,
                                                  MatchingMetaInfoHolder matchingMetaInfoHolder,
                                                  List<VariableExpressionExecutor> variableExpressionExecutors,
                                                  Map<String,​Table> tableMap,
                                                  io.siddhi.core.query.processor.stream.window.FrequentWindowProcessor.WindowState state,
                                                  SiddhiQueryContext siddhiQueryContext)
        Deprecated.
        Description copied from class: SlidingFindableWindowProcessor
        To construct a finder having the capability of finding events at the processor that corresponds to the incoming matchingEvent and the given matching expression logic.
        Specified by:
        compileCondition in class SlidingFindableWindowProcessor<io.siddhi.core.query.processor.stream.window.FrequentWindowProcessor.WindowState>
        Parameters:
        condition - the matching condition
        matchingMetaInfoHolder - the meta structure of the incoming matchingEvent
        variableExpressionExecutors - the list of variable ExpressionExecutors already created
        tableMap - map of event tables
        state - current query state
        siddhiQueryContext - current siddhi query context
        Returns:
        compiled Condition having the capability of matching events against the incoming matchingEvent
      • find

        public StreamEvent find​(StateEvent matchingEvent,
                                CompiledCondition compiledCondition,
                                StreamEventCloner streamEventCloner,
                                io.siddhi.core.query.processor.stream.window.FrequentWindowProcessor.WindowState state)
        Deprecated.
        Description copied from class: SlidingFindableWindowProcessor
        To find events from the processor event pool, that the matches the matchingEvent based on finder logic.
        Specified by:
        find in class SlidingFindableWindowProcessor<io.siddhi.core.query.processor.stream.window.FrequentWindowProcessor.WindowState>
        Parameters:
        matchingEvent - the event to be matched with the events at the processor
        compiledCondition - the execution element responsible for matching the corresponding events that matches the matchingEvent based on pool of events at Processor
        streamEventCloner - stream event cloner
        state - current query state @return the matched events