}
}
}
public void read(int count) throws DBException, IOException, TerminatedException {
BTree btree = null;
try {
System.out.println("Loading btree ...");
btree = new BTree(pool, (byte) 0, false, pool.getCacheManager(), file, 0.1);
btree.open((short)-1);
String prefixStr = "KEY";
for (int i = 1; i <= count; i++) {
Value value = new Value(prefixStr + Integer.toString(i));
long r = btree.findValue(value);
if (r == -1) {
System.out.println("Key not found: " + i);
}
}
} finally {
if (btree != null) {
btree.close();
}
}
}