if (openedBTree.containsKey(filename)) {
return (BTree)openedBTree.get(filename);
}
String path = DbEnvironment.getDataHome().concat(filename);
IDBIndex index = BTreeFactory.createBTree(btreeType.typeId);
index.open(path, kc);
BTree bTree = new BTree(this, index, btreeType, kc);
openedBTree.put(filename, bTree);
btree2Path.put(bTree, filename);
return bTree;
}