default_filter_size
default_filter_size
The default maximum size of a filter in a filter bundle
A BloomFilterBundle is a directory of BloomFilterFile.
The filter bundle, like a Bloom filter, also acts as a set, but once the active filter in it fills up a new filter is added to the bundle so that more data can be stored.
__construct( $dir_name, $filter_size = self::default_filter_size)
Creates or loads if already exists the directory structure and BloomFilterFiles used by this bundle
$dir_name | directory when this bundles data is stored |
|
$filter_size | the size of an individual filter in this bundle once a filter is filled a new one is added to the directory |
differenceFilter(\seekquarry\yioop\library\array& $arr, array $field_names = null)
Removes from the passed array those elements $elt who either are in the filter bundle or whose $elt[$field_name] is in the bundle.
\seekquarry\yioop\library\array& | $arr | the array to remove elements from |
array | $field_names | if not null an array of field names of $arr to use to do filtering |