public void merge(CountingBloomFilter cbf)
    {
        assert cbf != null;
        assert filter_.length == cbf.filter_.length;
        assert hashCount == cbf.hashCount;
        
        for ( int i = 0; i < buckets(); ++i )
        {
            Bucket b = new Bucket(i);
            Bucket b2 = cbf.getBucket(i);
            long merged = b.value + b2.value;
            b.set(merged > MAX_COUNT ? MAX_COUNT : merged);
        }
    }