Class MultiSearchResponse.Item

  • All Implemented Interfaces:
    Writeable
    Enclosing class:
    MultiSearchResponse

    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.
    • Constructor Summary

      Constructors 
      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
    • Constructor Detail

      • Item

        public Item​(SearchResponse response,
                    java.lang.Exception exception)
    • Method Detail

      • isFailure

        public boolean isFailure()
        Is it a failed search?
      • getFailureMessage

        @Nullable
        public java.lang.String getFailureMessage()
        The actual failure message, null if its not a failure.
      • getFailure

        public java.lang.Exception getFailure()