public class DeleteResponse extends ActionWriteResponse
DeleteRequest,
Client.delete(DeleteRequest)ActionWriteResponse.ShardInfoTransportResponse.EmptyEMPTYheaders| Constructor and Description |
|---|
DeleteResponse() |
DeleteResponse(String index,
String type,
String id,
long version,
boolean found) |
| Modifier and Type | Method and Description |
|---|---|
String |
getId()
The id of the document deleted.
|
String |
getIndex()
The index the document was deleted from.
|
String |
getType()
The type of the document deleted.
|
long |
getVersion()
The version of the delete operation.
|
boolean |
isFound()
Returns true if a doc was found to delete.
|
void |
readFrom(StreamInput in) |
void |
writeTo(StreamOutput out) |
getShardInfo, setShardInforemoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic String getIndex()
public String getType()
public String getId()
public long getVersion()
public boolean isFound()
public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class ActionWriteResponseIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class ActionWriteResponseIOExceptionCopyright © 2009–2017. All rights reserved.