Class WindowFrame
- java.lang.Object
-
- org.apache.druid.query.operator.window.WindowFrame
-
public class WindowFrame extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
WindowFrame.PeerType
-
Constructor Summary
Constructors Constructor Description WindowFrame(WindowFrame.PeerType peerType, boolean lowerUnbounded, int lowerOffset, boolean upperUnbounded, int upperOffset, List<ColumnWithDirection> orderBy)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static WindowFrame
forOrderBy(ColumnWithDirection... orderBy)
int
getLowerOffset()
int
getLowerOffsetClamped(int maxRows)
Calculates the applicable lower offset if the max number of rows is known.List<ColumnWithDirection>
getOrderBy()
List<String>
getOrderByColNames()
WindowFrame.PeerType
getPeerType()
int
getUpperOffset()
int
getUpperOffsetClamped(int maxRows)
Calculates the applicable upper offset if the max number of rows is known.int
hashCode()
boolean
isLowerUnbounded()
boolean
isUpperUnbounded()
String
toString()
static WindowFrame
unbounded()
-
-
-
Constructor Detail
-
WindowFrame
public WindowFrame(WindowFrame.PeerType peerType, boolean lowerUnbounded, int lowerOffset, boolean upperUnbounded, int upperOffset, List<ColumnWithDirection> orderBy)
-
-
Method Detail
-
unbounded
public static WindowFrame unbounded()
-
getPeerType
public WindowFrame.PeerType getPeerType()
-
isLowerUnbounded
public boolean isLowerUnbounded()
-
getLowerOffset
public int getLowerOffset()
-
isUpperUnbounded
public boolean isUpperUnbounded()
-
getUpperOffset
public int getUpperOffset()
-
getOrderBy
public List<ColumnWithDirection> getOrderBy()
-
forOrderBy
public static WindowFrame forOrderBy(ColumnWithDirection... orderBy)
-
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.
-
-