public class Index extends java.lang.Object implements Writeable, ToXContent
Writeable.Reader<V>, Writeable.Writer<V>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
static Index[] |
EMPTY_ARRAY |
EMPTY_PARAMS
Constructor and Description |
---|
Index(StreamInput in)
Read from a stream.
|
Index(java.lang.String name,
java.lang.String uuid) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
static Index |
fromXContent(XContentParser parser) |
java.lang.String |
getName() |
java.lang.String |
getUUID() |
int |
hashCode() |
java.lang.String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isFragment
public static final Index[] EMPTY_ARRAY
public Index(java.lang.String name, java.lang.String uuid)
public Index(StreamInput in) throws java.io.IOException
java.io.IOException
public java.lang.String getName()
public java.lang.String getUUID()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public static Index fromXContent(XContentParser parser) throws java.io.IOException
java.io.IOException