public DBIterator iterator(ReadOptions options) { if( db==null ) { throw new DBException("Closed"); } return new JniDBIterator(db.iterator(convert(options))); }
public DBIterator iterator(ReadOptions options) { if( db==null ) { throw new DBException("Closed"); } return new JniDBIterator(db.iterator(convert(options))); }
public DBIterator iterator(ReadOptions options) { if( db==null ) { throw new DBException("Closed"); } return new JniDBIterator(db.iterator(convert(options))); }
public Snapshot put(byte[] key, byte[] value, WriteOptions options) throws DBException { if( db==null ) { throw new DBException("Closed"); } try { db.put(convert(options), key, value); return null; } catch (NativeDB.DBException e) { throw new DBException(e.getMessage(), e); } }
public Snapshot delete(byte[] key, WriteOptions options) throws DBException { if( db==null ) { throw new DBException("Closed"); } try { db.delete(convert(options), key); return null; } catch (NativeDB.DBException e) { throw new DBException(e.getMessage(), e); } }
public Snapshot put(byte[] key, byte[] value, WriteOptions options) throws DBException { if( db==null ) { throw new DBException("Closed"); } try { db.put(convert(options), key, value); return null; } catch (NativeDB.DBException e) { throw new DBException(e.getMessage(), e); } }
public Snapshot delete(byte[] key, WriteOptions options) throws DBException { if( db==null ) { throw new DBException("Closed"); } try { db.delete(convert(options), key); return null; } catch (NativeDB.DBException e) { throw new DBException(e.getMessage(), e); } }
public Snapshot delete(byte[] key, WriteOptions options) throws DBException { if( db==null ) { throw new DBException("Closed"); } try { db.delete(convert(options), key); return null; } catch (NativeDB.DBException e) { throw new DBException(e.getMessage(), e); } }
public Snapshot put(byte[] key, byte[] value, WriteOptions options) throws DBException { if( db==null ) { throw new DBException("Closed"); } try { db.put(convert(options), key, value); return null; } catch (NativeDB.DBException e) { throw new DBException(e.getMessage(), e); } }
public byte[] get(byte[] key, ReadOptions options) throws DBException { if( db==null ) { throw new DBException("Closed"); } try { return db.get(convert(options), key); } catch (NativeDB.DBException e) { if(e.isNotFound()) { return null; } throw new DBException(e.getMessage(), e); } }
public Snapshot write(WriteBatch updates, WriteOptions options) throws DBException { if( db==null ) { throw new DBException("Closed"); } try { db.write(convert(options), ((JniWriteBatch) updates).writeBatch()); return null; } catch (NativeDB.DBException e) { throw new DBException(e.getMessage(), e); } }
public Snapshot write(WriteBatch updates, WriteOptions options) throws DBException { if( db==null ) { throw new DBException("Closed"); } try { db.write(convert(options), ((JniWriteBatch) updates).writeBatch()); return null; } catch (NativeDB.DBException e) { throw new DBException(e.getMessage(), e); } }
public byte[] get(byte[] key, ReadOptions options) throws DBException { if( db==null ) { throw new DBException("Closed"); } try { return db.get(convert(options), key); } catch (NativeDB.DBException e) { if(e.isNotFound()) { return null; } throw new DBException(e.getMessage(), e); } }
public Snapshot write(WriteBatch updates, WriteOptions options) throws DBException { if( db==null ) { throw new DBException("Closed"); } try { db.write(convert(options), ((JniWriteBatch) updates).writeBatch()); return null; } catch (NativeDB.DBException e) { throw new DBException(e.getMessage(), e); } }
public byte[] get(byte[] key, ReadOptions options) throws DBException { if( db==null ) { throw new DBException("Closed"); } try { return db.get(convert(options), key); } catch (NativeDB.DBException e) { if(e.isNotFound()) { return null; } throw new DBException(e.getMessage(), e); } }