public enum WindowFunctionType extends Enum<WindowFunctionType>
| 枚举常量和说明 |
|---|
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.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static WindowFunctionType |
get(String name)
Returns the type of window function with the specified name, or null.
|
String |
getSQL()
Returns SQL representation.
|
boolean |
requiresWindowOrdering()
Returns whether window function of this type requires window ordering
clause.
|
static WindowFunctionType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static WindowFunctionType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static WindowFunctionType get(String name)
name - name of a window functionpublic String getSQL()
Expression.getSQL(int)public boolean requiresWindowOrdering()
true if it does, false if it may be omittedCopyright © 2022. All rights reserved.