Class LogStreamProcessor

    • Constructor Detail

      • LogStreamProcessor

        public LogStreamProcessor()
    • Method Detail

      • init

        protected StateFactory init​(MetaStreamEvent metaStreamEvent,
                                    io.siddhi.query.api.definition.AbstractDefinition inputDefinition,
                                    ExpressionExecutor[] attributeExpressionExecutors,
                                    ConfigReader configReader,
                                    StreamEventClonerHolder streamEventClonerHolder,
                                    boolean outputExpectsExpiredEvents,
                                    boolean findToBeExecuted,
                                    SiddhiQueryContext siddhiQueryContext)
        The init method of the StreamFunction
        Specified by:
        init in class AbstractStreamProcessor<State>
        Parameters:
        metaStreamEvent - the stream event meta
        inputDefinition - the incoming stream definition
        attributeExpressionExecutors - the executors for the function parameters
        configReader - this hold the LogStreamProcessor configuration reader.
        streamEventClonerHolder - streamEventCloner Holder
        findToBeExecuted - find will be executed
        siddhiQueryContext - current siddhi query context
        outputExpectsExpiredEvents - is expired events sent as output
        Returns:
        the additional output attributes introduced by the function
      • process

        protected void process​(ComplexEventChunk<StreamEvent> streamEventChunk,
                               Processor nextProcessor,
                               StreamEventCloner streamEventCloner,
                               ComplexEventPopulater complexEventPopulater,
                               State state)
        Description copied from class: StreamProcessor
        The main processing method that will be called upon event arrival
        Specified by:
        process in class StreamProcessor<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 processor state
      • start

        public void start()
        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()
        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.