public class IndexManager extends Object
Constructor and Description |
---|
IndexManager(CellBaseConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
void |
createMongoDBIndexes(String collectionName,
String databaseName,
boolean dropIndexesFirst)
Create indexes for specified collection.
|
void |
createMongoDBIndexes(String data,
String speciesName,
String assemblyName,
boolean dropIndexesFirst)
Create indexes.
|
public IndexManager(CellBaseConfiguration configuration)
public void createMongoDBIndexes(String data, String speciesName, String assemblyName, boolean dropIndexesFirst) throws CellbaseException, IOException
data
- list of collections to indexspeciesName
- name of speciesassemblyName
- name of assemblydropIndexesFirst
- if TRUE, deletes the index before creating a new one. FALSE, no index is created if it
already exists.IOException
- if configuration file can't be readCellbaseException
- if indexes file isn't found, or invalid inputpublic void createMongoDBIndexes(String collectionName, String databaseName, boolean dropIndexesFirst) throws IOException, CellbaseException
collectionName
- create indexes for this collectiondatabaseName
- name of databasedropIndexesFirst
- if TRUE, deletes the index before creating a new one. FALSE, no index is created if it
already exists.IOException
- if configuration file can't be readCellbaseException
- if indexes file isn't foundCopyright © 2019. All rights reserved.