Class MultiGetRequest.Item

org.elasticsearch.action.get.MultiGetRequest.Item
All Implemented Interfaces:
IndicesRequest, Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentObject
Enclosing class:
MultiGetRequest

public static class MultiGetRequest.Item extends implements Writeable, IndicesRequest, org.elasticsearch.common.xcontent.ToXContentObject
A single get item.
  • Constructor Details

    • Item

      public Item()
    • Item

      public Item(StreamInput in) throws
      Throws:
    • Item

      public Item( index, @Nullable  type,  id)
      Deprecated.
      Types are in the process of being removed, use instead.
      Constructs a single get item.
      Parameters:
      index - The index name
      type - The type (can be null)
      id - The id
    • Item

      public Item( index,  id)
  • Method Details

    • index

      public  index()
    • indices

      public [] indices()
      Description copied from interface: IndicesRequest
      Returns the array of indices that the action relates to
      Specified by:
      indices in interface IndicesRequest
    • indicesOptions

      public IndicesOptions indicesOptions()
      Description copied from interface: IndicesRequest
      Returns the indices options used to resolve indices. They tell for instance whether a single index is accepted, whether an empty array will be converted to _all, and how wildcards will be expanded if needed.
      Specified by:
      indicesOptions in interface IndicesRequest
    • index

      public  index)
    • type

      public  type()
    • id

      public  id()
    • routing

      public  routing)
      The routing associated with this document.
    • routing

      public  routing()
    • storedFields

      public ... fields)
    • storedFields

      public [] storedFields()
    • version

      public long version()
    • version

      public MultiGetRequest.Item version(long version)
    • versionType

      public VersionType versionType()
    • versionType

      public MultiGetRequest.Item versionType(VersionType versionType)
    • fetchSourceContext

      public FetchSourceContext fetchSourceContext()
    • fetchSourceContext

      public MultiGetRequest.Item fetchSourceContext(FetchSourceContext fetchSourceContext)
      Allows setting the FetchSourceContext for this request, controlling if and how _source should be returned.
    • writeTo

      public void writeTo(StreamOutput out) throws
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
    • toXContent

      public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws
      Specified by:
      toXContent in interface org.elasticsearch.common.xcontent.ToXContent
      Throws:
    • equals

      public boolean equals( o)
      Overrides:
       in class 
    • hashCode

      public int hashCode()
      Overrides:
       in class 
    • toString

      public  toString()
      Overrides:
       in class