Class MultiSearchResponse.Item

All Implemented Interfaces:
Enclosing class:

public static class MultiSearchResponse.Item
extends java.lang.Object
implements Writeable
A search response item, holding the actual search response, or an error message if it failed.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface

    Writeable.Reader<V>, Writeable.Writer<V>
  • Constructor Summary

    Constructor Description
    Item​(SearchResponse response, java.lang.Exception exception)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.Exception getFailure()  
    java.lang.String getFailureMessage()
    The actual failure message, null if its not a failure.
    SearchResponse getResponse()
    The actual search response, null if its a failure.
    boolean isFailure()
    Is it a failed search?
    void writeTo​(StreamOutput out)
    Write this into the StreamOutput.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait