Uses of Class
org.apache.commons.collections4.bloomfilter.Shape
Package
Description
Collects extensible Bloom filter classes and interfaces.
-
Uses of Shape in org.apache.commons.collections4.bloomfilter
Modifier and TypeMethodDescriptionstatic Shape
Shape.fromKM
(int numberOfHashFunctions, int numberOfBits) Constructs a filter configuration with the specified number of hashFunctions (k
) and bits (m
).static Shape
Shape.fromNM
(int numberOfItems, int numberOfBits) Constructs a filter configuration with the specified number of items (n
) and bits (m
).static Shape
Shape.fromNMK
(int numberOfItems, int numberOfBits, int numberOfHashFunctions) Constructs a filter configuration with the specified number of items, bits and hash functions.static Shape
Shape.fromNP
(int numberOfItems, double probability) Constructs a filter configuration with the specified number of items (n
) and desired false-positive probability (p
).static Shape
Shape.fromPMK
(double probability, int numberOfBits, int numberOfHashFunctions) Constructs a filter configuration with a desired false-positive probability (p
) and the specified number of bits (m
) and hash functions (k
).ArrayCountingBloomFilter.getShape()
BloomFilter.getShape()
Gets the shape that was used when the filter was built.final Shape
LayeredBloomFilter.getShape()
SimpleBloomFilter.getShape()
SparseBloomFilter.getShape()
WrappedBloomFilter.getShape()
Modifier and TypeMethodDescriptionstatic IntPredicate
IndexFilter.create
(Shape shape, IntPredicate consumer) Creates an instance optimized for the specified shape.static LayeredBloomFilter
Creates a fixed size layered bloom filter that adds new filters to the list, but never merges them.Creates an IndexProducer for this hasher based on the Shape.ModifierConstructorDescriptionArrayCountingBloomFilter
(Shape shape) Constructs an empty counting Bloom filter with the specified shape.LayeredBloomFilter
(Shape shape, LayerManager layerManager) Constructor.SimpleBloomFilter
(Shape shape) Creates an empty instance.SparseBloomFilter
(Shape shape) Constructs an empty BitSetBloomFilter.