public class UpdateResponse extends DocWriteResponse
Modifier and Type | Class and Description |
---|---|
static class |
UpdateResponse.Builder
Builder class for
UpdateResponse . |
DocWriteResponse.Result
ReplicationResponse.ShardInfo
TransportResponse.Empty
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
result
EMPTY
EMPTY_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, toXContent
getShardInfo, setShardInfo
remoteAddress, remoteAddress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isFragment
public 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()
DocWriteResponse
ShardInfo#status()
status
in interface StatusToXContentObject
status
in class DocWriteResponse
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class DocWriteResponse
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in class DocWriteResponse
java.io.IOException
public XContentBuilder innerToXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
innerToXContent
in class DocWriteResponse
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public static UpdateResponse fromXContent(XContentParser parser) throws java.io.IOException
java.io.IOException
public static void parseXContentFields(XContentParser parser, UpdateResponse.Builder context) throws java.io.IOException
java.io.IOException