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);
}
}
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);
}
}
Aggregations