private BloomFilter prepareBloomFilter(List <String> partNames) {
    BloomFilter bloomFilter =
        BloomFilter.build(MAX_PARTITIONS_PER_CACHE_NODE, FALSE_POSITIVE_PROBABILITY);
    for (String partName: partNames) {
      bloomFilter.add(partName.getBytes());
    }
    return bloomFilter;
  }
Prepares a bloom filter from the list of partition names
@param partNames
@return
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/TestAggregateStatsCache.java