IndexShardComponent
public final class ShardGetService extends AbstractIndexShardComponent
deprecationLogger, indexSettings, logger, shardId
Constructor | Description |
---|---|
ShardGetService(IndexSettings indexSettings,
IndexShard indexShard,
MapperService mapperService) |
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) |
Returns
GetResult based on the specified Engine.GetResult argument. |
GetResult |
getForUpdate(java.lang.String type,
java.lang.String id,
long version,
VersionType versionType) |
|
GetStats |
stats() |
indexSettings, nodeName, shardId
public ShardGetService(IndexSettings indexSettings, IndexShard indexShard, MapperService mapperService)
public GetStats stats()
public GetResult get(java.lang.String type, java.lang.String id, java.lang.String[] gFields, boolean realtime, long version, VersionType versionType, FetchSourceContext fetchSourceContext)
public GetResult getForUpdate(java.lang.String type, java.lang.String id, long version, VersionType versionType)
public GetResult get(Engine.GetResult engineGetResult, java.lang.String id, java.lang.String type, java.lang.String[] fields, FetchSourceContext fetchSourceContext)
GetResult
based on the specified Engine.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!