Class InsertIntoWindowCallback

    • Field Detail

      • window

        protected final Window window
        Window to which the events have to be inserted.
      • outputStreamDefinition

        protected final io.siddhi.query.api.definition.StreamDefinition outputStreamDefinition
        StreamDefinition of the window.
    • Constructor Detail

      • InsertIntoWindowCallback

        public InsertIntoWindowCallback​(Window window,
                                        io.siddhi.query.api.definition.StreamDefinition outputStreamDefinition,
                                        String queryName)
    • Method Detail

      • send

        public void send​(ComplexEventChunk complexEventChunk,
                         int noOfEvents)
        Add the event into the Window
        Specified by:
        send in class OutputCallback
        Parameters:
        complexEventChunk - the event to add
        noOfEvents - number of events
      • getOutputStreamDefinition

        public io.siddhi.query.api.definition.StreamDefinition getOutputStreamDefinition()
        Return the StreamDefinition of the corresponding window.
        Returns:
        stream definition of the target window
      • getWindow

        public Window getWindow()
        Return the Window associated with this callback.
        Returns:
        the Window