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

Packages that use CacheAffinityFunction
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 |
org.apache.ignite.internal.processors.affinity | Data affinity processor.
org.apache.ignite.internal.processors.cache |

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

Classes in org.apache.ignite.cache.affinity.fair that implement CacheAffinityFunction
Modifier and Type | Class and Description
--- | ---
`class` | `CachePartitionFairAffinity` 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 CacheAffinityFunction in org.apache.ignite.cache.affinity.rendezvous

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

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

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

Methods in org.apache.ignite.configuration with parameters of type CacheAffinityFunction
Modifier and Type | Method and Description
--- | ---
`void` | CacheConfiguration.`setAffinity(CacheAffinityFunction aff)` Sets affinity for cache keys.

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

Constructors in org.apache.ignite.internal.processors.affinity with parameters of type CacheAffinityFunction
Constructor and Description
`GridAffinityAssignmentCache(GridCacheContext ctx, String cacheName, CacheAffinityFunction aff, CacheAffinityKeyMapper affMapper, int backups)` Constructs affinity cached calculations.

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

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

2015 Copyright © Apache Software Foundation

Follow @ApacheIgnite

Ignite Fabric | : ver. 1.0.0-RC3
Release Date | : March 24 2015