org.elasticsearch.common.io.stream.Streamable
public static class MultiSearchTemplateResponse.Item
extends java.lang.Object
implements org.elasticsearch.common.io.stream.Streamable
Constructor | Description |
---|---|
Item(SearchTemplateResponse 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.
|
SearchTemplateResponse |
getResponse() |
The actual search response, null if its a failure.
|
boolean |
isFailure() |
Is it a failed search?
|
void |
readFrom(org.elasticsearch.common.io.stream.StreamInput in) |
|
static MultiSearchTemplateResponse.Item |
readItem(org.elasticsearch.common.io.stream.StreamInput in) |
|
void |
writeTo(org.elasticsearch.common.io.stream.StreamOutput out) |
public Item(SearchTemplateResponse response, java.lang.Exception exception)
public boolean isFailure()
@Nullable public java.lang.String getFailureMessage()
@Nullable public SearchTemplateResponse getResponse()
public static MultiSearchTemplateResponse.Item readItem(org.elasticsearch.common.io.stream.StreamInput in) throws java.io.IOException
java.io.IOException
public void readFrom(org.elasticsearch.common.io.stream.StreamInput in) throws java.io.IOException
readFrom
in interface org.elasticsearch.common.io.stream.Streamable
java.io.IOException
public void writeTo(org.elasticsearch.common.io.stream.StreamOutput out) throws java.io.IOException
writeTo
in interface org.elasticsearch.common.io.stream.Streamable
java.io.IOException
public java.lang.Exception getFailure()