public enum RankType extends Enum<RankType>
| 枚举常量和说明 |
|---|
DENSE_RANK
is similar to the RANK by generating a unique rank number for each distinct row
within the partition based on the order, starting at 1 for the first row in each partition,
ranking the rows with equal values with the same rank number, except that it does not skip
any rank, leaving no gaps between the ranks.
|
RANK
Returns a unique rank number for each distinct row within the partition based on the order,
starting at 1 for the first row in each partition, with the same rank for duplicate values
and leaving gaps between the ranks; this gap appears in the sequence after the duplicate
values.
|
ROW_NUMBER
Returns a unique sequential number for each row within the partition based on the order,
starting at 1 for the first row in each partition and without repeating or skipping
numbers in the ranking result of each partition.
|
public static final RankType ROW_NUMBER
public static final RankType RANK
public static final RankType DENSE_RANK
public static RankType[] values()
for (RankType c : RankType.values()) System.out.println(c);
public static RankType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2014–2020 The Apache Software Foundation. All rights reserved.