- All Implemented Interfaces:
Serializable,Comparable<OffsetFunction>,Constable
The offset window functions carried by a
WindowFunction.OffsetWindow.
Each reads a value from another row in the partition's sort order; the
output type is the type of the offset expression. The permit set is established
in slice 2 so the exhaustive-switch enforcement guides slice 4; only
WindowFunction.AggregateWindow is executable in slice 2.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe expression's value in the first row of the partition's sort order.The expression's valuenrows before the current row.The expression's value in the last row of the partition's sort order.The expression's valuenrows after the current row. -
Method Summary
Modifier and TypeMethodDescriptionstatic OffsetFunctionReturns the enum constant of this class with the specified name.static OffsetFunction[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LAG
The expression's valuenrows before the current row. -
LEAD
The expression's valuenrows after the current row. -
FIRST_VALUE
The expression's value in the first row of the partition's sort order. -
LAST_VALUE
The expression's value in the last row of the partition's sort order.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-