Package org.elasticsearch.action.delete
Class DeleteResponse
- java.lang.Object
-
- All Implemented Interfaces:
WriteResponse
,Streamable
,Writeable
,StatusToXContentObject
,ToXContent
,ToXContentObject
public class DeleteResponse extends DocWriteResponse
The response of the delete action.- See Also:
DeleteRequest
,Client.delete(DeleteRequest)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DeleteResponse.Builder
Builder class forDeleteResponse
.-
Nested classes/interfaces inherited from class org.elasticsearch.action.DocWriteResponse
DocWriteResponse.Result
-
Nested classes/interfaces inherited from class org.elasticsearch.action.support.replication.ReplicationResponse
ReplicationResponse.ShardInfo
-
Nested classes/interfaces inherited from class org.elasticsearch.transport.TransportResponse
TransportResponse.Empty
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.action.DocWriteResponse
result
-
Fields inherited from class org.elasticsearch.action.support.replication.ReplicationResponse
EMPTY
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Constructor Description DeleteResponse()
DeleteResponse(ShardId shardId, java.lang.String type, java.lang.String id, long seqNo, long primaryTerm, long version, boolean found)
-
Method Summary
Modifier and Type Method Description static DeleteResponse
fromXContent(XContentParser parser)
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 onReplicationResponse.ShardInfo.status()
java.lang.String
toString()
-
Methods inherited from class org.elasticsearch.action.DocWriteResponse
forcedRefresh, getId, getIndex, getLocation, getPrimaryTerm, getResult, getSeqNo, getShardId, getType, getVersion, innerToXContent, parseInnerToXContent, readFrom, setForcedRefresh, toXContent, writeTo
-
Methods inherited from class org.elasticsearch.action.support.replication.ReplicationResponse
getShardInfo, setShardInfo
-
Methods inherited from class org.elasticsearch.transport.TransportMessage
remoteAddress, remoteAddress
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
-
-
-
Constructor Detail
-
DeleteResponse
public DeleteResponse()
-
DeleteResponse
public DeleteResponse(ShardId shardId, java.lang.String type, java.lang.String id, long seqNo, long primaryTerm, long version, boolean found)
-
-
Method Detail
-
status
public RestStatus status()
Description copied from class:DocWriteResponse
returns the rest status for this response (based onReplicationResponse.ShardInfo.status()
- Specified by:
status
in interfaceStatusToXContentObject
- Overrides:
status
in classDocWriteResponse
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
fromXContent
public static DeleteResponse fromXContent(XContentParser parser) throws java.io.IOException
- Throws:
java.io.IOException
-
parseXContentFields
public static void parseXContentFields(XContentParser parser, DeleteResponse.Builder context) throws java.io.IOException
Parse the current token and update the parsing context appropriately.- Throws:
java.io.IOException
-
-