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

    Modifier and Type
    Method
    Description
    int
    hashCode(long address, long length)
    Calculates the hash code for a memory region.
    int
    hashCode(ArrowBuf buf, long offset, long length)
    Calculates the hash code for a memory region.
  • 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

      int hashCode(ArrowBuf buf, long offset, long length)
      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.