BloomFilter¶
BloomFilter
is an abstraction of bloom filters for the following:
- DataFrameStatFunctions.bloomFilter operator
- BloomFilterAggregate expression (as an aggregation buffer)
- BloomFilterMightContain expression
Contract (Subset)¶
bitSize¶
long bitSize()
See:
Used when:
BloomFilterAggregate
is requested to serialize a BloomFilter
mightContain¶
boolean mightContain(
Object item)
See:
Not Used
mightContain
does not seem to be used (as mightContainLong seems to be used directly instead).
mightContainLong¶
boolean mightContainLong(
long item)
See:
Used when:
BloomFilterImpl
is requested to mightContainBloomFilterMightContain
is requested to evaluate and doGenCode
mightContainString¶
boolean mightContainString(
String item)
See:
Used when:
BloomFilterImpl
is requested to mightContain
Implementations¶
Creating BloomFilter¶
BloomFilter create(
long expectedNumItems)
BloomFilter create(
long expectedNumItems,
double fpp)
BloomFilter create(
long expectedNumItems,
long numBits)
create
creates a BloomFilterImpl for the given expectedNumItems
.
Unless the False Positive Probability (fpp
) is given, create
uses DEFAULT_FPP value to determine the optimal number of bits.
create
is used when:
BloomFilterAggregate
is requested to create an aggregation bufferDataFrameStatFunctions
is requested to build a BloomFilter