枚举 OverEnum
- java.lang.Object
-
- java.lang.Enum<OverEnum>
-
- io.github.burukeyou.dataframe.iframe.window.OverEnum
-
- 所有已实现的接口:
Serializable,Comparable<OverEnum>
public enum OverEnum extends Enum<OverEnum>
Window Function- 作者:
- caizhihao
-
-
枚举常量概要
枚举常量 枚举常量 说明 AVGCOUNTCUME_DISTCumulative distribution valueDENSE_RANKRank of current row within its partition, without gapsFIRST_VALUEValue of argument from first row of window frameLAGValue of argument from row lagging current row within partitionLAST_VALUEValue of argument from last row of window frameLEADValue of argument from row leading current row within partitionMAXMINNTH_VALUEValue of argument from N-th row of window framePERCENT_RANKPercentage rank valueRANKRank of current row within its partition, with gapsROW_NUMBERNumber of current row within its partitionSUMBucket number of current row within its partition.
-
-
-
枚举常量详细资料
-
RANK
public static final OverEnum RANK
Rank of current row within its partition, with gaps
-
DENSE_RANK
public static final OverEnum DENSE_RANK
Rank of current row within its partition, without gaps
-
ROW_NUMBER
public static final OverEnum ROW_NUMBER
Number of current row within its partition
-
PERCENT_RANK
public static final OverEnum PERCENT_RANK
Percentage rank value
-
CUME_DIST
public static final OverEnum CUME_DIST
Cumulative distribution value
-
LAG
public static final OverEnum LAG
Value of argument from row lagging current row within partition
-
LEAD
public static final OverEnum LEAD
Value of argument from row leading current row within partition
-
FIRST_VALUE
public static final OverEnum FIRST_VALUE
Value of argument from first row of window frame
-
LAST_VALUE
public static final OverEnum LAST_VALUE
Value of argument from last row of window frame
-
NTH_VALUE
public static final OverEnum NTH_VALUE
Value of argument from N-th row of window frame
-
SUM
public static final OverEnum SUM
Bucket number of current row within its partition.
-
AVG
public static final OverEnum AVG
-
MAX
public static final OverEnum MAX
-
MIN
public static final OverEnum MIN
-
COUNT
public static final OverEnum COUNT
-
-
方法详细资料
-
values
public static OverEnum[] values()
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。该方法可用于迭代 常量, 如下所示:for (OverEnum c : OverEnum.values()) System.out.println(c);
- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
public static OverEnum valueOf(String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException- 如果该枚举类型没有带有指定名称的常量NullPointerException- 如果参数为空值
-
-