public static BloomFilter createFromMeta(DataInput meta, HFile.Reader reader,
    BloomFilterMetrics metrics) throws IllegalArgumentException, IOException {
    int version = meta.readInt();
    switch (version) {
      case CompoundBloomFilterBase.VERSION:
        return new CompoundBloomFilter(meta, reader, metrics);

      default:
        throw new IllegalArgumentException("Bad bloom filter format version " + version);
    }
  }
Instantiates the correct Bloom filter class based on the version provided in the meta block
data.
@param meta   the byte array holding the Bloom filter's metadata, including version information
@param reader the {@link HFile} reader to use to lazily load Bloom filter blocks
@return an instance of the correct type of Bloom filter
hbase-server/src/main/java/org/apache/hadoop/hbase/util/BloomFilterFactory.java