java.lang.Object
org.elasticsearch.index.shard.AbstractIndexShardComponent
org.elasticsearch.index.get.ShardGetService
- All Implemented Interfaces:
IndexShardComponent
-
Field Summary
Fields inherited from class org.elasticsearch.index.shard.AbstractIndexShardComponent
indexSettings, logger, shardId
-
Constructor Summary
ConstructorsConstructorDescriptionShardGetService
(IndexSettings indexSettings, IndexShard indexShard, MapperService mapperService) -
Method Summary
Modifier and TypeMethodDescriptionget
(String id, String[] gFields, boolean realtime, long version, VersionType versionType, FetchSourceContext fetchSourceContext, boolean forceSyntheticSource) get
(Engine.GetResult engineGetResult, String id, String[] fields, FetchSourceContext fetchSourceContext) ReturnsGetResult
based on the specifiedEngine.GetResult
argument.getForUpdate
(String id, long ifSeqNo, long ifPrimaryTerm) stats()
Methods inherited from class org.elasticsearch.index.shard.AbstractIndexShardComponent
indexSettings, shardId
-
Constructor Details
-
ShardGetService
public ShardGetService(IndexSettings indexSettings, IndexShard indexShard, MapperService mapperService)
-
-
Method Details
-
stats
-
get
public GetResult get(String id, String[] gFields, boolean realtime, long version, VersionType versionType, FetchSourceContext fetchSourceContext, boolean forceSyntheticSource) throws IOException - Throws:
IOException
-
getForUpdate
- Throws:
IOException
-
get
public GetResult get(Engine.GetResult engineGetResult, String id, String[] fields, FetchSourceContext fetchSourceContext) throws IOException 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!
- Throws:
IOException
-