|
|
@ -12,7 +12,7 @@ package org.rocksdb; |
|
|
|
* number of disk seeks form a handful to a single disk seek per |
|
|
|
* number of disk seeks form a handful to a single disk seek per |
|
|
|
* DB::Get() call. |
|
|
|
* DB::Get() call. |
|
|
|
* |
|
|
|
* |
|
|
|
* This function a new filter policy that uses a bloom filter |
|
|
|
* This class creates a new filter policy that uses a bloom filter |
|
|
|
* with approximately the specified number of bits per key. |
|
|
|
* with approximately the specified number of bits per key. |
|
|
|
* A good value for bitsPerKey is 10, which yields a filter |
|
|
|
* A good value for bitsPerKey is 10, which yields a filter |
|
|
|
* with ~ 1% false positive rate. |
|
|
|
* with ~ 1% false positive rate. |
|
|
@ -24,10 +24,6 @@ public class Filter { |
|
|
|
newFilter(bitsPerKey); |
|
|
|
newFilter(bitsPerKey); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public long getNativeHandle() { |
|
|
|
|
|
|
|
return nativeHandle_; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Deletes underlying C++ filter pointer. |
|
|
|
* Deletes underlying C++ filter pointer. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|