public interface ClientPartitionAwarenessMapper
When the ClientConfiguration.isPartitionAwarenessEnabled()
and the cache was created with a custom AffinityFunction
or a AffinityKeyMapper
this function will be used to calculate mappings. Be sure that a key maps to the same partition
produced by the AffinityFunction.partition(Object)
method.
AffinityFunction.partition(Object)
Modifier and Type | Method and Description |
---|---|
int |
partition(Object key)
Gets a partition number for a given key starting from
0 . |
int partition(Object key)
0
. Be sure that a key maps to the same partition
produced by the AffinityFunction.partition(Object)
method.key
- Key to get partition for.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023