Package org.h2.expression.analysis
Enum Class WindowFunctionType
- All Implemented Interfaces:
Serializable,Comparable<WindowFunctionType>,Constable
A type of a window function.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe type for CUME_DIST() window function.The type for DENSE_RANK() window function.The type for FIRST_VALUE() window function.The type for LAG() window function.The type for LAST_VALUE() window function.The type for LEAD() window function.The type for NTH_VALUE() window function.The type for NTILE() window function.The type for PERCENT_RANK() window function.The type for RANK() window function.The type for RATIO_TO_REPORT() window function.The type for ROW_NUMBER() window function. -
Method Summary
Modifier and TypeMethodDescriptionstatic WindowFunctionTypeReturns the type of window function with the specified name, or null.getSQL()Returns SQL representation.booleanReturns whether window function of this type requires window ordering clause.static WindowFunctionTypeReturns the enum constant of this class with the specified name.static WindowFunctionType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ROW_NUMBER
The type for ROW_NUMBER() window function. -
RANK
The type for RANK() window function. -
DENSE_RANK
The type for DENSE_RANK() window function. -
PERCENT_RANK
The type for PERCENT_RANK() window function. -
CUME_DIST
The type for CUME_DIST() window function. -
NTILE
The type for NTILE() window function. -
LEAD
The type for LEAD() window function. -
LAG
The type for LAG() window function. -
FIRST_VALUE
The type for FIRST_VALUE() window function. -
LAST_VALUE
The type for LAST_VALUE() window function. -
NTH_VALUE
The type for NTH_VALUE() window function. -
RATIO_TO_REPORT
The type for RATIO_TO_REPORT() window function.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
get
Returns the type of window function with the specified name, or null.- Parameters:
name- name of a window function- Returns:
- the type of window function, or null.
-
getSQL
Returns SQL representation.- Returns:
- SQL representation.
- See Also:
-
requiresWindowOrdering
public boolean requiresWindowOrdering()Returns whether window function of this type requires window ordering clause.- Returns:
trueif it does,falseif it may be omitted
-