if (databaseFile.exists()) {
if (getLogger().isDebugEnabled()) {
this.getLogger().debug("initialize(): Datafile exists");
}
mDatabase = new IndexedObjectDatabase(databaseFile.toString(), false);
mIndex = new BTreeIndex(indexFile.toString());
mDatabase.attachIndex(mIndex);
} else {
if (getLogger().isDebugEnabled()) {
this.getLogger().debug("initialize(): Datafile does not exist");
}
mDatabase = new IndexedObjectDatabase(databaseFile.toString(), false);
mIndex = new BTreeIndex(indexFile.toString(),
mOrder, new JispStringKey(), false);
mDatabase.attachIndex(mIndex);
}
} catch (KeyNotFound ignore) {
} catch (Exception e) {