Package | Description |
---|---|
org.apache.datasketches.filters.bloomfilter |
Modifier and Type | Method and Description |
---|---|
static BloomFilter |
BloomFilterBuilder.createByAccuracy(long maxDistinctItems,
double targetFalsePositiveProb)
Creates a new BloomFilter with an optimal number of bits and hash functions for the given inputs,
using a random base seed for the hash function.
|
static BloomFilter |
BloomFilterBuilder.createByAccuracy(long maxDistinctItems,
double targetFalsePositiveProb,
long seed)
Creates a new BloomFilter with an optimal number of bits and hash functions for the given inputs,
using the provided base seed for the hash function.
|
static BloomFilter |
BloomFilterBuilder.createBySize(long numBits,
int numHashes)
Creates a BloomFilter with given number of bits and number of hash functions,
using a rnadom base seed for the hash function.
|
static BloomFilter |
BloomFilterBuilder.createBySize(long numBits,
int numHashes,
long seed)
Creates a BloomFilter with given number of bits and number of hash functions,
using the provided base seed for the hash function.
|
static BloomFilter |
BloomFilter.heapify(org.apache.datasketches.memory.Memory mem)
Reads a serialized image of a BloomFilter from the provided Memory
|
static BloomFilter |
BloomFilterBuilder.initializeByAccuracy(long maxDistinctItems,
double targetFalsePositiveProb,
long seed,
org.apache.datasketches.memory.WritableMemory dstMem)
Creates a new BloomFilter with an optimal number of bits and hash functions for the given inputs,
using the provided base seed for the hash function and writing into the provided WritableMemory.
|
static BloomFilter |
BloomFilterBuilder.initializeByAccuracy(long maxDistinctItems,
double targetFalsePositiveProb,
org.apache.datasketches.memory.WritableMemory dstMem)
Creates a new BloomFilter with an optimal number of bits and hash functions for the given inputs,
using a random base seed for the hash function and writing into the provided WritableMemory.
|
static BloomFilter |
BloomFilterBuilder.initializeBySize(long numBits,
int numHashes,
long seed,
org.apache.datasketches.memory.WritableMemory dstMem)
Initializes a BloomFilter with given number of bits and number of hash functions,
using the provided base seed for the hash function and writing into the provided WritableMemory.
|
static BloomFilter |
BloomFilterBuilder.initializeBySize(long numBits,
int numHashes,
org.apache.datasketches.memory.WritableMemory dstMem)
Initializes a BloomFilter with given number of bits and number of hash functions,
using a random base seed for the hash function and writing into the provided WritableMemory.
|
static BloomFilter |
BloomFilter.wrap(org.apache.datasketches.memory.Memory mem)
Wraps the given Memory into this filter class.
|
static BloomFilter |
BloomFilter.writableWrap(org.apache.datasketches.memory.WritableMemory wmem)
Wraps the given WritableMemory into this filter class.
|
Modifier and Type | Method and Description |
---|---|
void |
BloomFilter.intersect(BloomFilter other)
Intersects two BloomFilters by applying a logical AND.
|
boolean |
BloomFilter.isCompatible(BloomFilter other)
Helps identify if two BloomFilters may be unioned or intersected.
|
void |
BloomFilter.union(BloomFilter other)
Unions two BloomFilters by applying a logical OR.
|
Copyright © 2015–2024 The Apache Software Foundation. All rights reserved.