Module org.elasticsearch.server
Interface BloomFilter
public interface BloomFilter
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanmayContainValue(String field, org.apache.lucene.util.BytesRef term) Tests whether the given term may exist in the specified field.doubleReturns the saturation of the bloom filter as a value in [0, 1], i.e.longReturns the size in bytes of the bloom filter data on disk.
-
Field Details
-
NO_FILTER
-
-
Method Details
-
mayContainValue
Tests whether the given term may exist in the specified field.- Parameters:
field- the field name to checkterm- the term to test for membership- Returns:
- true if term may be present, false if definitely absent
- Throws:
IOException
-
sizeInBytes
long sizeInBytes()Returns the size in bytes of the bloom filter data on disk. -
saturation
Returns the saturation of the bloom filter as a value in [0, 1], i.e. the fraction of bits that are set. Higher saturation means a higher false positive rate.- Throws:
IOException
-