org.elasticsearch.action.delete
Class DeleteResponse

java.lang.Object
  extended by org.elasticsearch.action.delete.DeleteResponse
All Implemented Interfaces:
ActionResponse, Streamable

public class DeleteResponse
extends Object
implements ActionResponse, Streamable

The response of the delete action.

See Also:
DeleteRequest, Client.delete(DeleteRequest)

Constructor Summary
DeleteResponse()
           
DeleteResponse(String index, String type, String id, long version, boolean notFound)
           
 
Method Summary
 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.
 String id()
          The id of the document deleted.
 String index()
          The index the document was deleted from.
 boolean isNotFound()
          Returns true if there was no doc found to delete.
 boolean notFound()
          Returns true if there was no doc found to delete.
 void readFrom(StreamInput in)
           
 String type()
          The type of the document deleted.
 long version()
          The version of the delete operation.
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeleteResponse

public DeleteResponse()

DeleteResponse

public DeleteResponse(String index,
                      String type,
                      String id,
                      long version,
                      boolean notFound)
Method Detail

index

public String index()
The index the document was deleted from.


getIndex

public String getIndex()
The index the document was deleted from.


type

public String type()
The type of the document deleted.


getType

public String getType()
The type of the document deleted.


id

public String id()
The id of the document deleted.


getId

public String getId()
The id of the document deleted.


version

public long version()
The version of the delete operation.


getVersion

public long getVersion()
The version of the delete operation.


notFound

public boolean notFound()
Returns true if there was no doc found to delete.


isNotFound

public boolean isNotFound()
Returns true if there was no doc found to delete.


readFrom

public void readFrom(StreamInput in)
              throws IOException
Specified by:
readFrom in interface Streamable
Throws:
IOException

writeTo

public void writeTo(StreamOutput out)
             throws IOException
Specified by:
writeTo in interface Streamable
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.