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

- Packages that use AffinityFunction
  Package | Description
  --- | ---
  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.platform.dotnet | Contains .Net platform-related classes.

- - ### 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 | 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 | Description
    --- | --- | ---
    `AffinityFunction` | AtomicConfiguration.`getAffinity()` | Gets atomic cache affinity function.
    `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 | Description
    --- | --- | ---
    `AtomicConfiguration` | AtomicConfiguration.`setAffinity​(AffinityFunction aff)` | Sets atomic cache affinity function.
    `CacheConfiguration<K,​V>` | CacheConfiguration.`setAffinity​(AffinityFunction aff)` | Sets affinity for cache keys.

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

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