Package org.apache.flink.table.api
Class Session
- java.lang.Object
-
- org.apache.flink.table.api.Session
-
@PublicEvolving public final class Session extends Object
Helper class for creating a session window. The boundary of session windows are defined by intervals of inactivity, i.e., a session window is closes if no event appears for a defined gap period.Java Example:
Session.withGap("10.minutes").on("rowtime").as("w")
Scala Example:
Session withGap 10.minutes on 'rowtime as 'w
-
-
Constructor Summary
Constructors Constructor Description Session()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SessionWithGap
withGap(org.apache.flink.table.expressions.Expression gap)
Creates a session window.
-
-
-
Method Detail
-
withGap
public static SessionWithGap withGap(org.apache.flink.table.expressions.Expression gap)
Creates a session window. The boundary of session windows are defined by intervals of inactivity, i.e., a session window is closes if no event appears for a defined gap period.- Parameters:
gap
- specifies how long (as interval of milliseconds) to wait for new data before closing the session window.- Returns:
- a partially defined session window
-
-