mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
[Java] Fixed compile error due to the removal of ReadOptions.prefix_seek, minor improvement on DbBenchmark.java.
This commit is contained in:
@@ -93,34 +93,6 @@ public class ReadOptions {
|
||||
private native void setFillCache(
|
||||
long handle, boolean fillCache);
|
||||
|
||||
/**
|
||||
* If this option is set and memtable implementation allows, Seek
|
||||
* might only return keys with the same prefix as the seek-key
|
||||
* Default: false
|
||||
*
|
||||
* @return true if prefix-seek is enabled.
|
||||
*/
|
||||
public boolean prefixSeek() {
|
||||
assert(isInitialized());
|
||||
return prefixSeek(nativeHandle_);
|
||||
}
|
||||
private native boolean prefixSeek(long handle);
|
||||
|
||||
/**
|
||||
* If this option is set and memtable implementation allows, Seek
|
||||
* might only return keys with the same prefix as the seek-key
|
||||
*
|
||||
* @param prefixSeek if true, then prefix-seek will be enabled.
|
||||
* @return the reference to the current ReadOptions.
|
||||
*/
|
||||
public ReadOptions setPrefixSeek(boolean prefixSeek) {
|
||||
assert(isInitialized());
|
||||
setPrefixSeek(nativeHandle_, prefixSeek);
|
||||
return this;
|
||||
}
|
||||
private native void setPrefixSeek(
|
||||
long handle, boolean prefixSeek);
|
||||
|
||||
/**
|
||||
* Specify to create a tailing iterator -- a special iterator that has a
|
||||
* view of the complete database (i.e. it can also be used to read newly
|
||||
|
||||
Reference in New Issue
Block a user