public static BloomKFilter deserialize(InputStream in) throws IOException {
    if (in == null) {
      throw new IOException("Input stream is null");
    }

    try {
      DataInputStream dataInputStream = new DataInputStream(in);
      int numHashFunc = dataInputStream.readByte();
      int bitsetArrayLen = dataInputStream.readInt();
      long[] data = new long[bitsetArrayLen];
      for (int i = 0; i < bitsetArrayLen; i++) {
        data[i] = dataInputStream.readLong();
      }
      return BloomKFilter.build(data, numHashFunc);
    } catch (RuntimeException e) {
      throw new IOException("Unable to deserialize BloomKFilter", e);
    }
  }
Deserialize a bloom filter
Read a byte stream, which was written by {@linkplain #serialize(OutputStream, BloomKFilter)}
into a {@code BloomKFilter}

@param in input bytestream
@return deserialized BloomKFilter
storage-api/src/java/org/apache/hive/common/util/BloomKFilter.java