public IndexShardRoutingTable build() { // don't allow more than one shard copy with same id to be allocated to same node assert distinctNodes(shards) : "more than one shard with same id assigned to same node (shards: " + shards + ")"; return new IndexShardRoutingTable(shardId, Collections.unmodifiableList(new ArrayList<>(shards))); }
public IndexShardRoutingTable build() { return new IndexShardRoutingTable(shardId, Collections.unmodifiableList(new ArrayList<>(shards))); }
public IndexShardRoutingTable build() { // don't allow more than one shard copy with same id to be allocated to same node assert distinctNodes(shards) : "more than one shard with same id assigned to same node (shards: " + shards + ")"; return new IndexShardRoutingTable(shardId, Collections.unmodifiableList(new ArrayList<>(shards))); }
public IndexShardRoutingTable build() { // don't allow more than one shard copy with same id to be allocated to same node assert distinctNodes(shards) : "more than one shard with same id assigned to same node (shards: " + shards + ")"; return new IndexShardRoutingTable(shardId, Collections.unmodifiableList(new ArrayList<>(shards))); }
public IndexShardRoutingTable build() { // don't allow more than one shard copy with same id to be allocated to same node assert distinctNodes(shards) : "more than one shard with same id assigned to same node (shards: " + shards + ")"; return new IndexShardRoutingTable(shardId, Collections.unmodifiableList(new ArrayList<>(shards))); }
return new IndexShardRoutingTable(shardId, Collections.unmodifiableList(shardRoutings));
shards.add(replicaShardRouting); isrt.add( new IndexShardRoutingTable(new ShardId(index,shardId), shards) ); } else { isrt.add( new IndexShardRoutingTable(new ShardId(index,shardId), primaryShardRouting) ); info, Router.this.getTokenRanges(Router.this.redShards.get(node))); isrt.add( new IndexShardRoutingTable(new ShardId(index,shardId), primaryShardRouting) ); if (shardId != 0) i++;