public static enum StatsField.Stat extends Enum<StatsField.Stat>
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)Enum Constant and Description |
---|
cardinality |
count |
countDistinct |
distinctValues |
max |
mean |
min |
missing |
percentiles |
stddev |
sum |
sumOfSquares |
Modifier and Type | Method and Description |
---|---|
static StatsField.Stat |
forName(String paramKey)
Given a String, returns the corrisponding Stat enum value if any, otherwise returns null.
|
EnumSet<StatsField.Stat> |
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.
|
static StatsField.Stat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StatsField.Stat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StatsField.Stat min
public static final StatsField.Stat max
public static final StatsField.Stat missing
public static final StatsField.Stat sum
public static final StatsField.Stat count
public static final StatsField.Stat mean
public static final StatsField.Stat sumOfSquares
public static final StatsField.Stat stddev
public static final StatsField.Stat distinctValues
public static final StatsField.Stat countDistinct
public static final StatsField.Stat percentiles
public static final StatsField.Stat cardinality
public static StatsField.Stat[] values()
for (StatsField.Stat c : StatsField.Stat.values()) System.out.println(c);
public static StatsField.Stat valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static StatsField.Stat forName(String paramKey)
public EnumSet<StatsField.Stat> getDistribDeps()
getDistribDeps()
result,
but that is not always the case.Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.