[ 
https://issues.apache.org/jira/browse/IGNITE-4951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15967398#comment-15967398
 ] 

Konstantin Dudkov commented on IGNITE-4951:
-------------------------------------------

in IgfsUtils#prepareCacheConfigurations we got following:

{code:java}
                // Set co-located affinity mapper if needed.
                if (igfsCfg.isColocateMetadata() && 
ccfgMeta.getAffinityMapper() == null)
                    ccfgMeta.setAffinityMapper(new 
IgfsColocatedMetadataAffinityKeyMapper());

                // Set affinity mapper if needed.
                if (ccfgData.getAffinityMapper() == null)
                    ccfgData.setAffinityMapper(new 
IgfsGroupDataBlocksKeyMapper());
{code}

IgfsGroupDataBlocksKeyMapper file's data blocks together on one node. It can be 
done using custom AffinityKey class with annotated affinityKey field filled 
according to same logic, but in my opinion it's more clear to keep this logic 
within AffintiyKeyMapper class.


> Discontinue AffintiyKeyMapper interface
> ---------------------------------------
>
>                 Key: IGNITE-4951
>                 URL: https://issues.apache.org/jira/browse/IGNITE-4951
>             Project: Ignite
>          Issue Type: Task
>          Components: cache
>            Reporter: Vladimir Ozerov
>            Assignee: Konstantin Dudkov
>              Labels: important
>             Fix For: 2.0
>
>




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to