Package org.opensearch.script.mustache
Class MultiSearchTemplateResponse
java.lang.Object
org.opensearch.transport.TransportMessage
org.opensearch.transport.TransportResponse
org.opensearch.action.ActionResponse
org.opensearch.script.mustache.MultiSearchTemplateResponse
- All Implemented Interfaces:
java.lang.Iterable<MultiSearchTemplateResponse.Item>,Writeable,ToXContent,ToXContentObject
public class MultiSearchTemplateResponse extends ActionResponse implements java.lang.Iterable<MultiSearchTemplateResponse.Item>, 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 class org.opensearch.transport.TransportResponse
TransportResponse.EmptyNested classes/interfaces inherited from interface org.opensearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.opensearch.common.io.stream.Writeable
Writeable.Reader<V extends java.lang.Object>, Writeable.Writer<V extends java.lang.Object> -
Field Summary
-
Method Summary
Modifier and Type Method Description static MultiSearchTemplateResponsefromXContext(XContentParser parser)MultiSearchTemplateResponse.Item[]getResponses()The list of responses, the order is the same as the one provided in the request.TimeValuegetTook()How long the msearch_template took.java.util.Iterator<MultiSearchTemplateResponse.Item>iterator()java.lang.StringtoString()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)voidwriteTo(StreamOutput out)
-
Method Details
-
iterator
- Specified by:
iteratorin interfacejava.lang.Iterable<MultiSearchTemplateResponse.Item>
-
getResponses
The list of responses, the order is the same as the one provided in the request. -
getTook
How long the msearch_template took. -
writeTo
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceToXContent- Throws:
java.io.IOException
-
fromXContext
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-