public enum PercentilesMethod extends java.lang.Enum<PercentilesMethod> implements Writeable
Writeable.Reader<V>, Writeable.Writer<V>
Enum Constant and Description |
---|
HDR
The HDRHistogram method of calculating percentiles
|
TDIGEST
The TDigest method for calculating percentiles
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
static PercentilesMethod |
readFromStream(StreamInput in) |
static PercentilesMethod |
resolveFromName(java.lang.String name)
Returns the
PercentilesMethod for this method name. |
static PercentilesMethod |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PercentilesMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
public static final PercentilesMethod TDIGEST
public static final PercentilesMethod HDR
public static PercentilesMethod[] values()
for (PercentilesMethod c : PercentilesMethod.values()) System.out.println(c);
public static PercentilesMethod 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 java.lang.String getName()
public static PercentilesMethod readFromStream(StreamInput in) throws java.io.IOException
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
public static PercentilesMethod resolveFromName(java.lang.String name)
PercentilesMethod
for this method name. returns
null
if no PercentilesMethod
exists for the name.