new AttenuatedBloomFilter(optionsopt)
Constructs an empty attenuated bloom filter given a bitfield size and a filter depth.
Parameters:
Name | Type | Attributes | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | object | <optional> | Properties
|
- Source
Extends
- Array
Methods
merge(foreignFilters) → {AttenuatedBloomFilter}
Merges a foreign attenuated filter into ours.
Parameters:
Name | Type | Description |
---|---|---|
foreignFilters | AttenuatedBloomFilter | The attenuated filter to merge into ours (uses bitwise OR operation) |
- Source
Returns:
- Type:
- AttenuatedBloomFilter
toHexArray() → {Array.<string>}
Returns an array of hex string serialized filters.
- Source
Returns:
- Type:
- Array.<string>
toString() → {string}
Returns a comma delimited string of each filter serialized to hex strings.
- Source
Returns:
- Type:
- string