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 classWindowFrame.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 booleanequals(Object o)static WindowFrameforOrderBy(ColumnWithDirection... orderBy)intgetLowerOffset()intgetLowerOffsetClamped(int maxRows)Calculates the applicable lower offset if the max number of rows is known.List<ColumnWithDirection>getOrderBy()List<String>getOrderByColNames()WindowFrame.PeerTypegetPeerType()intgetUpperOffset()intgetUpperOffsetClamped(int maxRows)Calculates the applicable upper offset if the max number of rows is known.inthashCode()booleanisLowerUnbounded()booleanisUpperUnbounded()StringtoString()static WindowFrameunbounded()
-
-
-
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.
-
-