public final class GroupByAggregation extends Object
Modifier and Type | Method and Description |
---|---|
static GroupByAggregation |
argMax()
Index of max element.
|
static GroupByAggregation |
argMin()
Index of min element.
|
static GroupByAggregation |
collectList()
Collect the values into a list.
|
static GroupByAggregation |
collectList(NullPolicy nullPolicy)
Collect the values into a list.
|
static GroupByAggregation |
collectSet()
Collect the values into a set.
|
static GroupByAggregation |
collectSet(NullPolicy nullPolicy,
NullEquality nullEquality,
NaNEquality nanEquality)
Collect the values into a set.
|
static GroupByAggregation |
count()
Count number of valid, a.k.a.
|
static GroupByAggregation |
count(NullPolicy nullPolicy)
Count number of elements.
|
static GroupByAggregation |
createTDigest(int delta)
Compute a t-digest from on a fixed-width numeric input column.
|
boolean |
equals(Object other) |
int |
hashCode() |
static GroupByAggregation |
histogram()
Histogram aggregation, computing the frequencies for each unique row.
|
static GroupByAggregation |
M2()
Sum of square of differences from mean.
|
static GroupByAggregation |
max()
Max Aggregation
|
static GroupByAggregation |
mean()
Arithmetic mean reduction.
|
static GroupByAggregation |
median()
Median reduction.
|
static GroupByAggregation |
mergeHistogram()
MergeHistogram aggregation, to merge multiple histograms.
|
static GroupByAggregation |
mergeLists()
Merge the partial lists produced by multiple CollectListAggregations.
|
static GroupByAggregation |
mergeM2()
Merge the partial M2 values produced by multiple instances of M2Aggregation.
|
static GroupByAggregation |
mergeSets()
Merge the partial sets produced by multiple CollectSetAggregations.
|
static GroupByAggregation |
mergeSets(NullEquality nullEquality,
NaNEquality nanEquality)
Merge the partial sets produced by multiple CollectSetAggregations.
|
static GroupByAggregation |
mergeTDigest(int delta)
Merge t-digests.
|
static GroupByAggregation |
min()
Min Aggregation
|
static GroupByAggregation |
nth(int offset)
Get the nth, non-null, element in a group.
|
static GroupByAggregation |
nth(int offset,
NullPolicy nullPolicy)
Get the nth element in a group.
|
static GroupByAggregation |
nunique()
Number of unique, non-null, elements.
|
static GroupByAggregation |
nunique(NullPolicy nullPolicy)
Number of unique elements.
|
GroupByAggregationOnColumn |
onColumn(int columnIndex)
Add a column to the Aggregation so it can be used on a specific column of data.
|
static GroupByAggregation |
product()
Product Aggregation.
|
static GroupByAggregation |
quantile(double... quantiles)
Aggregate to compute the specified quantiles.
|
static GroupByAggregation |
quantile(QuantileMethod method,
double... quantiles)
Aggregate to compute various quantiles.
|
static GroupByAggregation |
standardDeviation()
Standard deviation aggregation with 1 as the delta degrees of freedom.
|
static GroupByAggregation |
standardDeviation(int ddof)
Standard deviation aggregation.
|
static GroupByAggregation |
sum()
Sum Aggregation
|
static GroupByAggregation |
variance()
Variance aggregation with 1 as the delta degrees of freedom.
|
static GroupByAggregation |
variance(int ddof)
Variance aggregation.
|
public GroupByAggregationOnColumn onColumn(int columnIndex)
columnIndex
- the index of the column to operate on.public static GroupByAggregation count()
public static GroupByAggregation count(NullPolicy nullPolicy)
nullPolicy
- INCLUDE if nulls should be counted. EXCLUDE if only non-null values
should be counted.public static GroupByAggregation sum()
public static GroupByAggregation product()
public static GroupByAggregation argMax()
public static GroupByAggregation argMin()
public static GroupByAggregation min()
public static GroupByAggregation max()
public static GroupByAggregation mean()
public static GroupByAggregation M2()
public static GroupByAggregation variance()
public static GroupByAggregation 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 GroupByAggregation standardDeviation()
public static GroupByAggregation 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 GroupByAggregation quantile(double... quantiles)
public static GroupByAggregation quantile(QuantileMethod method, double... quantiles)
public static GroupByAggregation median()
public static GroupByAggregation nunique()
public static GroupByAggregation 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 GroupByAggregation 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 GroupByAggregation 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 GroupByAggregation collectList()
public static GroupByAggregation collectList(NullPolicy nullPolicy)
nullPolicy
- Indicates whether to include/exclude nulls during collection.public static GroupByAggregation collectSet()
public static GroupByAggregation 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 GroupByAggregation mergeLists()
public static GroupByAggregation mergeSets()
public static GroupByAggregation mergeSets(NullEquality nullEquality, NaNEquality nanEquality)
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 GroupByAggregation mergeM2()
public static GroupByAggregation createTDigest(int delta)
delta
- Required accuracy (number of buckets).public static GroupByAggregation mergeTDigest(int delta)
delta
- Required accuracy (number of buckets).public static GroupByAggregation histogram()
public static GroupByAggregation mergeHistogram()
Copyright © 2024. All rights reserved.