Streamable
public 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, wait
newWriteableReader
public 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.IOException
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException
public java.lang.Exception getFailure()