public class DeleteResponse extends DocWriteResponse
DeleteRequest
,
Client.delete(DeleteRequest)
Modifier and Type | Class and Description |
---|---|
static class |
DeleteResponse.Builder
Builder class for
DeleteResponse . |
DocWriteResponse.Result
ReplicationResponse.ShardInfo
TransportResponse.Empty
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
result
EMPTY
EMPTY_PARAMS
Constructor and Description |
---|
DeleteResponse() |
DeleteResponse(ShardId shardId,
java.lang.String type,
java.lang.String id,
long seqNo,
long primaryTerm,
long version,
boolean found) |
Modifier and Type | Method and Description |
---|---|
static DeleteResponse |
fromXContent(XContentParser parser) |
XContentBuilder |
innerToXContent(XContentBuilder builder,
ToXContent.Params params) |
static void |
parseXContentFields(XContentParser parser,
DeleteResponse.Builder context)
Parse the current token and update the parsing context appropriately.
|
RestStatus |
status()
returns the rest status for this response (based on
ShardInfo#status() |
java.lang.String |
toString() |
forcedRefresh, getId, getIndex, getLocation, getPrimaryTerm, getResult, getSeqNo, getShardId, getType, getVersion, parseInnerToXContent, readFrom, setForcedRefresh, toXContent, writeTo
getShardInfo, setShardInfo
remoteAddress, remoteAddress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isFragment
public DeleteResponse()
public DeleteResponse(ShardId shardId, java.lang.String type, java.lang.String id, long seqNo, long primaryTerm, long version, boolean found)
public RestStatus status()
DocWriteResponse
ShardInfo#status()
status
in interface StatusToXContentObject
status
in class DocWriteResponse
public java.lang.String toString()
toString
in class java.lang.Object
public XContentBuilder innerToXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
innerToXContent
in class DocWriteResponse
java.io.IOException
public static DeleteResponse fromXContent(XContentParser parser) throws java.io.IOException
java.io.IOException
public static void parseXContentFields(XContentParser parser, DeleteResponse.Builder context) throws java.io.IOException
java.io.IOException