Package org.elasticsearch.action.delete
Class DeleteResponse
java.lang.Object
- All Implemented Interfaces:
WriteResponse,Writeable,org.elasticsearch.common.util.concurrent.RefCounted,StatusToXContentObject,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.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 classDeleteResponse.BuilderBuilder class forDeleteResponse.Nested classes/interfaces inherited from class org.elasticsearch.action.DocWriteResponse
DocWriteResponse.ResultNested classes/interfaces inherited from class org.elasticsearch.action.support.replication.ReplicationResponse
ReplicationResponse.ShardInfoNested classes/interfaces inherited from class org.elasticsearch.action.ActionResponse
ActionResponse.EmptyNested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.ParamsNested 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
resultFields inherited from class org.elasticsearch.action.support.replication.ReplicationResponse
EMPTYFields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
Constructors Constructor Description DeleteResponse(StreamInput in)DeleteResponse(ShardId shardId, java.lang.String type, java.lang.String id, long seqNo, long primaryTerm, long version, boolean found)DeleteResponse(ShardId shardId, StreamInput in) -
Method Summary
Modifier and Type Method Description static DeleteResponsefromXContent(org.elasticsearch.common.xcontent.XContentParser parser)static voidparseXContentFields(org.elasticsearch.common.xcontent.XContentParser parser, DeleteResponse.Builder context)Parse the current token and update the parsing context appropriately.RestStatusstatus()returns the rest status for this response (based onReplicationResponse.ShardInfo.status()java.lang.StringtoString()Methods inherited from class org.elasticsearch.action.DocWriteResponse
forcedRefresh, getId, getIndex, getLocation, getPrimaryTerm, getResult, getSeqNo, getShardId, getType, getVersion, innerToXContent, parseInnerToXContent, setForcedRefresh, toXContent, writeThin, writeToMethods inherited from class org.elasticsearch.action.support.replication.ReplicationResponse
getShardInfo, setShardInfoMethods inherited from class org.elasticsearch.transport.TransportMessage
decRef, incRef, remoteAddress, remoteAddress, tryIncRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
Constructor Details
-
DeleteResponse
- Throws:
java.io.IOException
-
DeleteResponse
- Throws:
java.io.IOException
-
DeleteResponse
public DeleteResponse(ShardId shardId, java.lang.String type, java.lang.String id, long seqNo, long primaryTerm, long version, boolean found)
-
-
Method Details
-
status
Description copied from class:DocWriteResponsereturns the rest status for this response (based onReplicationResponse.ShardInfo.status()- Specified by:
statusin interfaceStatusToXContentObject- Overrides:
statusin classDocWriteResponse
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
fromXContent
public static DeleteResponse fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) throws java.io.IOException- Throws:
java.io.IOException
-
parseXContentFields
public static void parseXContentFields(org.elasticsearch.common.xcontent.XContentParser parser, DeleteResponse.Builder context) throws java.io.IOExceptionParse the current token and update the parsing context appropriately.- Throws:
java.io.IOException
-