org.elasticsearch.action.get
Class MultiGetItemResponse

java.lang.Object
  extended by org.elasticsearch.action.get.MultiGetItemResponse
All Implemented Interfaces:
Streamable

public class MultiGetItemResponse
extends Object
implements Streamable

A single multi get response.


Constructor Summary
MultiGetItemResponse(GetResponse response, MultiGetResponse.Failure failure)
           
 
Method Summary
 boolean failed()
          Is this a failed execution?
 MultiGetResponse.Failure failure()
          The failure if relevant.
 MultiGetResponse.Failure getFailure()
          The failure if relevant.
 String getId()
          The id of the document.
 String getIndex()
          The index name of the document.
 GetResponse getResponse()
          The actual get response, null if its a failure.
 String getType()
          The type of the document.
 String id()
          The id of the document.
 String index()
          The index name of the document.
 boolean isFailed()
          Is this a failed execution?
 void readFrom(StreamInput in)
           
static MultiGetItemResponse readItemResponse(StreamInput in)
           
 GetResponse response()
          The actual get response, null if its a failure.
 String type()
          The type of the document.
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiGetItemResponse

public MultiGetItemResponse(GetResponse response,
                            MultiGetResponse.Failure failure)
Method Detail

index

public String index()
The index name of the document.


getIndex

public String getIndex()
The index name of the document.


type

public String type()
The type of the document.


getType

public String getType()
The type of the document.


id

public String id()
The id of the document.


getId

public String getId()
The id of the document.


failed

public boolean failed()
Is this a failed execution?


isFailed

public boolean isFailed()
Is this a failed execution?


response

public GetResponse response()
The actual get response, null if its a failure.


getResponse

public GetResponse getResponse()
The actual get response, null if its a failure.


failure

public MultiGetResponse.Failure failure()
The failure if relevant.


getFailure

public MultiGetResponse.Failure getFailure()
The failure if relevant.


readItemResponse

public static MultiGetItemResponse readItemResponse(StreamInput in)
                                             throws IOException
Throws:
IOException

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.