public class AggregationOnColumn<T extends Aggregation> extends Aggregation
Aggregation.AllAggregation, Aggregation.AnyAggregation, Aggregation.ArgMaxAggregation, Aggregation.ArgMinAggregation, Aggregation.CollectListAggregation, Aggregation.CountAggregation, Aggregation.LagAggregation, Aggregation.LeadAggregation, Aggregation.MaxAggregation, Aggregation.MeanAggregation, Aggregation.MedianAggregation, Aggregation.MinAggregation, Aggregation.NthAggregation, Aggregation.NuniqueAggregation, Aggregation.ProductAggregation, Aggregation.RowNumberAggregation, Aggregation.StandardDeviationAggregation, Aggregation.SumAggregation, Aggregation.SumOfSquaresAggregation, Aggregation.VarianceAggregation| Modifier and Type | Field and Description |
|---|---|
protected int |
columnIndex |
protected T |
wrapped |
kind| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
int |
getColumnIndex() |
int |
hashCode() |
AggregationOnColumn<T> |
onColumn(int columnIndex)
Add a column to the Aggregation so it can be used on a specific column of data.
|
<R extends Aggregation & RollingAggregation<R>> |
overWindow(WindowOptions windowOptions)
Do the aggregation over a given Window.
|
all, any, argMax, argMin, collectList, collectList, collectSet, collectSet, count, count, lag, lag, lead, lead, max, mean, median, min, nth, nth, nunique, nunique, product, quantile, quantile, rowNumber, standardDeviation, standardDeviation, sum, sumOfSquares, variance, varianceprotected final T extends Aggregation wrapped
protected final int columnIndex
public AggregationOnColumn<T> onColumn(int columnIndex)
AggregationonColumn in class AggregationcolumnIndex - the index of the column to operate on.public <R extends Aggregation & RollingAggregation<R>> AggregationOverWindow<R> overWindow(WindowOptions windowOptions)
public int getColumnIndex()
public int hashCode()
hashCode in class Aggregationpublic boolean equals(Object other)
equals in class AggregationCopyright © 2021. All rights reserved.