public class RestoreSource extends java.lang.Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
RestoreSource(Snapshot snapshot,
Version version,
java.lang.String index) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.lang.String |
index() |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
static RestoreSource |
readOptionalRestoreSource(StreamInput in) |
Snapshot |
snapshot() |
java.lang.String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
Version |
version() |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
public Snapshot snapshot()
public java.lang.String index()
public Version version()
public static RestoreSource readOptionalRestoreSource(StreamInput in) throws java.io.IOException
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
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