Enum Class StatsField.Stat
- All Implemented Interfaces:
Serializable,Comparable<StatsField.Stat>,Constable
- Enclosing class:
StatsField
An enumeration representing the sumer set of all possible stat values that can be computed.
Each of these enum values can be specified as a local param in a
stats.field (eg:
stats.field={!min=true mean=true}my_field_name) but not all enum values are valid
for all field types (eg: mean is meaningless for String fields)- WARNING: This API is experimental and might change in incompatible ways in the next release.
- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic StatsField.StatGiven a String, returns the corresponding Stat enum value if any, otherwise returns null.The stats that must be computed and returned by each shard involved in a distributed request in order to compute the overall value for this stat across the entire distributed result set.static StatsField.StatReturns the enum constant of this class with the specified name.static StatsField.Stat[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
min
-
max
-
missing
-
sum
-
count
-
mean
-
sumOfSquares
-
stddev
-
distinctValues
-
countDistinct
-
percentiles
-
cardinality
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
forName
Given a String, returns the corresponding Stat enum value if any, otherwise returns null. -
getDistribDeps
The stats that must be computed and returned by each shard involved in a distributed request in order to compute the overall value for this stat across the entire distributed result set. A Stat instance may include itself in thegetDistribDeps()result, but that is not always the case.
-