Package stream.nebula.operators.window
Class TumblingWindow
- java.lang.Object
-
- stream.nebula.operators.window.TumblingWindow
-
- All Implemented Interfaces:
TimeBasedWindowDefinition
,WindowDefinition
public class TumblingWindow extends java.lang.Object implements TimeBasedWindowDefinition
A time-based window type. The TimeMeasure size defines the time interval of the window. Tumbling windows are consecutive and a new window starts after its ancestor ended.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TimeMeasure
getSize()
Access the window size of the tumbling windowTimeCharacteristic
getTimeCharacteristic()
Access the time characteristic of the tumbling windowstatic TumblingWindow
of(TimeCharacteristic timeCharacteristic, TimeMeasure timeMeasure)
Calls the internal tumbling window constructor
-
-
-
Method Detail
-
of
public static TumblingWindow of(TimeCharacteristic timeCharacteristic, TimeMeasure timeMeasure)
Calls the internal tumbling window constructor- Returns:
- a new tumbling window
-
getTimeCharacteristic
public TimeCharacteristic getTimeCharacteristic()
Access the time characteristic of the tumbling window- Specified by:
getTimeCharacteristic
in interfaceTimeBasedWindowDefinition
- Returns:
- The time characteristic
-
getSize
public TimeMeasure getSize()
Access the window size of the tumbling window- Returns:
- The (window) size
-
-