public WriteBatch createWriteBatch() { return new JniWriteBatch(new NativeWriteBatch()); }
public void close() { writeBatch.delete(); }
public WriteBatch put(byte[] key, byte[] value) { writeBatch.put(key, value); return this; }
public void delete() { assertAllocated(); WriteBatchJNI.delete(self); self = 0; }
public void write(NativeWriteOptions options, NativeWriteBatch updates) throws DBException { checkArgNotNull(options, "options"); checkArgNotNull(updates, "updates"); checkStatus(DBJNI.Write(self, options, updates.pointer())); }
public void clear() { assertAllocated(); WriteBatchJNI.Clear(self); }
public void write(NativeWriteOptions options, NativeWriteBatch updates) throws DBException { checkArgNotNull(options, "options"); checkArgNotNull(updates, "updates"); checkStatus(DBJNI.Write(self, options, updates.pointer())); }
public void close() { writeBatch.delete(); }
private void delete(NativeSlice keySlice) { assertAllocated(); WriteBatchJNI.Delete(self, keySlice); }
public WriteBatch put(byte[] key, byte[] value) { writeBatch.put(key, value); return this; }
public WriteBatch createWriteBatch() { return new JniWriteBatch(new NativeWriteBatch()); }
public void write(NativeWriteOptions options, NativeWriteBatch updates) throws DBException { checkArgNotNull(options, "options"); checkArgNotNull(updates, "updates"); checkStatus(DBJNI.Write(self, options, updates.pointer())); }
public WriteBatch delete(byte[] key) { writeBatch.delete(key); return this; }
public void delete() { assertAllocated(); WriteBatchJNI.delete(self); self = 0; }
public WriteBatch put(byte[] key, byte[] value) { writeBatch.put(key, value); return this; }
public WriteBatch createWriteBatch() { return new JniWriteBatch(new NativeWriteBatch()); }
public WriteBatch delete(byte[] key) { writeBatch.delete(key); return this; }
public void delete() { assertAllocated(); WriteBatchJNI.delete(self); self = 0; }
private void put(NativeBuffer keyBuffer, NativeBuffer valueBuffer) { put(new NativeSlice(keyBuffer), new NativeSlice(valueBuffer)); }
public WriteBatch delete(byte[] key) { writeBatch.delete(key); return this; }