BloomFilters.py (14264:f150b10dd048) BloomFilters.py (14268:3012cd98980d)
1# Copyright (c) 2019 Inria
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 78 unchanged lines hidden (view full) ---

87 # By default there are two sub-filters that hash sequential bitfields
88 filters = VectorParam.BloomFilterBase([
89 BloomFilterBlock(size = 4096, masks_lsbs = [6, 12]),
90 BloomFilterBlock(size = 1024, masks_lsbs = [18, 24])],
91 "Sub-filters to be combined")
92
93 # By default match this with the number of sub-filters
94 threshold = 2
1# Copyright (c) 2019 Inria
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 78 unchanged lines hidden (view full) ---

87 # By default there are two sub-filters that hash sequential bitfields
88 filters = VectorParam.BloomFilterBase([
89 BloomFilterBlock(size = 4096, masks_lsbs = [6, 12]),
90 BloomFilterBlock(size = 1024, masks_lsbs = [18, 24])],
91 "Sub-filters to be combined")
92
93 # By default match this with the number of sub-filters
94 threshold = 2
95
96class BloomFilterPerfect(BloomFilterBase):
97 type = 'BloomFilterPerfect'
98 cxx_class = 'BloomFilter::Perfect'
99 cxx_header = "base/filters/perfect_bloom_filter.hh"
100
101 # The base filter is not needed. Use a dummy value.
102 size = 1