return new BloomSpecification(2, optKPerBuckets[2]); return new BloomSpecification(K, bucketsPerElement);
return new BloomSpecification(2, optKPerBuckets[2]); return new BloomSpecification(K, bucketsPerElement);
return new BloomSpecification(2, optKPerBuckets[2]); return new BloomSpecification(K, bucketsPerElement);
return new BloomSpecification(2, optKPerBuckets[2]); return new BloomSpecification(K, bucketsPerElement);
return new BloomSpecification(2, optKPerBuckets[2]); return new BloomSpecification(K, bucketsPerElement);
/** * Given the number of buckets that can be used per element, return a * specification that minimizes the false positive rate. * * @param bucketsPerElement The number of buckets per element for the filter. * @return A spec that minimizes the false positive rate. */ public static BloomSpecification computeBloomSpec(int bucketsPerElement) { assert bucketsPerElement >= 1; assert bucketsPerElement <= probs.length - 1; return new BloomSpecification(optKPerBuckets[bucketsPerElement], bucketsPerElement); }
/** * Given the number of buckets that can be used per element, return a * specification that minimizes the false positive rate. * * @param bucketsPerElement The number of buckets per element for the filter. * @return A spec that minimizes the false positive rate. */ public static BloomSpecification computeBloomSpec(int bucketsPerElement) { assert bucketsPerElement >= 1; assert bucketsPerElement <= probs.length - 1; return new BloomSpecification(optKPerBuckets[bucketsPerElement], bucketsPerElement); }
/** * Given the number of buckets that can be used per element, return a * specification that minimizes the false positive rate. * * @param bucketsPerElement The number of buckets per element for the filter. * @return A spec that minimizes the false positive rate. */ public static BloomSpecification computeBloomSpec(int bucketsPerElement) { assert bucketsPerElement >= 1; assert bucketsPerElement <= probs.length - 1; return new BloomSpecification(optKPerBuckets[bucketsPerElement], bucketsPerElement); }
/** * Given the number of buckets that can be used per element, return a * specification that minimizes the false positive rate. * * @param bucketsPerElement The number of buckets per element for the filter. * @return A spec that minimizes the false positive rate. */ public static BloomSpecification computeBloomSpec(int bucketsPerElement) { assert bucketsPerElement >= 1; assert bucketsPerElement <= probs.length - 1; return new BloomSpecification(optKPerBuckets[bucketsPerElement], bucketsPerElement); }
/** * Given the number of buckets that can be used per element, return a * specification that minimizes the false positive rate. * * @param bucketsPerElement The number of buckets per element for the filter. * @return A spec that minimizes the false positive rate. */ public static BloomSpecification computeBloomSpec(int bucketsPerElement) { assert bucketsPerElement >= 1; assert bucketsPerElement <= probs.length - 1; return new BloomSpecification(optKPerBuckets[bucketsPerElement], bucketsPerElement); }