Created
October 31, 2018 09:58
-
-
Save ruurtjan/a02a687aff17eb7e03e4643f541741b4 to your computer and use it in GitHub Desktop.
Kafka default partitioner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return Utils.toPositive(Utils.murmur2(keyBytes)) % numPartitions; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment