Class MultiGetItemResponse

java.lang.Object
org.elasticsearch.action.get.MultiGetItemResponse
All Implemented Interfaces:
Writeable

public class MultiGetItemResponse
extends java.lang.Object
implements Writeable
A single multi get response.
  • Constructor Details

  • Method Details

    • getIndex

      public java.lang.String getIndex()
      The index name of the document.
    • getType

      public java.lang.String getType()
      The type of the document.
    • getId

      public java.lang.String getId()
      The id of the document.
    • isFailed

      public boolean isFailed()
      Is this a failed execution?
    • getResponse

      public GetResponse getResponse()
      The actual get response, null if its a failure.
    • getFailure

      public MultiGetResponse.Failure getFailure()
      The failure if relevant.
    • writeTo

      public void writeTo​(StreamOutput out) throws java.io.IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
      java.io.IOException