public Iterator<Entry<byte[],byte[]>> prefixLookup(int indexId, byte[] startKey) throws BabuDBException {
LSMTree tree = database.getIndex(indexId);
if (tree == null)
throw new BabuDBException(BabuDBException.ErrorCode.NO_SUCH_INDEX, "index does not exist");
return tree.prefixLookup(startKey);
}
public Iterator<Entry<byte[],byte[]>> prefixLookup(int indexId, byte[] startKey, int snapId) throws BabuDBException {
LSMTree tree = database.getIndex(indexId);
if (tree == null)