Package nl.tue.storage
Interface HashOperation<K>
-
- Type Parameters:
K-
- All Known Implementing Classes:
AbstractFixedLengthListCompressor,ByteListCompressor,CompressableCompressor,HashOperation.Default,IntListCompressor,LongListCompressor,ShortListCompressor,StateCompressor
public interface HashOperation<K>Interface for the hash operation needed to store objects in the CompressedStoreHashSet class. By contract, the hashcode returned for an object should be consistent, i.e. the hashCode of the object retrieved from the CompressedStore should equal the hashCode of the object before it was stored;- Author:
- bfvdonge
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classHashOperation.Default<K>
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetHashCode(K object)Returns the hashCode of the given object.intgetHashCode(CompressedStore<K> store, long l)Returns the hashCode of the object stored in the store at index l.
-
-
-
Method Detail
-
getHashCode
int getHashCode(K object)
Returns the hashCode of the given object.- Parameters:
object-- Returns:
-
getHashCode
int getHashCode(CompressedStore<K> store, long l) throws StorageException
Returns the hashCode of the object stored in the store at index l.- Parameters:
store-l-- Returns:
- Throws:
StorageException
-
-