public final class ShardGetService extends AbstractIndexShardComponent
deprecationLogger, indexSettings, logger, shardId| コンストラクタと説明 |
|---|
ShardGetService(IndexShard indexShard,
MapperService mapperService) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
GetResult |
get(Engine.GetResult engineGetResult,
String id,
String type,
String[] fields,
FetchSourceContext fetchSourceContext,
boolean ignoreErrorsOnGeneratedFields)
Returns
GetResult based on the specified Engine.GetResult argument. |
GetResult |
get(String type,
String id,
String[] gFields,
boolean realtime,
long version,
VersionType versionType,
FetchSourceContext fetchSourceContext,
boolean ignoreErrorsOnGeneratedFields) |
protected boolean |
shouldGetFromSource(boolean ignoreErrorsOnGeneratedFields,
DocumentMapper docMapper,
FieldMapper fieldMapper) |
GetStats |
stats() |
indexSettings, nodeName, shardIdpublic ShardGetService(IndexShard indexShard, MapperService mapperService)
public GetStats stats()
public GetResult get(String type, String id, String[] gFields, boolean realtime, long version, VersionType versionType, FetchSourceContext fetchSourceContext, boolean ignoreErrorsOnGeneratedFields)
public GetResult get(Engine.GetResult engineGetResult, String id, String type, String[] fields, FetchSourceContext fetchSourceContext, boolean ignoreErrorsOnGeneratedFields)
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!
protected boolean shouldGetFromSource(boolean ignoreErrorsOnGeneratedFields,
DocumentMapper docMapper,
FieldMapper fieldMapper)
Copyright © 2009–2016. All rights reserved.