## Uses of Interface
org.apache.ignite.cache.affinity.AffinityFunction

Packages that use AffinityFunction
Package | Description
--- | ---
org.apache.ignite.cache.affinity.fair | Contains fair cache affinity for partitioned cache.
org.apache.ignite.cache.affinity.rendezvous | Contains HRW-based cache affinity for partitioned cache.
org.apache.ignite.configuration | Contains configuration-related classes.
org.apache.ignite.internal.processors.affinity | Data affinity processor.
org.apache.ignite.internal.processors.cache |

### Uses of AffinityFunction in org.apache.ignite.cache.affinity.fair

Classes in org.apache.ignite.cache.affinity.fair that implement AffinityFunction
Modifier and Type | Class and Description
--- | ---
`class` | `FairAffinityFunction` Fair affinity function which tries to ensure that all nodes get equal number of partitions with minimum amount of reassignments between existing nodes.

### Uses of AffinityFunction in org.apache.ignite.cache.affinity.rendezvous

Classes in org.apache.ignite.cache.affinity.rendezvous that implement AffinityFunction
Modifier and Type | Class and Description
--- | ---
`class` | `RendezvousAffinityFunction` Affinity function for partitioned cache based on Highest Random Weight algorithm.

### Uses of AffinityFunction in org.apache.ignite.configuration

Methods in org.apache.ignite.configuration that return AffinityFunction
Modifier and Type | Method and Description
--- | ---
`AffinityFunction` | CacheConfiguration.`getAffinity()` Gets key topology resolver to provide mapping from keys to nodes.

Methods in org.apache.ignite.configuration with parameters of type AffinityFunction
Modifier and Type | Method and Description
--- | ---
`CacheConfiguration<K,V>` | CacheConfiguration.`setAffinity(AffinityFunction aff)` Sets affinity for cache keys.

### Uses of AffinityFunction in org.apache.ignite.internal.processors.affinity

Constructors in org.apache.ignite.internal.processors.affinity with parameters of type AffinityFunction
Constructor and Description
`GridAffinityAssignmentCache(GridKernalContext ctx, String cacheName, AffinityFunction aff, IgnitePredicate<ClusterNode> nodeFilter, int backups, boolean locCache)` Constructs affinity cached calculations.

### Uses of AffinityFunction in org.apache.ignite.internal.processors.cache

Fields in org.apache.ignite.internal.processors.cache declared as AffinityFunction
Modifier and Type | Field and Description
--- | ---
`protected AffinityFunction` | GridCachePreloaderAdapter.`aff` Affinity.

2015 Copyright © Apache Software Foundation

Follow @ApacheIgnite

Ignite Fabric | : ver. 1.6.0
Release Date | : May 18 2016