KafkaEx.Utils.Murmur (kafka_ex v0.12.1) 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

Specs

murmur2(key :: binary()) :: integer()

Calculates murmur2 hash for given binary

Specs

umurmur2(key :: binary()) :: integer()

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

Specs

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.