public static class MultiSearchResponse.Item extends Object implements Streamable
| Constructor and Description |
|---|
Item(SearchResponse response,
String failureMessage) |
| Modifier and Type | Method and Description |
|---|---|
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 Item(SearchResponse response, String failureMessage)
public boolean isFailure()
@Nullable public String getFailureMessage()
@Nullable public SearchResponse getResponse()
public static MultiSearchResponse.Item readItem(StreamInput in) throws IOException
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionCopyright © 2009–2016. All rights reserved.