Class BloomFilter

    • Field Detail

      • bitset

        public final IBitSet bitset
      • hashCount

        public final int hashCount
    • Method Detail

      • getHashBuckets

        public long[] getHashBuckets​(IFilter.FilterKey key,
                                     int hashCount,
                                     long max)
      • clear

        public void clear()
        Specified by:
        clear in interface IFilter
      • sharedCopy

        public IFilter sharedCopy()
        Specified by:
        sharedCopy in interface IFilter
        Specified by:
        sharedCopy in interface SharedCloseable
        Returns:
        a new instance of the object representing the same state and backed by the same underlying resources. Coordinates with the original (and other instances) when the underlying resource should be closed. Throws an exception if the shared resource has already been closed.
      • offHeapSize

        public long offHeapSize()
        Description copied from interface: IFilter
        Returns the amount of memory in bytes used off heap.
        Specified by:
        offHeapSize in interface IFilter
        Returns:
        the amount of memory in bytes used off heap
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object