## 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 |
org.apache.ignite.internal.processors.platform.cache.affinity |
org.apache.ignite.platform.dotnet | Contains .Net platform-related classes.

### 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

Methods in org.apache.ignite.internal.processors.affinity with parameters of type AffinityFunction
Modifier and Type | Method and Description
--- | ---
`Object` | GridAffinityProcessor.`similaryAffinityKey(AffinityFunction aff, IgnitePredicate<ClusterNode> nodeFilter, int backups, int parts)`

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.

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

Classes in org.apache.ignite.internal.processors.platform.cache.affinity that implement AffinityFunction
Modifier and Type | Class and Description
--- | ---
`class` | `PlatformAffinityFunction` Platform AffinityFunction.

Methods in org.apache.ignite.internal.processors.platform.cache.affinity that return AffinityFunction
Modifier and Type | Method and Description
--- | ---
`AffinityFunction` | PlatformAffinityFunction.`getBaseFunc()` Gets the base func.

Constructors in org.apache.ignite.internal.processors.platform.cache.affinity with parameters of type AffinityFunction
Constructor and Description
`PlatformAffinityFunction(Object func, int partitions, byte overrideFlags, AffinityFunction baseFunc)` Ctor.
`PlatformAffinityFunctionTarget(PlatformContext platformCtx, AffinityFunction baseFunc)` Constructor.

### Uses of AffinityFunction in org.apache.ignite.platform.dotnet

Classes in org.apache.ignite.platform.dotnet that implement AffinityFunction
Modifier and Type | Class and Description
--- | ---
`class` | `PlatformDotNetAffinityFunction` AffinityFunction implementation which can be used to configure .NET affinity function in Java Spring configuration.

2017 Copyright © Apache Software Foundation

Follow @ApacheIgnite

Ignite Fabric | : ver. 1.9.0
Release Date | : March 2 2017