public static interface UserDefinedWindowFunctionAdapter.PartitionEntry extends Comparable<UserDefinedWindowFunctionAdapter.PartitionEntry>
PartitionEntry
provides a view on the argument values of a
window function call.
For each record processed by a window function, the functions argument expressions
are evaluated and the results are wrapped in a PartitionEntry
object.
The arguments occur in the same order that they were defined in the corresponding
function call.
If the window functions OVER
clause specified an order, the
PartitionEntry
s will be comparable based on this order.
Otherwise calling Comparable#compareTo(Object)
on a PartitionEntry
will fail with an exception.
Modifier and Type | Method and Description |
---|---|
Serializable |
getColumnValue(int i)
Returns the i-th argument column value derived from the underlying record.
|
Serializable[] |
getColumnValues()
Returns all the argument column values derived from the underlying records.
|
compareTo
Serializable getColumnValue(int i)
i
- the index of the argument column value to returnSerializable[] getColumnValues()