Interface CompressedHashSet<K>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      CompressedStoreHashSetImpl.Result<K> add​(K val)
      Returns the index of the given object in the backing store.
      long contains​(K val)
      Returns the index of the given object in the backing store.
      CompressedStore<K> getBackingStore()
      Returns the CompressedStore used by this Set.
      long getMemory()
      returns the memory use of the backing store plus the size of the backingSet.
      K getObject​(long l)
      Return the original object stored at index l in the backing storage.
      void removeAll()
      clears the storage space and removes all elements in the backing set.
      int size()
      return the number of objects stored in this set
    • Method Detail

      • contains

        long contains​(K val)
               throws StorageException
        Returns the index of the given object in the backing store. If the object existed before the call to add, a non-negative index is returned, otherwise -1 is returned.
        Parameters:
        val -
        Returns:
        Throws:
        StorageException
      • getMemory

        long getMemory()
        returns the memory use of the backing store plus the size of the backingSet.
        Returns:
      • getObject

        K getObject​(long l)
             throws StorageException
        Return the original object stored at index l in the backing storage.
        Parameters:
        l -
        Returns:
        Throws:
        StorageException
      • getBackingStore

        CompressedStore<K> getBackingStore()
        Returns the CompressedStore used by this Set.
        Returns:
      • size

        int size()
        return the number of objects stored in this set
        Returns:
      • removeAll

        void removeAll()
        clears the storage space and removes all elements in the backing set.