Streamablepublic static class MultiSearchResponse.Item extends java.lang.Object implements Streamable
| Constructor | Description |
|---|---|
Item(SearchResponse response,
java.lang.Exception exception) |
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.Exception |
getFailure() |
|
java.lang.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) |
Set this object's fields from a StreamInput.
|
static MultiSearchResponse.Item |
readItem(StreamInput in) |
|
void |
writeTo(StreamOutput out) |
Write this object's fields to a StreamOutput.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic Item(SearchResponse response, java.lang.Exception exception)
public boolean isFailure()
@Nullable public java.lang.String getFailureMessage()
@Nullable public SearchResponse getResponse()
public static MultiSearchResponse.Item readItem(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface Streamablejava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface Streamablejava.io.IOExceptionpublic java.lang.Exception getFailure()