org.elasticsearch.action.index
Class IndexResponse

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

public class IndexResponse
extends java.lang.Object
implements ActionResponse, Streamable

A response of an index operation,

See Also:
IndexRequest, Client.index(IndexRequest)

Constructor Summary
IndexResponse()
           
IndexResponse(java.lang.String index, java.lang.String type, java.lang.String id)
           
 
Method Summary
 java.lang.String getId()
          The id of the document indexed.
 java.lang.String getIndex()
          The index the document was indexed into.
 java.lang.String getType()
          The type of the document indexed.
 java.lang.String id()
          The id of the document indexed.
 java.lang.String index()
          The index the document was indexed into.
 void readFrom(StreamInput in)
           
 java.lang.String type()
          The type of the document indexed.
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexResponse

public IndexResponse()

IndexResponse

public IndexResponse(java.lang.String index,
                     java.lang.String type,
                     java.lang.String id)
Method Detail

index

public java.lang.String index()
The index the document was indexed into.


getIndex

public java.lang.String getIndex()
The index the document was indexed into.


type

public java.lang.String type()
The type of the document indexed.


getType

public java.lang.String getType()
The type of the document indexed.


id

public java.lang.String id()
The id of the document indexed.


getId

public java.lang.String getId()
The id of the document indexed.


readFrom

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

writeTo

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