|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.action.get.MultiGetItemResponse
public class MultiGetItemResponse
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 |
---|
public MultiGetItemResponse(GetResponse response, MultiGetResponse.Failure failure)
Method Detail |
---|
public String index()
public String getIndex()
public String type()
public String getType()
public String id()
public String getId()
public boolean failed()
public boolean isFailed()
public GetResponse response()
public GetResponse getResponse()
public MultiGetResponse.Failure failure()
public MultiGetResponse.Failure getFailure()
public static MultiGetItemResponse readItemResponse(StreamInput in) throws IOException
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |