throw new RuntimeException("Key should exist but failed to jump to it's location");
if(!Arrays.equals(cursor.key(),key.getBytes()))
throw new TException("key mismatch "+key+" vs "+cursor.key2());
byte[] value = cursor.val();
//delete
if(!cursor.out())
throw new TException(bdb.errmsg());