Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add method ImportElementsFrom on inverse bloom filter
ReadFrom and GobDecode methods allowed a bloom filter to be exported and then recreated as part of a new array. The new ImportElementsFrom method uses the filter.Add method to add the elements written out by one filter to the array of another filter. This allows for use cases such as converting from one filter size to another. For example, rolling a size 1,000 filter into a size 1,000,000 filter.
- Loading branch information
sam-lowenkamp
committed
Feb 6, 2017
1 parent
6cd71b8
commit dee13ba
Showing
3 changed files
with
147 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters