Package org.elasticsearch.index.get
Class ShardGetService
- java.lang.Object
-
- org.elasticsearch.index.shard.AbstractIndexShardComponent
-
- org.elasticsearch.index.get.ShardGetService
-
- All Implemented Interfaces:
IndexShardComponent
public final class ShardGetService extends AbstractIndexShardComponent
-
-
Field Summary
-
Fields inherited from class org.elasticsearch.index.shard.AbstractIndexShardComponent
deprecationLogger, indexSettings, logger, shardId
-
-
Constructor Summary
Constructors Constructor Description ShardGetService(IndexSettings indexSettings, IndexShard indexShard, MapperService mapperService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetResult
get(java.lang.String type, java.lang.String id, java.lang.String[] gFields, boolean realtime, long version, VersionType versionType, FetchSourceContext fetchSourceContext)
GetResult
get(Engine.GetResult engineGetResult, java.lang.String id, java.lang.String type, java.lang.String[] fields, FetchSourceContext fetchSourceContext)
ReturnsGetResult
based on the specifiedEngine.GetResult
argument.GetResult
getForUpdate(java.lang.String type, java.lang.String id, long version, VersionType versionType)
GetStats
stats()
-
Methods inherited from class org.elasticsearch.index.shard.AbstractIndexShardComponent
indexSettings, nodeName, shardId
-
-
-
-
Constructor Detail
-
ShardGetService
public ShardGetService(IndexSettings indexSettings, IndexShard indexShard, MapperService mapperService)
-
-
Method Detail
-
stats
public GetStats stats()
-
get
public GetResult get(java.lang.String type, java.lang.String id, java.lang.String[] gFields, boolean realtime, long version, VersionType versionType, FetchSourceContext fetchSourceContext)
-
getForUpdate
public GetResult getForUpdate(java.lang.String type, java.lang.String id, long version, VersionType versionType)
-
get
public GetResult get(Engine.GetResult engineGetResult, java.lang.String id, java.lang.String type, java.lang.String[] fields, FetchSourceContext fetchSourceContext)
ReturnsGetResult
based on the specifiedEngine.GetResult
argument. This method basically loads specified fields for the associated document in the engineGetResult. This method load the fields from the Lucene index and not from transaction log and therefore isn't realtime.Note: Call must release engine searcher associated with engineGetResult!
-
-