public enum Statistic extends java.lang.Enum<Statistic> implements JsonUnivariateAggregate
JsonObject
.JsonAnalytics
Enum Constant and Description |
---|
MAX
Calculate the maximum.
|
MEAN
Calculate the arithmetic mean.
|
MIN
Calculate the minimum.
|
STDDEV
Calculate the standard deviation.
|
SUM
Calculate the sum.
|
N
Modifier and Type | Method and Description |
---|---|
JsonUnivariateAggregator |
get()
Return a new instance of this statistic implementation.
|
static Statistic |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Statistic[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
name
public static final Statistic MEAN
double
with the key MEAN
in the aggregate result.public static final Statistic MIN
double
with the key MIN
in the aggregate result.public static final Statistic MAX
double
with the key MAXIMUM
in the aggregate result.public static final Statistic SUM
double
with the key SUM
in the aggregate result.public static final Statistic STDDEV
public static Statistic[] values()
for (Statistic c : Statistic.values()) System.out.println(c);
public static Statistic valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic JsonUnivariateAggregator get()
get
in interface Supplier<JsonUnivariateAggregator>
Copyright © 2016 The Apache Software Foundation. All Rights Reserved - bbe71fa-20161201-1641