public class AffinityPartitioner extends HashFunctionPartitioner
AffinityTaggedKey
.
If the segment is not defined (value -1) or the key is not an AffinityTaggedKey, will fallback to a HashFunctionPartitioner
Constructor and Description |
---|
AffinityPartitioner() |
Modifier and Type | Method and Description |
---|---|
int |
getSegment(Object key)
Obtains the segment for a key.
|
equals, getHash, getSegmentEndHashes, hashCode, init, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
applyAsInt, matches
public int getSegment(Object key)
KeyPartitioner
getSegment
in interface KeyPartitioner
getSegment
in class HashFunctionPartitioner
Copyright © 2021 JBoss by Red Hat. All rights reserved.