public static IFilter getFilter(long numElements, double maxFalsePosProbability, int maxPageCount) {
    int bucketsPerElement = BloomCalculations.maxBucketsPerElement(numElements);
    BloomCalculations.BloomSpecification spec =
        BloomCalculations.computeBloomSpec(bucketsPerElement, maxFalsePosProbability);
    return createFilter(spec.K, numElements, spec.bucketsPerElement, maxPageCount);
  }
@return The smallest BloomFilter that can provide the given false
        positive probability rate for the given number of elements.

        Asserts that the given probability can be satisfied using this
        filter.
ambry-utils/src/main/java/com/github/ambry/utils/FilterFactory.java