java.lang.Object
org.elasticsearch.index.shard.AbstractIndexShardComponent
org.elasticsearch.index.get.ShardGetService
- All Implemented Interfaces:
- IndexShardComponent
- 
Field SummaryFields inherited from class org.elasticsearch.index.shard.AbstractIndexShardComponentindexSettings, logger, shardId
- 
Constructor SummaryConstructorsConstructorDescriptionShardGetService(IndexSettings indexSettings, IndexShard indexShard, MapperService mapperService) 
- 
Method SummaryModifier 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) ReturnsGetResultbased on the specifiedEngine.GetResultargument.getForUpdate(String id, long ifSeqNo, long ifPrimaryTerm) stats()Methods inherited from class org.elasticsearch.index.shard.AbstractIndexShardComponentindexSettings, shardId
- 
Constructor Details- 
ShardGetServicepublic ShardGetService(IndexSettings indexSettings, IndexShard indexShard, MapperService mapperService) 
 
- 
- 
Method Details- 
stats
- 
getpublic GetResult get(String id, String[] gFields, boolean realtime, long version, VersionType versionType, FetchSourceContext fetchSourceContext, boolean forceSyntheticSource) throws IOException - Throws:
- IOException
 
- 
getForUpdate- Throws:
- IOException
 
- 
getpublic GetResult get(Engine.GetResult engineGetResult, String id, String[] fields, FetchSourceContext fetchSourceContext) throws IOException ReturnsGetResultbased on the specifiedEngine.GetResultargument. 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
 
 
-