Beispiel #1
0
        public DualStamp(uint numberOfElements, uint bloofilterNumberOfBits)
        {
            privateUsed           = 0;
            this.numberOfElements = numberOfElements;

            bloomfilter = new BloomfilterType(bloofilterNumberOfBits);

            termIdHistory = new /*TermId*/ uint[numberOfElements];
        }
Beispiel #2
0
 // returns if the two bloomfilter (can) collide by checking if bits of the bloomfilters overlap
 protected static bool collideByBloomfilter(DualStamp a, DualStamp b)
 {
     return(BloomfilterType.overlap(a.bloomfilter, b.bloomfilter));
 }