public class UpdateResponse extends DocWriteResponse
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 |
---|---|
GetResult |
getGetResult() |
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() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
forcedRefresh, getId, getIndex, getLocation, getResult, getShardId, getType, getVersion, setForcedRefresh
getShardInfo, setShardInfo
remoteAddress, remoteAddress
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 StatusToXContent
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 toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
toXContent
in class DocWriteResponse
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object