public class UpdateResponse extends DocWriteResponse
| Modifier and Type | Class and Description |
|---|---|
static class |
UpdateResponse.Builder
Builder class for
UpdateResponse. |
DocWriteResponse.ResultReplicationResponse.ShardInfoTransportResponse.EmptyToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsresultEMPTYEMPTY_PARAMS| Constructor and Description |
|---|
UpdateResponse() |
UpdateResponse(ReplicationResponse.ShardInfo shardInfo,
ShardId shardId,
java.lang.String type,
java.lang.String id,
long version,
DocWriteResponse.Result result) |
UpdateResponse(ShardId shardId,
java.lang.String type,
java.lang.String id,
long version,
DocWriteResponse.Result result)
Constructor to be used when a update didn't translate in a write.
|
| Modifier and Type | Method and Description |
|---|---|
static UpdateResponse |
fromXContent(XContentParser parser) |
GetResult |
getGetResult() |
XContentBuilder |
innerToXContent(XContentBuilder builder,
ToXContent.Params params) |
static void |
parseXContentFields(XContentParser parser,
UpdateResponse.Builder context)
Parse the current token and update the parsing context appropriately.
|
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
void |
setGetResult(GetResult getResult) |
RestStatus |
status()
returns the rest status for this response (based on
ShardInfo#status() |
java.lang.String |
toString() |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
forcedRefresh, getId, getIndex, getLocation, getResult, getShardId, getType, getVersion, parseInnerToXContent, setForcedRefresh, toXContentgetShardInfo, setShardInforemoteAddress, remoteAddressclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisFragmentpublic UpdateResponse()
public UpdateResponse(ShardId shardId, java.lang.String type, java.lang.String id, long version, DocWriteResponse.Result result)
public UpdateResponse(ReplicationResponse.ShardInfo shardInfo, ShardId shardId, java.lang.String type, java.lang.String id, long version, DocWriteResponse.Result result)
public void setGetResult(GetResult getResult)
public GetResult getGetResult()
public RestStatus status()
DocWriteResponseShardInfo#status()status in interface StatusToXContentObjectstatus in class DocWriteResponsepublic void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface StreamablereadFrom in class DocWriteResponsejava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in class DocWriteResponsejava.io.IOExceptionpublic XContentBuilder innerToXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
innerToXContent in class DocWriteResponsejava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic static UpdateResponse fromXContent(XContentParser parser) throws java.io.IOException
java.io.IOExceptionpublic static void parseXContentFields(XContentParser parser, UpdateResponse.Builder context) throws java.io.IOException
java.io.IOException