public class MultiSearchTemplateResponse extends org.elasticsearch.action.ActionResponse implements java.lang.Iterable<MultiSearchTemplateResponse.Item>, org.elasticsearch.common.xcontent.ToXContent
| Modifier and Type | Class and Description |
|---|---|
static class |
MultiSearchTemplateResponse.Item
A search template response item, holding the actual search template response, or an error message if it failed.
|
| Constructor and Description |
|---|
MultiSearchTemplateResponse(MultiSearchTemplateResponse.Item[] items) |
| Modifier and Type | Method and Description |
|---|---|
MultiSearchTemplateResponse.Item[] |
getResponses()
The list of responses, the order is the same as the one provided in the request.
|
java.util.Iterator<MultiSearchTemplateResponse.Item> |
iterator() |
void |
readFrom(org.elasticsearch.common.io.stream.StreamInput in) |
java.lang.String |
toString() |
org.elasticsearch.common.xcontent.XContentBuilder |
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder,
org.elasticsearch.common.xcontent.ToXContent.Params params) |
void |
writeTo(org.elasticsearch.common.io.stream.StreamOutput out) |
remoteAddress, remoteAddresspublic MultiSearchTemplateResponse(MultiSearchTemplateResponse.Item[] items)
public java.util.Iterator<MultiSearchTemplateResponse.Item> iterator()
iterator in interface java.lang.Iterable<MultiSearchTemplateResponse.Item>public MultiSearchTemplateResponse.Item[] getResponses()
public void readFrom(org.elasticsearch.common.io.stream.StreamInput in)
throws java.io.IOException
readFrom in interface org.elasticsearch.common.io.stream.StreamablereadFrom in class org.elasticsearch.action.ActionResponsejava.io.IOExceptionpublic void writeTo(org.elasticsearch.common.io.stream.StreamOutput out)
throws java.io.IOException
writeTo in interface org.elasticsearch.common.io.stream.StreamablewriteTo in class org.elasticsearch.action.ActionResponsejava.io.IOExceptionpublic org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder,
org.elasticsearch.common.xcontent.ToXContent.Params params)
throws java.io.IOException
toXContent in interface org.elasticsearch.common.xcontent.ToXContentjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object