Class SessionWithGap

java.lang.Object
org.apache.flink.table.api.SessionWithGap

@PublicEvolving public final class SessionWithGap extends Object
Session window.

For streaming tables you can specify grouping by a event-time or processing-time attribute.

For batch tables you can specify grouping on a timestamp or long attribute.

  • Method Details

    • on

      public SessionWithGapOnTime on(org.apache.flink.table.expressions.Expression timeField)
      Specifies the time attribute on which rows are grouped.

      For streaming tables you can specify grouping by a event-time or processing-time attribute.

      For batch tables you can specify grouping on a timestamp or long attribute.

      Parameters:
      timeField - time attribute for streaming and batch tables
      Returns:
      a tumbling window on event-time