Package org.elasticsearch.action.get
Class MultiGetRequest.Item
java.lang.Object
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 Object
implements Writeable, IndicesRequest, org.elasticsearch.common.xcontent.ToXContentObject
A single get item.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.elasticsearch.action.IndicesRequestIndicesRequest.ReplaceableNested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContentorg.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.WriteableWriteable.Reader<V>, Writeable.Writer<V>
- 
Field SummaryFields inherited from interface org.elasticsearch.common.xcontent.ToXContentEMPTY_PARAMS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanfetchSourceContext(FetchSourceContext fetchSourceContext)Allows setting theFetchSourceContextfor this request, controlling if and how _source should be returned.inthashCode()id()index()String[]indices()Returns the array of indices that the action relates toReturns the indices options used to resolve indices.routing()The routing associated with this document.String[]storedFields(String... fields)toString()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)type()longversion()version(long version)versionType(VersionType versionType)voidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.action.IndicesRequestallowsRemoteIndices, includeDataStreamsMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentObjectisFragment
- 
Constructor Details- 
Itempublic Item()
- 
Item- Throws:
- IOException
 
- 
ItemDeprecated.Types are in the process of being removed, useinstead.Constructs a single get item.- Parameters:
- index- The index name
- type- The type (can be null)
- id- The id
 
- 
Item
 
- 
- 
Method Details- 
index
- 
indicesDescription copied from interface:IndicesRequestReturns the array of indices that the action relates to- Specified by:
- indicesin interface- IndicesRequest
 
- 
indicesOptionsDescription copied from interface:IndicesRequestReturns 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:
- indicesOptionsin interface- IndicesRequest
 
- 
index
- 
type
- 
id
- 
routingThe routing associated with this document.
- 
routing
- 
storedFields
- 
storedFields
- 
versionpublic long version()
- 
version
- 
versionType
- 
versionType
- 
fetchSourceContext
- 
fetchSourceContextAllows setting theFetchSourceContextfor this request, controlling if and how _source should be returned.
- 
writeToDescription copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
- writeToin interface- Writeable
- Throws:
- IOException
 
- 
toXContentpublic org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
- toXContentin interface- org.elasticsearch.common.xcontent.ToXContent
- Throws:
- IOException
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
- 
instead.