public static boolean contains(Cell cell, ByteBuff bloomBuf, int bloomOffset, int bloomSize,
    Hash hash, int hashCount, BloomType type) {
    HashKey<Cell> hashKey =
      type == BloomType.ROWCOL ? new RowColBloomHashKey(cell) : new RowBloomHashKey(cell);
    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