} else if ("dom".equals(id)) {
btree = ((NativeBroker)broker).getStorage(NativeBroker.DOM_DBX_ID);
} else if ("range".equals(id)) {
btree = ((NativeBroker)broker).getStorage(NativeBroker.VALUES_DBX_ID);
} else if ("structure".equals(id)) {
NativeStructuralIndexWorker index = (NativeStructuralIndexWorker)
broker.getIndexController().getWorkerByIndexName(StructuralIndex.STRUCTURAL_INDEX_ID);
btree = index.getStorage();
} else {
// use index id defined in conf.xml
Index index = pool.getIndexManager().getIndexByName(id);
if (index != null) {
btree = index.getStorage();
}
}
if (btree == null) {
System.console().printf("Unkown index: %s\n", id);
return;