fullScan(visitor, rootTableName, null);
return results.size() == 0 ? null : results.get(0);
} else {
EntityGroupInfo info = EntityGroupInfo.getEntityGroupInfo(r);
if (info == null) {
throw new TableNotFoundException(Bytes.toString(tableName));
}
ServerName sn = ServerName.getServerName(r);
EntityGroupLocation egLoc = new EntityGroupLocation(info,
sn.getHostname(), sn.getPort());
return egLoc;