Class WindowDefinition
java.lang.Object
org.wso2.siddhi.query.api.definition.AbstractDefinition
org.wso2.siddhi.query.api.definition.StreamDefinition
org.wso2.siddhi.query.api.definition.WindowDefinition
- All Implemented Interfaces:
Serializable
Java POJO representation of Siddhi Window definition.
The window must be defined in the following format:
'define window([attributes]) function([parameters]) output [event type];'
- See Also:
-
Field Summary
Fields inherited from class org.wso2.siddhi.query.api.definition.AbstractDefinition
annotations, attributeList, id -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstruct a WindowDefinition object using the window id. -
Method Summary
Modifier and TypeMethodDescriptionReturn the output event type of the window.Return the internal window of the WindowDefinition.static WindowDefinitionConstruct and return a WindowDefinition object using the given id.voidsetOutputEventType(OutputStream.OutputEventType outputEventType) Set output event type of the window.toString()Set the internal window to the WindowDefinition.Methods inherited from class org.wso2.siddhi.query.api.definition.StreamDefinition
annotation, attributeMethods inherited from class org.wso2.siddhi.query.api.definition.AbstractDefinition
annotation, checkAttribute, equals, equalsIgnoreAnnotations, getAnnotations, getAttributeList, getAttributeNameArray, getAttributePosition, getAttributeType, getId, hashCode, setId
-
Constructor Details
-
WindowDefinition
Construct a WindowDefinition object using the window id.- Parameters:
id- the window id
-
-
Method Details
-
id
Construct and return a WindowDefinition object using the given id.- Parameters:
id- the window id- Returns:
- new instance of WindowDefinition
-
window
Set the internal window to the WindowDefinition.- Parameters:
window- the internal window- Returns:
- the WindowDefinition object for chained method call
-
setOutputEventType
Set output event type of the window. If not explicitly assigned, OutputEventType.ALL_EVENTS will be used by default.- Parameters:
outputEventType- the output event type
-
getOutputEventType
Return the output event type of the window.- Returns:
- the output event type
-
getWindow
Return the internal window of the WindowDefinition.- Returns:
- the internal window
-
toString
- Overrides:
toStringin classStreamDefinition
-