public class CacheDefaultBinaryAffinityKeyMapper extends GridCacheDefaultAffinityKeyMapper
ignite, log| Constructor and Description |
|---|
CacheDefaultBinaryAffinityKeyMapper(@Nullable CacheKeyConfiguration[] cacheKeyCfgs)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
affinityKey(Object key)
If key class has annotation
AffinityKeyMapped,
then the value of annotated method or field will be used to get affinity value instead
of the key itself. |
@Nullable BinaryField |
affinityKeyField(int typeId)
Get affinity field override for type.
|
@Nullable BinaryField |
affinityKeyField(String typeName)
Get affinity field override for type.
|
void |
ignite(Ignite ignite) |
affinityKeyPropertyName, resetpublic CacheDefaultBinaryAffinityKeyMapper(@Nullable
@Nullable CacheKeyConfiguration[] cacheKeyCfgs)
cacheKeyCfgs - Cache key configurations.public Object affinityKey(Object key)
AffinityKeyMapped,
then the value of annotated method or field will be used to get affinity value instead
of the key itself. If there is no annotation, then the key is returned as is.affinityKey in interface AffinityKeyMapperaffinityKey in class GridCacheDefaultAffinityKeyMapperkey - Key to get affinity key for.@Nullable public @Nullable BinaryField affinityKeyField(String typeName)
typeName - Type name.@Nullable public @Nullable BinaryField affinityKeyField(int typeId)
typeId - Type ID.public void ignite(Ignite ignite)
ignite in class GridCacheDefaultAffinityKeyMapperignite - Ignite.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.1 Release Date : December 20 2021