use of com.google.gerrit.server.index.SingleVersionModule in project gerrit by GerritCodeReview.
the class ElasticIndexModule method configure.
@Override
protected void configure() {
install(new FactoryModuleBuilder().implement(AccountIndex.class, ElasticAccountIndex.class).build(AccountIndex.Factory.class));
install(new FactoryModuleBuilder().implement(ChangeIndex.class, ElasticChangeIndex.class).build(ChangeIndex.Factory.class));
install(new FactoryModuleBuilder().implement(GroupIndex.class, ElasticGroupIndex.class).build(GroupIndex.Factory.class));
install(new IndexModule(threads));
if (singleVersions == null) {
listener().to(ElasticVersionManager.class);
} else {
install(new SingleVersionModule(singleVersions));
}
}
use of com.google.gerrit.server.index.SingleVersionModule in project gerrit by GerritCodeReview.
the class LuceneIndexModule method configure.
@Override
protected void configure() {
install(new FactoryModuleBuilder().implement(AccountIndex.class, LuceneAccountIndex.class).build(AccountIndex.Factory.class));
install(new FactoryModuleBuilder().implement(ChangeIndex.class, LuceneChangeIndex.class).build(ChangeIndex.Factory.class));
install(new FactoryModuleBuilder().implement(GroupIndex.class, LuceneGroupIndex.class).build(GroupIndex.Factory.class));
install(new IndexModule(threads));
if (singleVersions == null) {
install(new MultiVersionModule());
} else {
install(new SingleVersionModule(singleVersions));
}
}
Aggregations