update create indexes method
package org.opencb.cellbase.lib.impl;
import com.fasterxml.jackson.databind.ObjectMapper;
-import com.mongodb.MongoClient;
import com.mongodb.QueryBuilder;
import com.mongodb.client.MongoCursor;
-import com.mongodb.client.MongoDatabase;
import com.mongodb.client.model.*;
import org.bson.*;
import org.bson.conversions.Bson;
@@ -30,9 +28,7 @@ import org.opencb.commons.datastore.core.Query;
import org.opencb.commons.datastore.core.QueryOptions;
import org.opencb.commons.datastore.core.QueryResult;
import org.opencb.commons.datastore.mongodb.MongoDBCollection;
-import org.opencb.commons.datastore.mongodb.MongoDBConfiguration;
import org.opencb.commons.datastore.mongodb.MongoDataStore;
-import org.opencb.commons.datastore.mongodb.MongoDBIndexUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -72,8 +68,7 @@ public class MongoDBAdaptor {
public void createIndexes() {
InputStream resourceAsStream = getClass().getResourceAsStream("/cellbase-indexes.txt");
- MongoDBIndexUtils.createIndexes(mongoDataStore, mongoDataStore.getDb(),
- mongoDataStore.getMongoDBConfiguration(), resourceAsStream);
+ MongoDBIndexUtils.createIndexes(mongoDataStore, resourceAsStream);
}
private void initSpeciesAssembly(String species, String assembly) {
