Partitioner coding group

This code groupd contains partitioner options.

Lua access code

To access the code of the codings below, append the coding group name and coding name to syslib.model.codes, see an example below.

return syslib.model.codes.Partitioner.CONSISTENT

Codings

Name Code Description
CONSISTENT 2 CRC32 hash of key (Empty and NULL keys are mapped to single partition)
CONSISTENT_RANDOM 3 CRC32 hash of key (Empty and NULL keys are randomly partitioned)
MURMUR2 4 Java Producer compatible Murmur2 hash of key (NULL keys are mapped to single partition)
MURMUR2_RANDOM 5 Java Producer compatible Murmur2 hash of key (NULL keys are randomly partitioned. This is functionally equivalent to the default partitioner in the Java Producer.)
RANDOM 1 Random distribution