Search in sources :

Example 1 with BTreeStore

use of org.exist.storage.index.BTreeStore in project exist by eXist-db.

the class NativeStructuralIndex method open.

@Override
public void open() throws DatabaseConfigurationException {
    final Path file = getDataDir().resolve(FILE_NAME);
    LOG.debug("Creating '{}'...", FileUtils.fileName(file));
    try {
        btree = new BTreeStore(pool, STRUCTURAL_INDEX_ID, FILE_FORMAT_VERSION_ID, false, file, pool.getCacheManager());
    } catch (final DBException e) {
        LOG.error("Failed to initialize structural index: {}", e.getMessage(), e);
        throw new DatabaseConfigurationException(e.getMessage(), e);
    }
}
Also used : Path(java.nio.file.Path) BTreeStore(org.exist.storage.index.BTreeStore) DBException(org.exist.storage.btree.DBException) DatabaseConfigurationException(org.exist.util.DatabaseConfigurationException)

Example 2 with BTreeStore

use of org.exist.storage.index.BTreeStore in project exist by eXist-db.

the class SortIndex method open.

@Override
public void open() throws DatabaseConfigurationException {
    final Path file = getDataDir().resolve(FILE_NAME);
    LOG.debug("Creating '{}'...", FileUtils.fileName(file));
    try {
        btree = new BTreeStore(pool, SORT_INDEX_ID, FILE_FORMAT_VERSION_ID, false, file, pool.getCacheManager());
    } catch (final DBException e) {
        LOG.error("Failed to initialize structural index: {}", e.getMessage(), e);
        throw new DatabaseConfigurationException(e.getMessage(), e);
    }
}
Also used : Path(java.nio.file.Path) BTreeStore(org.exist.storage.index.BTreeStore) DBException(org.exist.storage.btree.DBException) DatabaseConfigurationException(org.exist.util.DatabaseConfigurationException)

Aggregations

Path (java.nio.file.Path)2 DBException (org.exist.storage.btree.DBException)2 BTreeStore (org.exist.storage.index.BTreeStore)2 DatabaseConfigurationException (org.exist.util.DatabaseConfigurationException)2