Class BloomFilter
- All Implemented Interfaces:
AutoCloseable
Note: if you are using a custom comparator that ignores some parts
of the keys being compared, you must not use this BloomFilter
and must provide your own FilterPolicy that also ignores the
corresponding parts of the keys. For example, if the comparator
ignores trailing spaces, it would be incorrect to use a
FilterPolicy (like BloomFilter) that does not ignore
trailing spaces in keys.
-
Field Summary
Fields inherited from class org.rocksdb.RocksObject
nativeHandle_Fields inherited from class org.rocksdb.AbstractImmutableNativeReference
owningHandle_ -
Constructor Summary
ConstructorsConstructorDescriptionBloomFilter constructorBloomFilter(double bitsPerKey) BloomFilter constructorBloomFilter(double bitsPerKey, boolean IGNORED_useBlockBasedMode) BloomFilter constructor -
Method Summary
Methods inherited from class org.rocksdb.Filter
disposeInternal, disposeInternalMethods inherited from class org.rocksdb.RocksObject
getNativeHandleMethods inherited from class org.rocksdb.AbstractImmutableNativeReference
close, disOwnNativeHandle, isOwningHandle
-
Constructor Details
-
BloomFilter
public BloomFilter()BloomFilter constructorCallers must delete the result after any database that is using the result has been closed.
-
BloomFilter
public BloomFilter(double bitsPerKey) BloomFilter constructorbits_per_key: bits per key in bloom filter. A good value for bits_per_key is 9.9, which yields a filter with ~ 1% false positive rate.
Callers must delete the result after any database that is using the result has been closed.
- Parameters:
bitsPerKey- number of bits to use
-
BloomFilter
public BloomFilter(double bitsPerKey, boolean IGNORED_useBlockBasedMode) BloomFilter constructorbits_per_key: bits per key in bloom filter. A good value for bits_per_key is 10, which yields a filter with ~ 1% false positive rate.
default bits_per_key: 10
Callers must delete the result after any database that is using the result has been closed.
- Parameters:
bitsPerKey- number of bits to useIGNORED_useBlockBasedMode- obsolete, ignored parameter
-
-
Method Details