AffinityFunctionContext is the input, it provides information about topology for which the mapping has to be created. assignPartitions() method then has to return this mapping. Here is the JavaDoc quote for this method:
Returns: Unmodifiable list indexed by partition number. Each element of array is a collection in which first node is a primary node and other nodes are backup nodes. Everything else depends on what exactly you want to achieve. You can put any logic you want in this method. -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Partition-mapping-to-Ignite-node-tp10300p10491.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.