public class AggregateFunctions extends Object
AggregateFunction
Modifier and Type | Field | Description |
---|---|---|
static BooleanAggregateFunction |
allTrue |
A function that takes a column argument and returns
true if all values in that column
are true |
static BooleanAggregateFunction |
anyTrue |
A function that takes a column argument and returns
true if at least one value in the
column is true |
static NumericAggregateFunction |
change |
A function that takes a
NumericColumn argument and returns the difference between the
last and first items |
static AnyIntAggregateFunction |
count |
A function that takes a
Column argument and returns the count of values in the column
excluding missing values. |
static BooleanIntAggregateFunction |
countFalse |
A function that takes a column argument and returns the count of
false values in the
column |
static AnyIntAggregateFunction |
countMissing |
A function that takes a
NumericColumn argument and returns the count of missing values
in the column |
static AnyIntAggregateFunction |
countNonMissing |
A function that takes a
Column argument and returns the count of values in the column
excluding missing values |
static BooleanIntAggregateFunction |
countTrue |
A function that takes a column argument and returns the number of
true values in a
column |
static AnyIntAggregateFunction |
countUnique |
AA function that takes a
Column argument and returns the number of non-missing unique
values in the column |
static AnyIntAggregateFunction |
countWithMissing |
A function that takes a
Column argument and returns the number of values in the column,
including missing values |
static NumericAggregateFunction |
cv |
A function that takes a
NumericColumn argument and returns the coefficient of variation
(stdDev/mean) of the values in the column |
static DateAggregateFunction |
earliestDate |
A function that takes a column argument and returns the earliest date in that column
|
static DateTimeAggregateFunction |
earliestDateTime |
A function that takes a column argument and returns the earliest date-time value in that column
|
static NumericAggregateFunction |
first |
A function that takes a
NumericColumn argument and returns the first item without
sorting |
static NumericAggregateFunction |
geometricMean |
A function that takes a
NumericColumn argument and returns the geometric mean of all
values in the column |
static NumericAggregateFunction |
kurtosis |
A function that takes a
NumericColumn argument and returns the kurtosis of its values |
static NumericAggregateFunction |
last |
A function that takes a
NumericColumn argument and returns the last item without
sorting |
static DateAggregateFunction |
latestDate |
A function that takes a column argument and returns the latest date in that column
|
static DateTimeAggregateFunction |
latestDateTime |
A function that takes a column argument and returns the latest date-time value in that column
|
static NumericAggregateFunction |
max |
A function that takes a
NumericColumn argument and returns the largeset value in the
column |
static InstantAggregateFunction |
maxInstant |
A function that takes a column argument and returns the latest instant in that column
|
static NumericAggregateFunction |
mean |
A function that takes a
NumericColumn argument and returns the mean of the values in
the column |
static NumericAggregateFunction |
median |
A function that takes a
NumericColumn argument and returns the median of the values in
the column |
static NumericAggregateFunction |
min |
A function that takes a
NumericColumn argument and returns the smallest value in the
column |
static InstantAggregateFunction |
minInstant |
A function that takes a column argument and returns the earliest Instant in that column
|
static BooleanAggregateFunction |
noneTrue |
A function that takes a column argument and returns
true if no values in the column are
true |
static NumericAggregateFunction |
pctChange |
A function that takes a
NumericColumn argument and returns the percent difference
between the last and first items |
static NumericAggregateFunction |
percentile90 |
A function that takes a
NumericColumn argument and returns the 90th percentile of the
values in the column |
static NumericAggregateFunction |
percentile95 |
A function that takes a
NumericColumn argument and returns the 95th percentile of the
values in the column |
static NumericAggregateFunction |
percentile99 |
A function that takes a
NumericColumn argument and returns the 99th percentile of the
values in the column |
static NumericAggregateFunction |
populationVariance |
A function that takes a
NumericColumn argument and returns the population variance of
all values in the column |
static NumericAggregateFunction |
product |
A function that takes a
NumericColumn argument and returns the product of all values in
the column |
static BooleanDoubleAggregateFunction |
proportionFalse |
A function that takes a column argument and returns the proportion of values in the column that
are
false |
static BooleanDoubleAggregateFunction |
proportionTrue |
A function that takes a column argument and returns the proportion of values in that column
that are
true |
static NumericAggregateFunction |
quadraticMean |
A function that takes a
NumericColumn argument and returns the quadratic mean, aka, the
root-mean-square |
static NumericAggregateFunction |
quartile1 |
A function that takes a
NumericColumn argument and returns the first quartile of the
values in the column |
static NumericAggregateFunction |
quartile3 |
A function that takes a
NumericColumn argument and returns the third quartile of the
values in the column |
static NumericAggregateFunction |
range |
A function that takes a
NumericColumn argument and returns the difference between the
largest and smallest values in the column |
static NumericAggregateFunction |
skewness |
A function that takes a
NumericColumn argument and returns the skewness of its values |
static NumericAggregateFunction |
standardDeviation |
Deprecated.
use
stdDev instead |
static NumericAggregateFunction |
stdDev |
A function that takes a
NumericColumn argument and returns the standard deviation of
its values |
static NumericAggregateFunction |
sum |
A function that takes a
NumericColumn argument and returns the sum of the values in the
column |
static NumericAggregateFunction |
sumOfLogs |
A function that takes a
NumericColumn argument and returns the sumOfLogs of its values |
static NumericAggregateFunction |
sumOfSquares |
A function that takes a
NumericColumn argument and returns the sumOfSquares of its
values |
static NumericAggregateFunction |
variance |
A function that takes a
NumericColumn argument and returns the variance of its values |
Modifier and Type | Method | Description |
---|---|---|
static Double |
meanDifference(NumericColumn<?> column1,
NumericColumn<?> column2) |
Returns the given mean difference of the values in the arguments
TODO(lwhite): These are two column reductions. |
static Double |
percentile(NumericColumn<?> data,
Double percentile) |
Returns the given percentile of the values in the argument
|
static Double |
sumDifference(NumericColumn<?> column1,
NumericColumn<?> column2) |
Returns the given sum difference of the values in the arguments
TODO(lwhite): These are two column reductions. |
public static final DateTimeAggregateFunction earliestDateTime
public static final DateAggregateFunction earliestDate
public static final DateAggregateFunction latestDate
public static final DateTimeAggregateFunction latestDateTime
public static final InstantAggregateFunction maxInstant
public static final InstantAggregateFunction minInstant
public static final BooleanIntAggregateFunction countTrue
true
values in a
columnpublic static final BooleanAggregateFunction allTrue
true
if all values in that column
are truepublic static final BooleanAggregateFunction anyTrue
true
if at least one value in the
column is truepublic static final BooleanAggregateFunction noneTrue
true
if no values in the column are
truepublic static final BooleanIntAggregateFunction countFalse
false
values in the
columnpublic static final BooleanDoubleAggregateFunction proportionTrue
true
public static final BooleanDoubleAggregateFunction proportionFalse
false
public static final NumericAggregateFunction first
NumericColumn
argument and returns the first item without
sortingpublic static final NumericAggregateFunction last
NumericColumn
argument and returns the last item without
sortingpublic static final NumericAggregateFunction change
NumericColumn
argument and returns the difference between the
last and first itemspublic static final NumericAggregateFunction pctChange
NumericColumn
argument and returns the percent difference
between the last and first itemspublic static final AnyIntAggregateFunction countNonMissing
Column
argument and returns the count of values in the column
excluding missing valuespublic static final AnyIntAggregateFunction count
Column
argument and returns the count of values in the column
excluding missing values. A synonym for countNonMissingpublic static final AnyIntAggregateFunction countMissing
NumericColumn
argument and returns the count of missing values
in the columnpublic static final AnyIntAggregateFunction countUnique
Column
argument and returns the number of non-missing unique
values in the columnpublic static final NumericAggregateFunction mean
NumericColumn
argument and returns the mean of the values in
the columnpublic static final NumericAggregateFunction cv
NumericColumn
argument and returns the coefficient of variation
(stdDev/mean) of the values in the columnpublic static final NumericAggregateFunction sum
NumericColumn
argument and returns the sum of the values in the
columnpublic static final NumericAggregateFunction median
NumericColumn
argument and returns the median of the values in
the columnpublic static final AnyIntAggregateFunction countWithMissing
Column
argument and returns the number of values in the column,
including missing valuespublic static final NumericAggregateFunction quartile1
NumericColumn
argument and returns the first quartile of the
values in the columnpublic static final NumericAggregateFunction quartile3
NumericColumn
argument and returns the third quartile of the
values in the columnpublic static final NumericAggregateFunction percentile90
NumericColumn
argument and returns the 90th percentile of the
values in the columnpublic static final NumericAggregateFunction percentile95
NumericColumn
argument and returns the 95th percentile of the
values in the columnpublic static final NumericAggregateFunction percentile99
NumericColumn
argument and returns the 99th percentile of the
values in the columnpublic static final NumericAggregateFunction range
NumericColumn
argument and returns the difference between the
largest and smallest values in the columnpublic static final NumericAggregateFunction min
NumericColumn
argument and returns the smallest value in the
columnpublic static final NumericAggregateFunction max
NumericColumn
argument and returns the largeset value in the
columnpublic static final NumericAggregateFunction product
NumericColumn
argument and returns the product of all values in
the columnpublic static final NumericAggregateFunction geometricMean
NumericColumn
argument and returns the geometric mean of all
values in the columnpublic static final NumericAggregateFunction populationVariance
NumericColumn
argument and returns the population variance of
all values in the columnpublic static final NumericAggregateFunction quadraticMean
NumericColumn
argument and returns the quadratic mean, aka, the
root-mean-squarepublic static final NumericAggregateFunction kurtosis
NumericColumn
argument and returns the kurtosis of its valuespublic static final NumericAggregateFunction skewness
NumericColumn
argument and returns the skewness of its valuespublic static final NumericAggregateFunction sumOfSquares
NumericColumn
argument and returns the sumOfSquares of its
valuespublic static final NumericAggregateFunction sumOfLogs
NumericColumn
argument and returns the sumOfLogs of its valuespublic static final NumericAggregateFunction variance
NumericColumn
argument and returns the variance of its valuespublic static final NumericAggregateFunction stdDev
NumericColumn
argument and returns the standard deviation of
its values@Deprecated public static final NumericAggregateFunction standardDeviation
stdDev
insteadpublic static Double percentile(NumericColumn<?> data, Double percentile)
public static Double meanDifference(NumericColumn<?> column1, NumericColumn<?> column2)
public static Double sumDifference(NumericColumn<?> column1, NumericColumn<?> column2)
Copyright © 2022. All rights reserved.