Class FastFilter

    • Constructor Detail

      • FastFilter

        public FastFilter​(Config config)
    • Method Detail

      • mightContain

        public boolean mightContain​(long e)
        Description copied from interface: Membership
        Returns if the element might have been put in this Bloom filter, false if this is definitely not the case.
        Specified by:
        mightContain in interface Membership
        Parameters:
        e - the element whose presence is to be tested
        Returns:
        if the element might be present
      • clear

        public void clear()
        Description copied from interface: Membership
        Removes the elements from this collection.
        Specified by:
        clear in interface Membership
      • put

        public boolean put​(long e)
        Description copied from interface: Membership
        Puts an element into this collection so that subsequent queries with the same element will return true.
        Specified by:
        put in interface Membership
        Parameters:
        e - the element to add
        Returns:
        if the membership changed as a result of this operation