Package nl.tue.storage.hashing
Interface IncrementalHashCodeProvider
-
- All Superinterfaces:
HashCodeProvider
- All Known Implementing Classes:
AdHashHashCodeProvider
public interface IncrementalHashCodeProvider extends HashCodeProvider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intupdateHash(int oldHash, int idx, int oldVal, int newVal)Updates the old hash value and returns the new one, assuming that the value at index idx was changed from oldVal to newVal.intupdateHash(int oldHash, int idx, short oldVal, short newVal)Updates the old hash value and returns the new one, assuming that the value at index idx was changed from oldVal to newVal.-
Methods inherited from interface nl.tue.storage.hashing.HashCodeProvider
hash, hash, hash
-
-
-
-
Method Detail
-
updateHash
int updateHash(int oldHash, int idx, short oldVal, short newVal)Updates the old hash value and returns the new one, assuming that the value at index idx was changed from oldVal to newVal. Note that idx should be an index into the concatenation of the arrays previously provided in the call to hash().- Parameters:
oldHash-idx-oldVal-newVal-- Returns:
-
updateHash
int updateHash(int oldHash, int idx, int oldVal, int newVal)Updates the old hash value and returns the new one, assuming that the value at index idx was changed from oldVal to newVal. Note that idx should be an index into the concatenation of the arrays previously provided in the call to hash().- Parameters:
oldHash-idx-oldVal-newVal-- Returns:
-
-