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
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
Copyright © 2009–2015. All rights reserved.