public class RestoreSource extends Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
RestoreSource(SnapshotId snapshotId,
Version version,
String index) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
String |
index() |
void |
readFrom(StreamInput in) |
static RestoreSource |
readOptionalRestoreSource(StreamInput in) |
static RestoreSource |
readRestoreSource(StreamInput in) |
SnapshotId |
snapshotId() |
String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
Version |
version() |
void |
writeTo(StreamOutput out) |
public RestoreSource(SnapshotId snapshotId, Version version, String index)
public SnapshotId snapshotId()
public String index()
public Version version()
public static RestoreSource readRestoreSource(StreamInput in) throws IOException
IOException
public static RestoreSource readOptionalRestoreSource(StreamInput in) throws IOException
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
Copyright © 2009–2016. All rights reserved.