# Uses of Interface
org.apache.commons.collections4.bloomfilter.BitMapProducer

Packages that use BitMapProducer
Package
Description
org.apache.commons.collections4.bloomfilter
Collects extensible Bloom filter classes and interfaces.

- ## Uses of BitMapProducer in org.apache.commons.collections4.bloomfilter

  Subinterfaces of BitMapProducer in org.apache.commons.collections4.bloomfilter
  Modifier and Type
  Interface
  Description
  `interface`
  `BloomFilter`
  The interface that describes a Bloom filter.
  `interface`
  `CountingBloomFilter`
  The interface that describes a Bloom filter that associates a count with each bit index rather than a bit.
  Classes in org.apache.commons.collections4.bloomfilter that implement BitMapProducer
  Modifier and Type
  Class
  Description
  `final class`
  `ArrayCountingBloomFilter`
  A counting Bloom filter using an int array to track cells for each enabled bit.
  `class`
  `LayeredBloomFilter`
  Layered Bloom filters are described in Zhiwang, Cen; Jungang, Xu; Jian, Sun (2010), "A multi-layer Bloom filter for duplicated URL detection", Proc.
  `final class`
  `SimpleBloomFilter`
  A bloom filter using an array of bit maps to track enabled bits.
  `final class`
  `SparseBloomFilter`
  A bloom filter using a TreeSet of integers to track enabled bits.
  `class`
  `WrappedBloomFilter`
  An abstract class to assist in implementing Bloom filter decorators.
  Methods in org.apache.commons.collections4.bloomfilter that return BitMapProducer
  Modifier and Type
  Method
  Description
  `static BitMapProducer`
  BitMapProducer.`fromBitMapArray(long... bitMaps)`
  Creates a BitMapProducer from an array of Long.
  `static BitMapProducer`
  BitMapProducer.`fromIndexProducer(IndexProducer producer, int numberOfBits)`
  Creates a BitMapProducer from an IndexProducer.
  Methods in org.apache.commons.collections4.bloomfilter with parameters of type BitMapProducer
  Modifier and Type
  Method
  Description
  `static int`
  SetOperations.`andCardinality(BitMapProducer first, BitMapProducer second)`
  Calculates the cardinality of the logical `AND` of the bit maps for the two filters.
  `static int`
  SetOperations.`cardinality(BitMapProducer producer)`
  Calculates the cardinality of a BitMapProducer.
  `boolean`
  ArrayCountingBloomFilter.`contains(BitMapProducer bitMapProducer)`
  `default boolean`
  BloomFilter.`contains(BitMapProducer bitMapProducer)`
  Returns `true` if this filter contains the bits specified in the bit maps produced by the bitMapProducer.
  `boolean`
  LayeredBloomFilter.`contains(BitMapProducer bitMapProducer)`
  `boolean`
  SparseBloomFilter.`contains(BitMapProducer bitMapProducer)`
  `boolean`
  WrappedBloomFilter.`contains(BitMapProducer bitMapProducer)`
  `static double`
  SetOperations.`cosineDistance(BitMapProducer first, BitMapProducer second)`
  Calculates the Cosine distance between two BitMapProducer.
  `static double`
  SetOperations.`cosineSimilarity(BitMapProducer first, BitMapProducer second)`
  Calculates the Cosine similarity between two BitMapProducers.
  `int[]`
  LayeredBloomFilter.`find(BitMapProducer bitMapProducer)`
  Finds the layers in which the BitMapProducer is found.
  `default boolean`
  BitMapProducer.`forEachBitMapPair(BitMapProducer other, LongBiPredicate func)`
  Applies the `func` to each bit map pair in order.
  `boolean`
  SimpleBloomFilter.`forEachBitMapPair(BitMapProducer other, LongBiPredicate func)`
  `boolean`
  WrappedBloomFilter.`forEachBitMapPair(BitMapProducer other, LongBiPredicate func)`
  `static IndexProducer`
  IndexProducer.`fromBitMapProducer(BitMapProducer producer)`
  Creates an IndexProducer from a `BitMapProducer`.
  `default int`
  CountingBloomFilter.`getMaxInsert(BitMapProducer bitMapProducer)`
  Determines the maximum number of times the BitMapProducer could have been merged into this counting filter.
  `static int`
  SetOperations.`hammingDistance(BitMapProducer first, BitMapProducer second)`
  Calculates the Hamming distance between two BitMapProducers.
  `static double`
  SetOperations.`jaccardDistance(BitMapProducer first, BitMapProducer second)`
  Calculates the Jaccard distance between two BitMapProducer.
  `static double`
  SetOperations.`jaccardSimilarity(BitMapProducer first, BitMapProducer second)`
  Calculates the Jaccard similarity between two BitMapProducer.
  `boolean`
  BloomFilter.`merge(BitMapProducer bitMapProducer)`
  Merges the specified hasher into this Bloom filter.
  `default boolean`
  CountingBloomFilter.`merge(BitMapProducer bitMapProducer)`
  Merges the specified BitMap producer into this Bloom filter.
  `boolean`
  LayeredBloomFilter.`merge(BitMapProducer bitMapProducer)`
  `boolean`
  SimpleBloomFilter.`merge(BitMapProducer bitMapProducer)`
  `boolean`
  SparseBloomFilter.`merge(BitMapProducer bitMapProducer)`
  `boolean`
  WrappedBloomFilter.`merge(BitMapProducer bitMapProducer)`
  `static int`
  SetOperations.`orCardinality(BitMapProducer first, BitMapProducer second)`
  Calculates the cardinality of the logical `OR` of the bit maps for the two filters.
  `default boolean`
  CountingBloomFilter.`remove(BitMapProducer bitMapProducer)`
  Removes the specified BitMapProducer from this Bloom filter.
  `static int`
  SetOperations.`xorCardinality(BitMapProducer first, BitMapProducer second)`
  Calculates the cardinality of the logical `XOR` of the bit maps for the two filters.