Class MultiSearchTemplateResponse
- java.lang.Object
-
- org.elasticsearch.transport.TransportMessage
-
- org.elasticsearch.transport.TransportResponse
-
- org.elasticsearch.action.ActionResponse
-
- org.elasticsearch.script.mustache.MultiSearchTemplateResponse
-
- All Implemented Interfaces:
java.lang.Iterable<MultiSearchTemplateResponse.Item>
,org.elasticsearch.common.io.stream.Streamable
,org.elasticsearch.common.io.stream.Writeable
,org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentObject
public class MultiSearchTemplateResponse extends org.elasticsearch.action.ActionResponse implements java.lang.Iterable<MultiSearchTemplateResponse.Item>, org.elasticsearch.common.xcontent.ToXContentObject
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MultiSearchTemplateResponse.Item
A search template response item, holding the actual search template response, or an error message if it failed.-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
-
-
Constructor Summary
Constructors Constructor Description MultiSearchTemplateResponse(MultiSearchTemplateResponse.Item[] items)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MultiSearchTemplateResponse
fromXContext(org.elasticsearch.common.xcontent.XContentParser parser)
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)
-
-
-
Constructor Detail
-
MultiSearchTemplateResponse
public MultiSearchTemplateResponse(MultiSearchTemplateResponse.Item[] items)
-
-
Method Detail
-
iterator
public java.util.Iterator<MultiSearchTemplateResponse.Item> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<MultiSearchTemplateResponse.Item>
-
getResponses
public MultiSearchTemplateResponse.Item[] getResponses()
The list of responses, the order is the same as the one provided in the request.
-
readFrom
public void readFrom(org.elasticsearch.common.io.stream.StreamInput in) throws java.io.IOException
- Specified by:
readFrom
in interfaceorg.elasticsearch.common.io.stream.Streamable
- Overrides:
readFrom
in classorg.elasticsearch.action.ActionResponse
- Throws:
java.io.IOException
-
writeTo
public void writeTo(org.elasticsearch.common.io.stream.StreamOutput out) throws java.io.IOException
- Specified by:
writeTo
in interfaceorg.elasticsearch.common.io.stream.Streamable
- Specified by:
writeTo
in interfaceorg.elasticsearch.common.io.stream.Writeable
- Overrides:
writeTo
in classorg.elasticsearch.action.ActionResponse
- Throws:
java.io.IOException
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException
- Specified by:
toXContent
in interfaceorg.elasticsearch.common.xcontent.ToXContent
- Throws:
java.io.IOException
-
fromXContext
public static MultiSearchTemplateResponse fromXContext(org.elasticsearch.common.xcontent.XContentParser parser)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-