# Uses of Class
org.apache.datasketches.filters.bloomfilter.BloomFilter

Packages that use BloomFilter
Package
Description
org.apache.datasketches.filters.bloomfilter
BloomFilter package

## Uses of BloomFilter in org.apache.datasketches.filters.bloomfilter

Methods in org.apache.datasketches.filters.bloomfilter that return BloomFilter
Modifier and Type
Method
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 random 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(MemorySegment seg)`
Reads a serialized image of a BloomFilter from the provided MemorySegment
`static BloomFilter`
BloomFilterBuilder.`initializeByAccuracy(long maxDistinctItems, double targetFalsePositiveProb, long seed, MemorySegment dstSeg)`
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 MemorySegment.
`static BloomFilter`
BloomFilterBuilder.`initializeByAccuracy(long maxDistinctItems, double targetFalsePositiveProb, MemorySegment dstSeg)`
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 MemorySegment.
`static BloomFilter`
BloomFilterBuilder.`initializeBySize(long numBits, int numHashes, long seed, MemorySegment dstSeg)`
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 MemorySegment.
`static BloomFilter`
BloomFilterBuilder.`initializeBySize(long numBits, int numHashes, MemorySegment dstSeg)`
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 MemorySegment.
`static BloomFilter`
BloomFilter.`wrap(MemorySegment seg)`
Wraps the given MemorySegment into this filter class.
`static BloomFilter`
BloomFilter.`writableWrap(MemorySegment wseg)`
Wraps the given MemorySegment into this filter class.
Methods in org.apache.datasketches.filters.bloomfilter with parameters of type BloomFilter
Modifier and Type
Method
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.