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 classMultiSearchTemplateResponse.ItemA 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 MultiSearchTemplateResponsefromXContext(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()voidreadFrom(org.elasticsearch.common.io.stream.StreamInput in)java.lang.StringtoString()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)voidwriteTo(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:
iteratorin 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:
readFromin interfaceorg.elasticsearch.common.io.stream.Streamable- Overrides:
readFromin 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:
writeToin interfaceorg.elasticsearch.common.io.stream.Streamable- Specified by:
writeToin interfaceorg.elasticsearch.common.io.stream.Writeable- Overrides:
writeToin 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:
toXContentin 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:
toStringin classjava.lang.Object
-
-