public static boolean contains(byte[] buf, int offset, int length, ByteBuff bloomBuf,
    int bloomOffset, int bloomSize, Hash hash, int hashCount) {
    HashKey<byte[]> hashKey = new ByteArrayHashKey(buf, offset, length);
    return contains(bloomBuf, bloomOffset, bloomSize, hash, hashCount, hashKey);
  }
Creates a Bloom filter chunk of the given size.
@param byteSizeHint the desired number of bytes for the Bloom filter bit array. Will be
                    increased so that folding is possible.
@param errorRate    target false positive rate of the Bloom filter
@param hashType     Bloom filter hash function type
@return the new Bloom filter of the desired size
hbase-server/src/main/java/org/apache/hadoop/hbase/util/BloomFilterUtil.java