Class WindowFrame.OffsetFrame

java.lang.Object
org.apache.druid.query.operator.window.WindowFrame.OffsetFrame
All Implemented Interfaces:
WindowFrame
Direct Known Subclasses:
WindowFrame.Groups, WindowFrame.Rows
Enclosing interface:
WindowFrame

public abstract static class WindowFrame.OffsetFrame extends Object implements WindowFrame
  • Field Details

    • lowerOffset

      public final Integer lowerOffset
    • upperOffset

      public final Integer upperOffset
  • Constructor Details

    • OffsetFrame

      public OffsetFrame(Integer lowerOffset, Integer upperOffset)
  • Method Details

    • hashCode

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

      public int getLowerOffsetClamped(int maxRows)
      Calculates the applicable lower offset if the max number of rows is known.
    • getUpperOffsetClamped

      public int getUpperOffsetClamped(int maxRows)
      Calculates the applicable upper offset if the max number of rows is known.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public abstract String toString()
      Overrides:
      toString in class Object