View Source KafkaEx.Support.Murmur (kafka_ex v1.0.0-rc.1)

Utility module that provides Murmur hashing algorithm.

Summary

Functions

Calculates murmur2 hash for given binary

Calculates murmur2 hash for given binary as unsigned 32-bit integer

Calculates murmur2 hash for given binary as unsigned 32-bit integer

Functions

@spec murmur2(key :: binary()) :: integer()

Calculates murmur2 hash for given binary

@spec umurmur2(key :: binary()) :: integer()

Calculates murmur2 hash for given binary as unsigned 32-bit integer

@spec umurmur2_legacy(key :: binary()) :: integer()

Calculates murmur2 hash for given binary as unsigned 32-bit integer

This is to support the legacy default partitioner implementation.