Class InsertIntoWindowCallback
- java.lang.Object
-
- io.siddhi.core.query.output.callback.OutputCallback
-
- io.siddhi.core.query.output.callback.InsertIntoWindowCallback
-
- Direct Known Subclasses:
InsertIntoWindowEndPartitionCallback
public class InsertIntoWindowCallback extends OutputCallback
This callback is an adapter betweenStreamJunctionandWindow. It receivesComplexEventChunks and insert them intoWindow.
-
-
Field Summary
Fields Modifier and Type Field Description protected io.siddhi.query.api.definition.StreamDefinitionoutputStreamDefinitionStreamDefinition of the window.protected WindowwindowWindow to which the events have to be inserted.
-
Constructor Summary
Constructors Constructor Description InsertIntoWindowCallback(Window window, io.siddhi.query.api.definition.StreamDefinition outputStreamDefinition, String queryName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.siddhi.query.api.definition.StreamDefinitiongetOutputStreamDefinition()Return the StreamDefinition of the corresponding window.WindowgetWindow()Return theWindowassociated with this callback.voidsend(ComplexEventChunk complexEventChunk, int noOfEvents)Add the event into theWindow-
Methods inherited from class io.siddhi.core.query.output.callback.OutputCallback
constructMatchingStateEventChunk, setSiddhiDebugger
-
-
-
-
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.
-
-
Method Detail
-
send
public void send(ComplexEventChunk complexEventChunk, int noOfEvents)
Add the event into theWindow- Specified by:
sendin classOutputCallback- Parameters:
complexEventChunk- the event to addnoOfEvents- 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
-
-