|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.action.search.MultiSearchResponse.Item
public static class MultiSearchResponse.Item
A search response item, holding the actual search response, or an error message if it failed.
Constructor Summary | |
---|---|
MultiSearchResponse.Item(SearchResponse response,
String failureMessage)
|
Method Summary | |
---|---|
String |
failureMessage()
The actual failure message, null if its not a failure. |
String |
getFailureMessage()
The actual failure message, null if its not a failure. |
SearchResponse |
getResponse()
The actual search response, null if its a failure. |
boolean |
isFailure()
Is it a failed search? |
void |
readFrom(StreamInput in)
|
static MultiSearchResponse.Item |
readItem(StreamInput in)
|
SearchResponse |
response()
The actual search response, null if its a failure. |
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 MultiSearchResponse.Item(SearchResponse response, String failureMessage)
Method Detail |
---|
public boolean isFailure()
@Nullable public String failureMessage()
@Nullable public String getFailureMessage()
@Nullable public SearchResponse response()
@Nullable public SearchResponse getResponse()
public static MultiSearchResponse.Item readItem(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 |