Package org.elasticsearch.action.delete
Class DeleteResponse
- All Implemented Interfaces:
WriteResponse,Writeable,StatusToXContentObject,RefCounted,ToXContent,ToXContentObject
The response of the delete action.
- See Also:
-
Nested Class Summary
Nested ClassesNested 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.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, 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.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionDeleteResponse(ShardId shardId, String type, String id, long seqNo, long primaryTerm, long version, boolean found) DeleteResponse(ShardId shardId, StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptionstatic DeleteResponsefromXContent(XContentParser parser) static voidparseXContentFields(XContentParser parser, DeleteResponse.Builder context) Parse the current token and update the parsing context appropriately.status()returns the rest status for this response (based onReplicationResponse.ShardInfo.status()toString()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, hasReferences, 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.xcontent.ToXContentObject
isFragment
-
Constructor Details
-
DeleteResponse
- Throws:
IOException
-
DeleteResponse
- Throws:
IOException
-
DeleteResponse
-
-
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
-
fromXContent
- Throws:
IOException
-
parseXContentFields
public static void parseXContentFields(XContentParser parser, DeleteResponse.Builder context) throws IOException Parse the current token and update the parsing context appropriately.- Throws:
IOException
-