Uses of Class
org.apache.commons.collections4.bloomfilter.Shape
Packages that use Shape
Package
Description
Implements Bloom filter classes and interfaces.
-
Uses of Shape in org.apache.commons.collections4.bloomfilter
Methods in org.apache.commons.collections4.bloomfilter that return ShapeModifier 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()
Methods in org.apache.commons.collections4.bloomfilter with parameters of type ShapeModifier and TypeMethodDescriptionstatic IntPredicate
IndexFilter.create
(Shape shape, IntPredicate consumer) Creates an instance optimized for the specified shape.Creates an IndexExtractor for this hasher based on the Shape.Constructors in org.apache.commons.collections4.bloomfilter with parameters of type ShapeModifierConstructorDescriptionArrayCountingBloomFilter
(Shape shape) Constructs an empty counting Bloom filter with the specified shape.LayeredBloomFilter
(Shape shape, LayerManager<T> layerManager) Constructs a new instance.SimpleBloomFilter
(Shape shape) Creates an empty instance.SparseBloomFilter
(Shape shape) Constructs an empty BitSetBloomFilter.