Class GuavaBloomFilterReaderUtils
- java.lang.Object
-
- org.apache.pinot.segment.local.segment.index.readers.bloom.GuavaBloomFilterReaderUtils
-
public class GuavaBloomFilterReaderUtils extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGuavaBloomFilterReaderUtils.Hash128AsLongs
-
Method Summary
Modifier and Type Method Description static doublecomputeFPP(int sizeInBytes, int numInsertions)Calculates the fpp (false positive probability) based on the given bloom filter size and number of insertions.static byte[]hash(String value)Returns the hash of the given value as a byte array.static GuavaBloomFilterReaderUtils.Hash128AsLongshashAsLongs(String value)Likehash(String)but returns the hash as aGuavaBloomFilterReaderUtils.Hash128AsLongs.
-
-
-
Method Detail
-
hash
public static byte[] hash(String value)
Returns the hash of the given value as a byte array.
-
hashAsLongs
public static GuavaBloomFilterReaderUtils.Hash128AsLongs hashAsLongs(String value)
Likehash(String)but returns the hash as aGuavaBloomFilterReaderUtils.Hash128AsLongs.
-
computeFPP
public static double computeFPP(int sizeInBytes, int numInsertions)Calculates the fpp (false positive probability) based on the given bloom filter size and number of insertions.
-
-