public class RestoreSource extends Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_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
IOExceptionpublic static RestoreSource readOptionalRestoreSource(StreamInput in) throws IOException
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionCopyright © 2009–2016. All rights reserved.