![]() |
Smalltalk/X WebserverDocumentation of class 'BloomFilter': |
|
|
Class: BloomFilterInheritance:Object | +--Collection | +--BloomFilter
Description:a BloomFilter (see eg. https://de.wikipedia.org/wiki/Bloomfilter) is a Set-like data structure which can quickly answer whether an element is definitely NOT in the set, but might generate false positives (i.e. it might answer true, although the element is not actually present). Bloom filters are used for tuning, when accesses (eg. to the disk or database) are expensive, and can be avoided in many cases (in the NOT present case), and false positives only lead to additional useless queries. Bloom filters cannot remove or enumerate elements. The only useful operations are adding and inclusion testing (includes). For example, a database query (eg. 'is something present'), might make use of a bloom filter, to avoid the query in many cases. Bloom filters false positive rate degrades as the number of elements is added, thus a good choice of its initial size is mandatory. Class protocol:instance creation
Instance protocol:adding
Examples:<<END
|
|
|
ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Mon, 29 May 2023 12:44:53 GMT
|