We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c23865 commit 6798d1eCopy full SHA for 6798d1e
README.md
@@ -98,6 +98,31 @@ False
98
True
99
```
100
101
+### Merging two filters: ###
102
+Create first filter:
103
+```
104
+>>> from fastBloomFilter import bloom
105
+>>> bf1 = bloom.BloomFilter(array_size=1024**3)
106
+>>> bf1.add("1")
107
108
+Create second filter:
109
110
111
+>>> bf2 = bloom.BloomFilter(array_size=1024**3)
112
+>>> bf2.add("2")
113
114
+Merge the two filters into a third filter:
115
116
+>>> bf3 = bf1 + bf2
117
118
+Check the elements in the third filter:
119
120
+>>> print(bf3["1"])
121
+True
122
+>>> print(bf3["2"])
123
124
125
+
126
### Contributing ###
127
128
Contributons:
0 commit comments