# Package org.apache.ignite.cache.affinity

Contains cache node affinity implementations.

See: Description

Interface Summary
Interface | Description
--- | ---
Affinity<K> | Provides affinity information to detect which node is primary and which nodes are backups for a partitioned cache.
AffinityFunction | Cache key affinity which maps keys to nodes.
AffinityFunctionContext | Affinity function context.
AffinityKeyMapper | Affinity mapper which maps cache key to an affinity key.
AffinityNodeHashResolver | Resolver which is used to provide node hash value for affinity function.

Class Summary
Class | Description
--- | ---
AffinityKey<K> | Optional wrapper for cache keys to provide support for custom affinity mapping.
AffinityNodeAddressHashResolver | Node hash resolver which uses `ClusterNode.consistentId()` as alternate hash value.
AffinityNodeIdHashResolver | Node hash resolver which uses generated node ID as node hash value.

Annotation Types Summary
Annotation Type | Description
--- | ---
AffinityCentralizedFunction | Annotation marker which identifies affinity function that must be calculated on one centralized node instead of independently on each node.
AffinityKeyMapped | Optional annotation to specify custom key-to-node affinity.

## Package org.apache.ignite.cache.affinity Description

Contains cache node affinity implementations.

2015 Copyright © Apache Software Foundation

Follow @ApacheIgnite

Ignite Fabric | : ver. 1.0.0
Release Date | : March 31 2015