Package org.apache.flink.table.api
Class Session
java.lang.Object
org.apache.flink.table.api.Session
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 -
Method Summary
Modifier and TypeMethodDescriptionstatic SessionWithGapwithGap(org.apache.flink.table.expressions.Expression gap) Creates a session window.
-
Constructor Details
-
Session
public Session()
-
-
Method Details
-
withGap
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
-