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, init
public int getSegment(Object key)
KeyPartitioner
getSegment
in interface KeyPartitioner
getSegment
in class HashFunctionPartitioner
Copyright © 2022 JBoss, a division of Red Hat. All rights reserved.