Fix formatting
This commit is contained in:
parent
7a5106fbea
commit
dd9f6f0a31
@ -10,28 +10,28 @@ package org.rocksdb;
|
||||
* with approximately the specified number of bits per key.
|
||||
* A good value for bitsPerKey is 10, which yields a filter
|
||||
* with ~ 1% false positive rate.
|
||||
*
|
||||
*
|
||||
* Default value of bits per key is 10.
|
||||
*/
|
||||
public class BloomFilter extends Filter {
|
||||
private static final int DEFAULT_BITS_PER_KEY = 10;
|
||||
private final int bitsPerKey_;
|
||||
|
||||
|
||||
public BloomFilter() {
|
||||
this(DEFAULT_BITS_PER_KEY);
|
||||
}
|
||||
|
||||
|
||||
public BloomFilter(int bitsPerKey) {
|
||||
super();
|
||||
bitsPerKey_ = bitsPerKey;
|
||||
|
||||
|
||||
createNewFilter();
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
protected void createNewFilter() {
|
||||
createNewFilter0(bitsPerKey_);
|
||||
}
|
||||
|
||||
|
||||
private native void createNewFilter0(int bitsKeyKey);
|
||||
}
|
||||
}
|
||||
|
@ -14,7 +14,7 @@ package org.rocksdb;
|
||||
*/
|
||||
public abstract class Filter {
|
||||
protected long nativeHandle_ = 0;
|
||||
|
||||
|
||||
protected abstract void createNewFilter();
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user