Package org.gridgain.grid.cache.affinity.consistenthash

Examples of org.gridgain.grid.cache.affinity.consistenthash.GridCacheConsistentHashAffinityFunction.partition()


        data.put(-4.9E-324, 7);

        boolean ok = true;

        for (Map.Entry<Object, Integer> entry : data.entrySet()) {
            int part = aff.partition(entry.getKey());
            Collection<GridNode> affNodes = aff.nodes(part, nodes, 1);
            UUID act = F.<GridNode>first(affNodes).id();
            UUID exp = nodes.get(entry.getValue()).id();

            if (!exp.equals(act)) {
View Full Code Here


        data.put(-4.9E-324, 1);

        boolean ok = true;

        for (Map.Entry<Object, Integer> entry : data.entrySet()) {
            int part = aff.partition(entry.getKey());

            UUID exp = nodes.get(entry.getValue()).id();
            UUID act = F.first(aff.nodes(part, nodes, 1)).id();

            if (!exp.equals(act)) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.