Package org.opensearch.script.mustache
Class MultiSearchTemplateResponse.Item
java.lang.Object
org.opensearch.script.mustache.MultiSearchTemplateResponse.Item
- All Implemented Interfaces:
Writeable
- Enclosing class:
- MultiSearchTemplateResponse
A search template response item, holding the actual search template response, or an error message if it failed.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.common.io.stream.Writeable
Writeable.Reader<V extends Object>, Writeable.Writer<V extends Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe actual failure message, null if its not a failure.The actual search response, null if its a failure.booleanIs it a failed search?toString()voidwriteTo(StreamOutput out)
-
Constructor Details
-
Item
-
-
Method Details
-
isFailure
public boolean isFailure()Is it a failed search? -
getFailureMessage
The actual failure message, null if its not a failure. -
getResponse
The actual search response, null if its a failure. -
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getFailure
-
toString
-