/** * Find all the replicas for the region on which the given row is being served. * @param row Row to find. * @return Locations for all the replicas of the row. * @throws IOException if a remote or network exception occurs */ default List<HRegionLocation> getRegionLocations(byte[] row) throws IOException { return getRegionLocations(row, false); }
@Override protected List<HRegionLocation> getRegionLocations(TableName tableName, byte[] row) throws IOException { try (RegionLocator locator = UTIL.getConnection().getRegionLocator(tableName)) { return locator.getRegionLocations(row); } }