public ResultSet<byte[], byte[]> directRangeLookup(final int indexId, final byte[] from,
final byte[] to, final boolean ascending) throws BabuDBException {
final Integer snapId = snapIDMap.get(indexId);
if (snapId == null)
throw new BabuDBException(ErrorCode.NO_SUCH_INDEX, "index " + indexId + " does not exist");
return new ResultSet<byte[], byte[]>() {
private ResultSet<byte[], byte[]> it;