public enum RankType extends Enum<RankType>
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
static RankType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RankType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.