kafka_ex v0.11.0 KafkaEx.Utils.Murmur View Source

Utility module that provides Murmur hashing algorithm.

Link to this section 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

Link to this section Functions

Link to this function

murmur2(key)

View Source
murmur2(key :: binary()) :: integer()

Calculates murmur2 hash for given binary

Link to this function

umurmur2(key)

View Source
umurmur2(key :: binary()) :: integer()

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

Link to this function

umurmur2_legacy(key)

View Source
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.