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, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitapplyAsInt, matchespublic int getSegment(Object key)
KeyPartitionergetSegment in interface KeyPartitionergetSegment in class HashFunctionPartitionerCopyright © 2021 JBoss by Red Hat. All rights reserved.