public static class MultiSearchResponse.Item extends java.lang.Object implements Streamable
Constructor and Description |
---|
Item(SearchResponse response,
java.lang.Throwable throwable) |
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
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.
|
public Item(SearchResponse response, java.lang.Throwable throwable)
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.Throwable getFailure()