|
|
@ -539,7 +539,21 @@ public class RocksDB extends RocksObject { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public void write(WriteOptions writeOpts, WriteBatch updates) |
|
|
|
public void write(WriteOptions writeOpts, WriteBatch updates) |
|
|
|
throws RocksDBException { |
|
|
|
throws RocksDBException { |
|
|
|
write(writeOpts.nativeHandle_, updates.nativeHandle_); |
|
|
|
write0(writeOpts.nativeHandle_, updates.nativeHandle_); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Apply the specified updates to the database. |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @param writeOpts WriteOptions instance |
|
|
|
|
|
|
|
* @param updates WriteBatchWithIndex instance |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @throws RocksDBException thrown if error happens in underlying |
|
|
|
|
|
|
|
* native library. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public void write(WriteOptions writeOpts, WriteBatchWithIndex updates) |
|
|
|
|
|
|
|
throws RocksDBException { |
|
|
|
|
|
|
|
write1(writeOpts.nativeHandle_, updates.nativeHandle_); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -1547,8 +1561,10 @@ public class RocksDB extends RocksObject { |
|
|
|
long handle, long writeOptHandle, |
|
|
|
long handle, long writeOptHandle, |
|
|
|
byte[] key, int keyLen, |
|
|
|
byte[] key, int keyLen, |
|
|
|
byte[] value, int valueLen, long cfHandle) throws RocksDBException; |
|
|
|
byte[] value, int valueLen, long cfHandle) throws RocksDBException; |
|
|
|
protected native void write( |
|
|
|
protected native void write0( |
|
|
|
long writeOptHandle, long batchHandle) throws RocksDBException; |
|
|
|
long writeOptHandle, long wbHandle) throws RocksDBException; |
|
|
|
|
|
|
|
protected native void write1( |
|
|
|
|
|
|
|
long writeOptHandle, long wbwiHandle) throws RocksDBException; |
|
|
|
protected native boolean keyMayExist(byte[] key, int keyLen, |
|
|
|
protected native boolean keyMayExist(byte[] key, int keyLen, |
|
|
|
StringBuffer stringBuffer); |
|
|
|
StringBuffer stringBuffer); |
|
|
|
protected native boolean keyMayExist(byte[] key, int keyLen, |
|
|
|
protected native boolean keyMayExist(byte[] key, int keyLen, |
|
|
|