Module org.apache.arrow.memory.core
Interface ArrowBufHasher
- All Known Implementing Classes:
MurmurHasher,SimpleHasher
public interface ArrowBufHasher
Utility for calculating the hash code for a consecutive memory region. This class provides the
basic framework for efficiently calculating the hash code.
A default light-weight implementation is given in SimpleHasher.
-
Method Summary
-
Method Details
-
hashCode
int hashCode(long address, long length) Calculates the hash code for a memory region.- Parameters:
address- start address of the memory region.length- length of the memory region.- Returns:
- the hash code.
-
hashCode
Calculates the hash code for a memory region.- Parameters:
buf- the buffer for the memory region.offset- offset within the buffer for the memory region.length- length of the memory region.- Returns:
- the hash code.
-