Fix formatting

main
Ankit Gupta 11 years ago
parent 7a5106fbea
commit dd9f6f0a31
  1. 14
      java/org/rocksdb/BloomFilter.java
  2. 2
      java/org/rocksdb/Filter.java

@ -10,28 +10,28 @@ package org.rocksdb;
* 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.
* *
* Default value of bits per key is 10. * Default value of bits per key is 10.
*/ */
public class BloomFilter extends Filter { public class BloomFilter extends Filter {
private static final int DEFAULT_BITS_PER_KEY = 10; private static final int DEFAULT_BITS_PER_KEY = 10;
private final int bitsPerKey_; private final int bitsPerKey_;
public BloomFilter() { public BloomFilter() {
this(DEFAULT_BITS_PER_KEY); this(DEFAULT_BITS_PER_KEY);
} }
public BloomFilter(int bitsPerKey) { public BloomFilter(int bitsPerKey) {
super(); super();
bitsPerKey_ = bitsPerKey; bitsPerKey_ = bitsPerKey;
createNewFilter(); createNewFilter();
} }
@Override @Override
protected void createNewFilter() { protected void createNewFilter() {
createNewFilter0(bitsPerKey_); createNewFilter0(bitsPerKey_);
} }
private native void createNewFilter0(int bitsKeyKey); private native void createNewFilter0(int bitsKeyKey);
} }

@ -14,7 +14,7 @@ package org.rocksdb;
*/ */
public abstract class Filter { public abstract class Filter {
protected long nativeHandle_ = 0; protected long nativeHandle_ = 0;
protected abstract void createNewFilter(); protected abstract void createNewFilter();
/** /**

Loading…
Cancel
Save