public final class RollingAggregation extends Object
Modifier and Type | Method and Description |
---|---|
static RollingAggregation |
argMax()
Index of max element.
|
static RollingAggregation |
argMin()
Index of min element.
|
static RollingAggregation |
collectList()
Collect the values into a list.
|
static RollingAggregation |
collectList(NullPolicy nullPolicy)
Collect the values into a list.
|
static RollingAggregation |
collectSet()
Collect the values into a set.
|
static RollingAggregation |
collectSet(NullPolicy nullPolicy,
NullEquality nullEquality,
NaNEquality nanEquality)
Collect the values into a set.
|
static RollingAggregation |
count()
Count number of valid, a.k.a.
|
static RollingAggregation |
count(NullPolicy nullPolicy)
Count number of elements.
|
boolean |
equals(Object other) |
int |
hashCode() |
static RollingAggregation |
lag(int offset)
In a rolling window return the value offset entries behind or null if it is outside of the
window.
|
static RollingAggregation |
lag(int offset,
ColumnVector defaultOutput)
In a rolling window return the value offset entries behind or the corresponding value from
defaultOutput if it is outside of the window.
|
static RollingAggregation |
lead(int offset)
In a rolling window return the value offset entries ahead or null if it is outside of the
window.
|
static RollingAggregation |
lead(int offset,
ColumnVector defaultOutput)
In a rolling window return the value offset entries ahead or the corresponding value from
defaultOutput if it is outside of the window.
|
static RollingAggregation |
max()
Rolling Window Max
|
static RollingAggregation |
mean()
Arithmetic Mean
|
static RollingAggregation |
min()
Rolling Window Min
|
static RollingAggregation |
nth(int n,
NullPolicy nullPolicy)
Select the nth element from a specified window.
|
RollingAggregationOnColumn |
onColumn(int columnIndex)
Add a column to the Aggregation so it can be used on a specific column of data.
|
static RollingAggregation |
rowNumber()
Get the row number.
|
static RollingAggregation |
standardDeviation()
Rolling Window Standard Deviation with 1 as delta degrees of freedom(DDOF).
|
static RollingAggregation |
standardDeviation(int ddof)
Rolling Window Standard Deviation with configurable delta degrees of freedom(DDOF).
|
static RollingAggregation |
sum()
Rolling Window Sum
|
public RollingAggregationOnColumn onColumn(int columnIndex)
columnIndex
- the index of the column to operate on.public static RollingAggregation sum()
public static RollingAggregation min()
public static RollingAggregation max()
public static RollingAggregation standardDeviation()
public static RollingAggregation standardDeviation(int ddof)
public static RollingAggregation count()
public static RollingAggregation count(NullPolicy nullPolicy)
nullPolicy
- INCLUDE if nulls should be counted. EXCLUDE if only non-null values
should be counted.public static RollingAggregation mean()
public static RollingAggregation argMax()
public static RollingAggregation argMin()
public static RollingAggregation rowNumber()
public static RollingAggregation lead(int offset)
public static RollingAggregation lead(int offset, ColumnVector defaultOutput)
public static RollingAggregation lag(int offset)
public static RollingAggregation lag(int offset, ColumnVector defaultOutput)
public static RollingAggregation collectList()
public static RollingAggregation collectList(NullPolicy nullPolicy)
nullPolicy
- Indicates whether to include/exclude nulls during collection.public static RollingAggregation collectSet()
public static RollingAggregation collectSet(NullPolicy nullPolicy, NullEquality nullEquality, NaNEquality nanEquality)
nullPolicy
- Indicates whether to include/exclude nulls during collection.nullEquality
- Flag to specify whether null entries within each list should be considered equal.nanEquality
- Flag to specify whether NaN values in floating point column should be considered equal.public static RollingAggregation nth(int n, NullPolicy nullPolicy)
n
- Indicates the index of the element to be selected from the windownullPolicy
- Indicates whether null elements are to be skipped, or notCopyright © 2024. All rights reserved.