ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vkulichenko <valentin.kuliche...@gmail.com>
Subject Re: Affinity Collocation - Using CacheKeyConfiguration - Multiple fields
Date Wed, 20 Apr 2016 18:57:34 GMT
Hi Arthi,

Just to clarify, the key to node mapping is a three step process: cache key
-> affinity key -> partition -> node

The first step is done by AffinityKeyMapper. The default implementation of
the mapper supports @AffinityKeyMapped annotation and AffinityKey class. If
you need something more specific, you're free to provide your own
implementation.

Other two steps are done by AffinityFunction. This is also pluggable, but
modifying it can be useful only in very rare and very specific use cases. If
you just want to customize the collocation strategy, use AffinityKeyMapper.

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Affinity-Collocation-Using-CacheKeyConfiguration-Multiple-fields-tp3812p4385.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Mime
View raw message