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 Fri, 01 Apr 2016 04:09:47 GMT

You can implement AffinityKeyMapper and put any custom logic there. In your
case the 'affinityKey' method should return a compound of the two fields.
The mapper should be configured via CacheConfiguration.setAffinityMapper

Let us know if it works for you.


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

View raw message