Class SessionWindowSpec

java.lang.Object
org.apache.flink.table.planner.plan.logical.SessionWindowSpec
All Implemented Interfaces:
WindowSpec

public class SessionWindowSpec extends Object implements WindowSpec
Logical representation of a session window specification.
  • Field Details

  • Constructor Details

    • SessionWindowSpec

      public SessionWindowSpec(Duration gap, int[] partitionKeyIndices)
  • Method Details

    • toSummaryString

      public String toSummaryString(String windowing, String[] inputFieldNames)
      Specified by:
      toSummaryString in interface WindowSpec
    • getGap

      public Duration getGap()
    • getPartitionKeyIndices

      public int[] getPartitionKeyIndices()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isAlignedWindow

      public boolean isAlignedWindow()
      Description copied from interface: WindowSpec
      Return true if the window is aligned.

      See more details about aligned window and unaligned window in WindowAggOperator.

      Specified by:
      isAlignedWindow in interface WindowSpec