ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arthi <Arthi.Kasturirangan...@nielsen.com>
Subject Affinity Collocation - Using CacheKeyConfiguration - Multiple fields
Date Thu, 31 Mar 2016 07:25:07 GMT
Hi Ignite Gurus.

For collocating objects in a partitioned cache, can I define a cache key
configuration with multiple affinityKeyFieldNames ? Essentially, I have a
cache with POJOs that need to be collocated based on values of two fields.

If I can do it, how do I extend the XML configuration (as in Docs) for more
than one field (affinityKeyFieldName)- 

<bean id="ignite.cfg"
    <property name="cacheKeyConfiguration">
        <bean class="org.apache.ignite.cache.CacheKeyConfiguration">
            <property name="typeName"
            <property name="affinityKeyFieldName" value="companyId"/>


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

View raw message