delete
Deletes an element from this CuckooFilter
. In most cases you should only delete items that have been previously added to the filter. Attempting to delete non-existent items may successfully delete the wrong item in the filter, causing a false negative. False negatives are defined as( #mightContain(Object)
returning false for an item that has been added to the filter. Deleting non-existent items doesn't otherwise adversely affect the state of the filter, so attempting to delete items that may not have been inserted is fine if false negatives are acceptable. The false-delete rate is similar to the false positive rate. False deletes can also cause the #approximateCount(Object)
to return both lower and higher than the real count
Return
true
if the cuckoo filter deleted this item successfully. Returns false
if the item was not found.
Parameters
the item to delete