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
| Modifier and Type | Class and Description |
|---|---|
static class |
AffinityPartitioner.Externalizer |
| Constructor and Description |
|---|
AffinityPartitioner() |
| Modifier and Type | Method and Description |
|---|---|
int |
getSegment(Object key)
Obtains the segment for a key.
|
equals, getHash, getSegmentEndHashes, hashCode, initpublic int getSegment(Object key)
KeyPartitionergetSegment in interface KeyPartitionergetSegment in class HashFunctionPartitionerCopyright © 2025 JBoss, a division of Red Hat. All rights reserved.