public abstract class Aggregation extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Aggregation.AllAggregation |
static class |
Aggregation.AnyAggregation |
static class |
Aggregation.ArgMaxAggregation |
static class |
Aggregation.ArgMinAggregation |
static class |
Aggregation.CollectListAggregation |
static class |
Aggregation.CountAggregation |
static class |
Aggregation.LagAggregation |
static class |
Aggregation.LeadAggregation |
static class |
Aggregation.MaxAggregation |
static class |
Aggregation.MeanAggregation |
static class |
Aggregation.MedianAggregation |
static class |
Aggregation.MinAggregation |
static class |
Aggregation.NthAggregation |
static class |
Aggregation.NuniqueAggregation |
static class |
Aggregation.ProductAggregation |
static class |
Aggregation.RowNumberAggregation |
static class |
Aggregation.StandardDeviationAggregation |
static class |
Aggregation.SumAggregation |
static class |
Aggregation.SumOfSquaresAggregation |
static class |
Aggregation.VarianceAggregation |
| Modifier and Type | Field and Description |
|---|---|
protected ai.rapids.cudf.Aggregation.Kind |
kind |
| Modifier | Constructor and Description |
|---|---|
protected |
Aggregation(ai.rapids.cudf.Aggregation.Kind kind) |
| Modifier and Type | Method and Description |
|---|---|
static Aggregation.AllAggregation |
all()
All reduction.
|
static Aggregation.AnyAggregation |
any()
Any reduction.
|
static Aggregation.ArgMaxAggregation |
argMax()
Index of max element.
|
static Aggregation.ArgMinAggregation |
argMin()
Index of min element.
|
static Aggregation.CollectListAggregation |
collectList()
Collect the values into a list.
|
static Aggregation.CollectListAggregation |
collectList(NullPolicy nullPolicy)
Collect the values into a list.
|
static ai.rapids.cudf.Aggregation.CollectSetAggregation |
collectSet()
Collect the values into a set.
|
static ai.rapids.cudf.Aggregation.CollectSetAggregation |
collectSet(NullPolicy nullPolicy,
NullEquality nullEquality,
NaNEquality nanEquality)
Collect the values into a set.
|
static Aggregation.CountAggregation |
count()
Count number of valid, a.k.a.
|
static Aggregation.CountAggregation |
count(NullPolicy nullPolicy)
Count number of elements.
|
abstract boolean |
equals(Object other) |
abstract int |
hashCode() |
static Aggregation.LagAggregation |
lag(int offset)
In a rolling window return the value offset entries behind or null if it is outside of the
window.
|
static Aggregation.LagAggregation |
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 Aggregation.LeadAggregation |
lead(int offset)
In a rolling window return the value offset entries ahead or null if it is outside of the
window.
|
static Aggregation.LeadAggregation |
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 Aggregation.MaxAggregation |
max()
Max reduction.
|
static Aggregation.MeanAggregation |
mean()
Arithmetic mean reduction.
|
static Aggregation.MedianAggregation |
median()
Median reduction.
|
static Aggregation.MinAggregation |
min()
Min reduction.
|
static Aggregation.NthAggregation |
nth(int offset)
Get the nth, non-null, element in a group.
|
static Aggregation.NthAggregation |
nth(int offset,
NullPolicy nullPolicy)
Get the nth element in a group.
|
static Aggregation.NuniqueAggregation |
nunique()
Number of unique, non-null, elements.
|
static Aggregation.NuniqueAggregation |
nunique(NullPolicy nullPolicy)
Number of unique elements.
|
<T extends Aggregation> |
onColumn(int columnIndex)
Add a column to the Aggregation so it can be used on a specific column of data.
|
static Aggregation.ProductAggregation |
product()
Product reduction.
|
static ai.rapids.cudf.Aggregation.QuantileAggregation |
quantile(double... quantiles)
Aggregate to compute the specified quantiles.
|
static ai.rapids.cudf.Aggregation.QuantileAggregation |
quantile(QuantileMethod method,
double... quantiles)
Aggregate to compute various quantiles.
|
static Aggregation.RowNumberAggregation |
rowNumber()
Get the row number, only makes since for a window operations.
|
static Aggregation.StandardDeviationAggregation |
standardDeviation()
Standard deviation aggregation with 1 as the delta degrees of freedom.
|
static Aggregation.StandardDeviationAggregation |
standardDeviation(int ddof)
Standard deviation aggregation.
|
static Aggregation.SumAggregation |
sum()
Sum reduction.
|
static Aggregation.SumOfSquaresAggregation |
sumOfSquares()
Sum of squares reduction.
|
static Aggregation.VarianceAggregation |
variance()
Variance aggregation with 1 as the delta degrees of freedom.
|
static Aggregation.VarianceAggregation |
variance(int ddof)
Variance aggregation.
|
public <T extends Aggregation> AggregationOnColumn<T> onColumn(int columnIndex)
columnIndex - the index of the column to operate on.public static Aggregation.SumAggregation sum()
public static Aggregation.ProductAggregation product()
public static Aggregation.MinAggregation min()
public static Aggregation.MaxAggregation max()
public static Aggregation.CountAggregation count()
public static Aggregation.CountAggregation count(NullPolicy nullPolicy)
nullPolicy - INCLUDE if nulls should be counted. EXCLUDE if only non-null values
should be counted.public static Aggregation.AnyAggregation any()
public static Aggregation.AllAggregation all()
public static Aggregation.SumOfSquaresAggregation sumOfSquares()
public static Aggregation.MeanAggregation mean()
public static Aggregation.VarianceAggregation variance()
public static Aggregation.VarianceAggregation variance(int ddof)
ddof - delta degrees of freedom. The divisor used in calculation of variance is
N - ddof, where N is the population size.public static Aggregation.StandardDeviationAggregation standardDeviation()
public static Aggregation.StandardDeviationAggregation standardDeviation(int ddof)
ddof - delta degrees of freedom. The divisor used in calculation of std is
N - ddof, where N is the population size.public static Aggregation.MedianAggregation median()
public static ai.rapids.cudf.Aggregation.QuantileAggregation quantile(double... quantiles)
public static ai.rapids.cudf.Aggregation.QuantileAggregation quantile(QuantileMethod method, double... quantiles)
public static Aggregation.ArgMaxAggregation argMax()
public static Aggregation.ArgMinAggregation argMin()
public static Aggregation.NuniqueAggregation nunique()
public static Aggregation.NuniqueAggregation nunique(NullPolicy nullPolicy)
nullPolicy - INCLUDE if nulls should be counted else EXCLUDE. If nulls are counted they
compare as equal so multiple null values in a range would all only
increase the count by 1.public static Aggregation.NthAggregation nth(int offset)
offset - the offset to look at. Negative numbers go from the end of the group. Any
value outside of the group range results in a null.public static Aggregation.NthAggregation nth(int offset, NullPolicy nullPolicy)
offset - the offset to look at. Negative numbers go from the end of the group. Any
value outside of the group range results in a null.nullPolicy - INCLUDE if nulls should be included in the aggregation or EXCLUDE if they
should be skipped.public static Aggregation.RowNumberAggregation rowNumber()
public static Aggregation.CollectListAggregation collectList()
public static Aggregation.CollectListAggregation collectList(NullPolicy nullPolicy)
nullPolicy - Indicates whether to include/exclude nulls during collection.public static ai.rapids.cudf.Aggregation.CollectSetAggregation collectSet()
public static ai.rapids.cudf.Aggregation.CollectSetAggregation 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 Aggregation.LeadAggregation lead(int offset)
public static Aggregation.LeadAggregation lead(int offset, ColumnVector defaultOutput)
public static Aggregation.LagAggregation lag(int offset)
public static Aggregation.LagAggregation lag(int offset, ColumnVector defaultOutput)
Copyright © 2021. All rights reserved.