Package stream.nebula.operators.window
Class SlidingWindow
- java.lang.Object
-
- stream.nebula.operators.window.SlidingWindow
-
- All Implemented Interfaces:
TimeBasedWindowDefinition
,WindowDefinition
public class SlidingWindow extends java.lang.Object implements TimeBasedWindowDefinition
A time-based window type. The TimeMeasure size defines the time interval of the window, the slide after what time a new window is triggered. Sliding windows are overlapping windows.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TimeMeasure
getSize()
Access the window size of the sliding windowTimeMeasure
getSlide()
Access the slide of the sliding windowTimeCharacteristic
getTimeCharacteristic()
Access the time characteristic of the sliding windowstatic SlidingWindow
of(TimeCharacteristic timeCharacteristic, TimeMeasure size, TimeMeasure slide)
Calls the internal sliding window constructor
-
-
-
Method Detail
-
of
public static SlidingWindow of(TimeCharacteristic timeCharacteristic, TimeMeasure size, TimeMeasure slide)
Calls the internal sliding window constructor- Parameters:
timeCharacteristic
- under which is window is executedsize
- the window sizeslide
- the slide size- Returns:
- a new sliding window
-
getSize
public TimeMeasure getSize()
Access the window size of the sliding window- Returns:
- The (window) size
-
getSlide
public TimeMeasure getSlide()
Access the slide of the sliding window- Returns:
- The slide size
-
getTimeCharacteristic
public TimeCharacteristic getTimeCharacteristic()
Access the time characteristic of the sliding window- Specified by:
getTimeCharacteristic
in interfaceTimeBasedWindowDefinition
- Returns:
- The time characteristic
-
-