Try to add an element to the bucket
The element to add in the bucket
True if the insertion is a success, False if the bucket is full
Get the element at the given index in the bucket
The index to access
The element at the given index
Test if two buckets are equals: they have the same size, length and content
The other bucket with which to compare
True if the two buckets are equals, False otherwise
Test an element for membership
The element to look for in the bucket
True is the element is in the bucket, otherwise False
Test if the bucket has any space available
True if te bucket has any space available, False if if its full
Get the index of the first empty slot in the bucket
The index of the first empty slot, or -1 if the bucket is full
Try to remove an element from the bucket
The element to remove from the bucket
True if the element has been successfully removed, False if it was not in the bucket
Set an element at the given index in the bucket
The index at where the element should be inserted
The element to insert
Swap an element of the bucket with a given index and element, then return the replaced element
The index at where the element should be inserted
The element to be inserted
The element that have been swapped with the parameter
Randomly swap an element of the bucket with a given element, then return the replaced element
The element to be inserted
Factory function used to generate random function
The element that have been swapped with the parameter
Unset the element at the given index
The index of the element that should be unset
Constructor
The maximum number of elements in the bucket
Get the number of elements currenlty in the bucket
Get the maximum number of element in the bucket
Generated using TypeDoc
A Bucket is a container of a fixed number of values, used in various bloom filters.
Thomas Minier