View Source KafkaEx.Utils.Murmur (kafka_ex v0.13.0)

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

@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.