Interface BloomFilterReader
-
- All Superinterfaces:
AutoCloseable,Closeable
public interface BloomFilterReader extends Closeable
Interface for bloom filter reader.
-
-
Method Summary
Modifier and Type Method Description booleanmightContain(long hash1, long hash2)Returnstrueif the value with the given hash might have been put in this bloom filer,falseotherwise.booleanmightContain(String value)Returnstrueif the given value might have been put in this bloom filer,falseotherwise.
-
-
-
Method Detail
-
mightContain
boolean mightContain(String value)
Returnstrueif the given value might have been put in this bloom filer,falseotherwise.
-
mightContain
boolean mightContain(long hash1, long hash2)Returnstrueif the value with the given hash might have been put in this bloom filer,falseotherwise.This method is provided to prevent hashing the same value multiple times.
-
-