public static interface ConsistentHash.Hash<T>
This hash function need not produce a very uniform distribution, as the output is rehashed with SHA-256. But it does need to make sure it doesn't produce the same value for two different 'T's (and that's why this returns String, not the usual int.)
Copyright © 2004–2022. All rights reserved.