public static enum BucketHelpers.GapPolicy extends java.lang.Enum<BucketHelpers.GapPolicy>
| Enum Constant and Description |
|---|
INSERT_ZEROS |
SKIP |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Return the english-formatted name of the GapPolicy
|
static BucketHelpers.GapPolicy |
parse(java.lang.String text,
XContentLocation tokenLocation)
Parse a string GapPolicy into the byte enum
|
static BucketHelpers.GapPolicy |
readFrom(StreamInput in)
Deserialize the GapPolicy from the input stream
|
static BucketHelpers.GapPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BucketHelpers.GapPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
writeTo(StreamOutput out)
Serialize the GapPolicy to the output stream
|
public static final BucketHelpers.GapPolicy INSERT_ZEROS
public static final BucketHelpers.GapPolicy SKIP
public static BucketHelpers.GapPolicy[] values()
for (BucketHelpers.GapPolicy c : BucketHelpers.GapPolicy.values()) System.out.println(c);
public static BucketHelpers.GapPolicy 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 static BucketHelpers.GapPolicy parse(java.lang.String text, XContentLocation tokenLocation)
text - GapPolicy in string format (e.g. "ignore")public void writeTo(StreamOutput out) throws java.io.IOException
java.io.IOExceptionpublic static BucketHelpers.GapPolicy readFrom(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getName()