fix none bloom cache to proper name
This commit is contained in:
parent
5ab0ec4911
commit
9927fd4cdd
|
@ -32,7 +32,7 @@ import org.elasticsearch.common.settings.Settings;
|
|||
import org.elasticsearch.common.unit.TimeValue;
|
||||
import org.elasticsearch.index.Index;
|
||||
import org.elasticsearch.index.analysis.AnalysisService;
|
||||
import org.elasticsearch.index.cache.bloom.none.NonBloomCache;
|
||||
import org.elasticsearch.index.cache.bloom.none.NoneBloomCache;
|
||||
import org.elasticsearch.index.deletionpolicy.KeepOnlyLastDeletionPolicy;
|
||||
import org.elasticsearch.index.deletionpolicy.SnapshotDeletionPolicy;
|
||||
import org.elasticsearch.index.engine.Engine;
|
||||
|
@ -308,7 +308,7 @@ public class SimpleEngineBenchmark {
|
|||
ThreadPool threadPool = new ThreadPool();
|
||||
SnapshotDeletionPolicy deletionPolicy = new SnapshotDeletionPolicy(new KeepOnlyLastDeletionPolicy(shardId, settings));
|
||||
Engine engine = new RobinEngine(shardId, settings, new IndexSettingsService(shardId.index(), settings), store, deletionPolicy, new FsTranslog(shardId, EMPTY_SETTINGS, new File("work/fs-translog"), false), new LogByteSizeMergePolicyProvider(store, new IndexSettingsService(shardId.index(), EMPTY_SETTINGS)),
|
||||
new ConcurrentMergeSchedulerProvider(shardId, settings), new AnalysisService(shardId.index()), new SimilarityService(shardId.index()), new NonBloomCache(shardId.index()));
|
||||
new ConcurrentMergeSchedulerProvider(shardId, settings), new AnalysisService(shardId.index()), new SimilarityService(shardId.index()), new NoneBloomCache(shardId.index()));
|
||||
engine.start();
|
||||
|
||||
SimpleEngineBenchmark benchmark = new SimpleEngineBenchmark(store, engine)
|
||||
|
|
|
@ -33,13 +33,13 @@ import org.elasticsearch.index.settings.IndexSettings;
|
|||
/**
|
||||
* @author kimchy (shay.banon)
|
||||
*/
|
||||
public class NonBloomCache extends AbstractIndexComponent implements BloomCache {
|
||||
public class NoneBloomCache extends AbstractIndexComponent implements BloomCache {
|
||||
|
||||
public NonBloomCache(Index index) {
|
||||
public NoneBloomCache(Index index) {
|
||||
super(index, ImmutableSettings.Builder.EMPTY_SETTINGS);
|
||||
}
|
||||
|
||||
@Inject public NonBloomCache(Index index, @IndexSettings Settings indexSettings) {
|
||||
@Inject public NoneBloomCache(Index index, @IndexSettings Settings indexSettings) {
|
||||
super(index, indexSettings);
|
||||
}
|
||||
|
|
@ -20,7 +20,7 @@
|
|||
package org.elasticsearch.index.engine.robin;
|
||||
|
||||
import org.elasticsearch.index.analysis.AnalysisService;
|
||||
import org.elasticsearch.index.cache.bloom.none.NonBloomCache;
|
||||
import org.elasticsearch.index.cache.bloom.none.NoneBloomCache;
|
||||
import org.elasticsearch.index.engine.AbstractSimpleEngineTests;
|
||||
import org.elasticsearch.index.engine.Engine;
|
||||
import org.elasticsearch.index.settings.IndexSettingsService;
|
||||
|
@ -37,6 +37,6 @@ public class SimpleRobinEngineTests extends AbstractSimpleEngineTests {
|
|||
|
||||
protected Engine createEngine(Store store, Translog translog) {
|
||||
return new RobinEngine(shardId, EMPTY_SETTINGS, new IndexSettingsService(shardId.index(), EMPTY_SETTINGS), store, createSnapshotDeletionPolicy(), translog, createMergePolicy(), createMergeScheduler(),
|
||||
new AnalysisService(shardId.index()), new SimilarityService(shardId.index()), new NonBloomCache(shardId.index()));
|
||||
new AnalysisService(shardId.index()), new SimilarityService(shardId.index()), new NoneBloomCache(shardId.index()));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue