Package org.apache.flink.table.api
Class Slide
java.lang.Object
org.apache.flink.table.api.Slide
Helper class for creating a sliding window. Sliding windows have a fixed size and slide by a
specified slide interval. If the slide interval is smaller than the window size, sliding windows
are overlapping. Thus, an element can be assigned to multiple windows.
For example, a sliding window of size 15 minutes with 5 minutes sliding interval groups elements of 15 minutes and evaluates every five minutes. Each element is contained in three consecutive window evaluations.
Java Example:
Slide.over("10.minutes").every("5.minutes").on("rowtime").as("w")
Scala Example:
Slide over 10.minutes every 5.minutes on 'rowtime as 'w
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SlideWithSizeover(org.apache.flink.table.expressions.Expression size) Creates a sliding window.
-
Constructor Details
-
Slide
public Slide()
-
-
Method Details
-
over
Creates a sliding window. Sliding windows have a fixed size and slide by a specified slide interval. If the slide interval is smaller than the window size, sliding windows are overlapping. Thus, an element can be assigned to multiple windows.For example, a sliding window of size 15 minutes with 5 minutes sliding interval groups elements of 15 minutes and evaluates every five minutes. Each element is contained in three consecutive
- Parameters:
size- the size of the window as time or row-count interval- Returns:
- a partially specified sliding window
-