public enum WindowFunctionType extends java.lang.Enum<WindowFunctionType>
| Enum Constant and Description |
|---|
CUME_DIST
The type for CUME_DIST() window function.
|
DENSE_RANK
The type for DENSE_RANK() window function.
|
FIRST_VALUE
The type for FIRST_VALUE() window function.
|
LAG
The type for LAG() window function.
|
LAST_VALUE
The type for LAST_VALUE() window function.
|
LEAD
The type for LEAD() window function.
|
NTH_VALUE
The type for NTH_VALUE() window function.
|
NTILE
The type for NTILE() window function.
|
PERCENT_RANK
The type for PERCENT_RANK() window function.
|
RANK
The type for RANK() window function.
|
RATIO_TO_REPORT
The type for RATIO_TO_REPORT() window function.
|
ROW_NUMBER
The type for ROW_NUMBER() window function.
|
| Modifier and Type | Method and Description |
|---|---|
static WindowFunctionType |
get(java.lang.String name)
Returns the type of window function with the specified name, or null.
|
java.lang.String |
getSQL()
Returns SQL representation.
|
static WindowFunctionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WindowFunctionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WindowFunctionType ROW_NUMBER
public static final WindowFunctionType RANK
public static final WindowFunctionType DENSE_RANK
public static final WindowFunctionType PERCENT_RANK
public static final WindowFunctionType CUME_DIST
public static final WindowFunctionType NTILE
public static final WindowFunctionType LEAD
public static final WindowFunctionType LAG
public static final WindowFunctionType FIRST_VALUE
public static final WindowFunctionType LAST_VALUE
public static final WindowFunctionType NTH_VALUE
public static final WindowFunctionType RATIO_TO_REPORT
public static WindowFunctionType[] values()
for (WindowFunctionType c : WindowFunctionType.values()) System.out.println(c);
public static WindowFunctionType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static WindowFunctionType get(java.lang.String name)
name - name of a window functionpublic java.lang.String getSQL()
Expression.getSQL()