boolean isSorted = false;
if (op.getPinnedHost() != null) {
HostConnectionPool<CL> pool = hosts.get(op.getPinnedHost());
if (pool == null) {
throw new NoAvailableHostsException("Host " + op.getPinnedHost() + " not active");
}
pools = Arrays.<HostConnectionPool<CL>> asList(pool);
}
else {
TokenHostConnectionPoolPartition<CL> partition = topology.getPartition(op.getRowKey());