Interface BloomFilterReader

    • Method Summary

      Modifier and Type Method Description
      boolean mightContain​(long hash1, long hash2)
      Returns true if the value with the given hash might have been put in this bloom filer, false otherwise.
      boolean mightContain​(String value)
      Returns true if the given value might have been put in this bloom filer, false otherwise.
    • Method Detail

      • mightContain

        boolean mightContain​(String value)
        Returns true if the given value might have been put in this bloom filer, false otherwise.
      • mightContain

        boolean mightContain​(long hash1,
                             long hash2)
        Returns true if the value with the given hash might have been put in this bloom filer, false otherwise.

        This method is provided to prevent hashing the same value multiple times.