public List<byte[]> range(String key, int start, int end){
if(start > end || end < 0 || start < 0)
throw new RuntimeException("Invalid start and/or end context");
BDBCUR cursor = this.goto_position(key, start);
if(cursor == null)
return null;
int currentPos = 0;
int distance = end - start;
List<byte[]> response = new ArrayList<byte[]>();
while(currentPos <= distance){
response.add(cursor.val());
if(!cursor.next())
break;
currentPos++;
}