// Split keys by server node.
List<BatchNode> batchNodes = new ArrayList<BatchNode>(nodeCount+1);
for (int i = 0; i < keys.length; i++) {
Key key = keys[i];
Partition partition = new Partition(key);
BatchNode batchNode;
Node node = cluster.getNode(partition);
batchNode = findBatchNode(batchNodes, node);