本文整理汇总了Java中org.apache.lucene.search.ReferenceManager.RefreshListener方法的典型用法代码示例。如果您正苦于以下问题:Java ReferenceManager.RefreshListener方法的具体用法?Java ReferenceManager.RefreshListener怎么用?Java ReferenceManager.RefreshListener使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.apache.lucene.search.ReferenceManager
的用法示例。
在下文中一共展示了ReferenceManager.RefreshListener方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: EngineConfig
import org.apache.lucene.search.ReferenceManager; //导入方法依赖的package包/类
/**
* Creates a new {@link org.elasticsearch.index.engine.EngineConfig}
*/
public EngineConfig(OpenMode openMode, ShardId shardId, ThreadPool threadPool,
IndexSettings indexSettings, Engine.Warmer warmer, Store store, SnapshotDeletionPolicy deletionPolicy,
MergePolicy mergePolicy, Analyzer analyzer,
Similarity similarity, CodecService codecService, Engine.EventListener eventListener,
TranslogRecoveryPerformer translogRecoveryPerformer, QueryCache queryCache, QueryCachingPolicy queryCachingPolicy,
TranslogConfig translogConfig, TimeValue flushMergesAfter, ReferenceManager.RefreshListener refreshListeners,
long maxUnsafeAutoIdTimestamp) {
if (openMode == null) {
throw new IllegalArgumentException("openMode must not be null");
}
this.shardId = shardId;
this.indexSettings = indexSettings;
this.threadPool = threadPool;
this.warmer = warmer == null ? (a) -> {} : warmer;
this.store = store;
this.deletionPolicy = deletionPolicy;
this.mergePolicy = mergePolicy;
this.analyzer = analyzer;
this.similarity = similarity;
this.codecService = codecService;
this.eventListener = eventListener;
codecName = indexSettings.getValue(INDEX_CODEC_SETTING);
// We give IndexWriter a "huge" (256 MB) buffer, so it won't flush on its own unless the ES indexing buffer is also huge and/or
// there are not too many shards allocated to this node. Instead, IndexingMemoryController periodically checks
// and refreshes the most heap-consuming shards when total indexing heap usage across all shards is too high:
indexingBufferSize = new ByteSizeValue(256, ByteSizeUnit.MB);
this.translogRecoveryPerformer = translogRecoveryPerformer;
this.queryCache = queryCache;
this.queryCachingPolicy = queryCachingPolicy;
this.translogConfig = translogConfig;
this.flushMergesAfter = flushMergesAfter;
this.openMode = openMode;
this.refreshListeners = refreshListeners;
assert maxUnsafeAutoIdTimestamp >= IndexRequest.UNSET_AUTO_GENERATED_TIMESTAMP :
"maxUnsafeAutoIdTimestamp must be >= -1 but was " + maxUnsafeAutoIdTimestamp;
this.maxUnsafeAutoIdTimestamp = maxUnsafeAutoIdTimestamp;
}
开发者ID:justor,项目名称:elasticsearch_my,代码行数:41,代码来源:EngineConfig.java示例2: getRefreshListeners
import org.apache.lucene.search.ReferenceManager; //导入方法依赖的package包/类
/**
* {@linkplain ReferenceManager.RefreshListener} instance to configure.
*/
public ReferenceManager.RefreshListener getRefreshListeners() {
return refreshListeners;
}
开发者ID:justor,项目名称:elasticsearch_my,代码行数:7,代码来源:EngineConfig.java示例3: config
import org.apache.lucene.search.ReferenceManager; //导入方法依赖的package包/类
public EngineConfig config(IndexSettings indexSettings, Store store, Path translogPath, MergePolicy mergePolicy,
long maxUnsafeAutoIdTimestamp, ReferenceManager.RefreshListener refreshListener) {
return config(indexSettings, store, translogPath, mergePolicy, createSnapshotDeletionPolicy(),
maxUnsafeAutoIdTimestamp, refreshListener);
}
开发者ID:justor,项目名称:elasticsearch_my,代码行数:6,代码来源:InternalEngineTests.java本文标签属性:
示例:示例是什么意思
代码:代码零九
java:java自行车
ReferenceManager:ReferenceManager
RefreshListener:RefreshListener