public Map.Entry<byte[], byte[]> next() { Map.Entry<byte[], byte[]> rc = peekNext(); try { iterator.next(); } catch (NativeDB.DBException e) { throw new RuntimeException(e); } return rc; }
public Map.Entry<byte[], byte[]> prev() { Map.Entry<byte[], byte[]> rc = peekPrev(); try { iterator.prev(); } catch (NativeDB.DBException e) { throw new RuntimeException(e); } return rc; }
public DBIterator iterator(ReadOptions options) { if( db==null ) { throw new DBException("Closed"); } return new JniDBIterator(db.iterator(convert(options))); }
public Map.Entry<byte[], byte[]> peekPrev() { try { iterator.prev(); try { return peekNext(); } finally { if (iterator.isValid()) { iterator.next(); } else { iterator.seekToFirst(); } } } catch (NativeDB.DBException e) { throw new RuntimeException(e); } }
public DBIterator iterator(ReadOptions options) { if( db==null ) { throw new DBException("Closed"); } return new JniDBIterator(db.iterator(convert(options))); }
public Map.Entry<byte[], byte[]> next() { Map.Entry<byte[], byte[]> rc = peekNext(); try { iterator.next(); } catch (NativeDB.DBException e) { throw new RuntimeException(e); } return rc; }
public DBIterator iterator(ReadOptions options) { if( db==null ) { throw new DBException("Closed"); } return new JniDBIterator(db.iterator(convert(options))); }
public Map.Entry<byte[], byte[]> prev() { Map.Entry<byte[], byte[]> rc = peekPrev(); try { iterator.prev(); } catch (NativeDB.DBException e) { throw new RuntimeException(e); } return rc; }
public Map.Entry<byte[], byte[]> next() { Map.Entry<byte[], byte[]> rc = peekNext(); try { iterator.next(); } catch (NativeDB.DBException e) { throw new RuntimeException(e); } return rc; }
public Map.Entry<byte[], byte[]> peekPrev() { try { iterator.prev(); try { return peekNext(); } finally { if (iterator.isValid()) { iterator.next(); } else { iterator.seekToFirst(); } } } catch (NativeDB.DBException e) { throw new RuntimeException(e); } }
public Map.Entry<byte[], byte[]> peekPrev() { try { iterator.prev(); try { return peekNext(); } finally { if (iterator.isValid()) { iterator.next(); } else { iterator.seekToFirst(); } } } catch (NativeDB.DBException e) { throw new RuntimeException(e); } }