public class CacheDefaultBinaryAffinityKeyMapper extends GridCacheDefaultAffinityKeyMapper
ignite, log| Constructor and Description |
|---|
CacheDefaultBinaryAffinityKeyMapper(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. |
BinaryField |
affinityKeyField(int typeId)
Get affinity field override for type.
|
BinaryField |
affinityKeyField(String typeName)
Get affinity field override for type.
|
void |
ignite(Ignite ignite) |
affinityKeyPropertyName, resetpublic CacheDefaultBinaryAffinityKeyMapper(@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 BinaryField affinityKeyField(String typeName)
typeName - Type name.@Nullable public BinaryField affinityKeyField(int typeId)
typeId - Type ID.public void ignite(Ignite ignite)
ignite in class GridCacheDefaultAffinityKeyMapperignite - Ignite.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.5.0 Release Date : May 23 2018