public void Setup_StringOptimizedScalableBloomFilter()
        {
            var byteConverter = new ByteConverterStringMarshal();

            _stringOptimizedScalableBloomFilter = new StringOptimizedScalableBloomFilter(MaximumErrorRate, byteConverter);

            for (var i = 0; i < ItemsToInsert; i++)
            {
                var s = $"string-{i + 1}";
                _stringOptimizedScalableBloomFilter.Add(s);
            }
        }
Esempio n. 2
0
        public void Setup_BloomFilter()
        {
            var byteConverter = new ByteConverterStringMarshal();

            _bloomFilter = new BloomFilter <string>(ItemsToInsert, MaximumErrorRate, byteConverter);
        }
Esempio n. 3
0
        public void Setup_Marshal()
        {
            var byteConverter = new ByteConverterStringMarshal();

            GeneralSetup(byteConverter, ItemsToInsert);
        }
Esempio n. 4
0
        public void Setup_ScalableBloomFilter()
        {
            var byteConverter = new ByteConverterStringMarshal();

            _scalableBloomFilter = new ScalableBloomFilter <string>(MaximumErrorRate, byteConverter);
        }