public static class MultiSearchResponse.Item extends Object implements Streamable
Constructor and Description |
---|
MultiSearchResponse.Item(SearchResponse response,
Throwable throwable) |
Modifier and Type | Method and Description |
---|---|
Throwable |
getFailure() |
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) |
void |
writeTo(StreamOutput out) |
public MultiSearchResponse.Item(SearchResponse response, Throwable throwable)
public boolean isFailure()
@Nullable public String getFailureMessage()
@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
public Throwable getFailure()
Copyright © 2009–2016. All rights reserved.