private RegionLocator getLocator(ByteBuffer tableName) { try { return connectionCache.getRegionLocator(byteBufferToByteArray(tableName)); } catch (IOException ie) { throw new RuntimeException(ie); } }
try (RegionLocator locator = connectionCache.getRegionLocator(getBytes(tableName))) { List<HRegionLocation> regionLocations = locator.getAllRegionLocations(); List<TRegionInfo> results = new ArrayList<>(regionLocations.size());
private RegionLocator getLocator(ByteBuffer tableName) { try { return connectionCache.getRegionLocator(byteBufferToByteArray(tableName)); } catch (IOException ie) { throw new RuntimeException(ie); } }
private RegionLocator getLocator(ByteBuffer tableName) { try { return connectionCache.getRegionLocator(byteBufferToByteArray(tableName)); } catch (IOException ie) { throw new RuntimeException(ie); } }
try (RegionLocator locator = connectionCache.getRegionLocator(getBytes(tableName))) { List<HRegionLocation> regionLocations = locator.getAllRegionLocations(); List<TRegionInfo> results = new ArrayList<>(regionLocations.size());
public List<TRegionInfo> getTableRegions(ByteBuffer tableName) throws IOError { try (RegionLocator locator = connectionCache.getRegionLocator(getBytes(tableName))) { List<HRegionLocation> regionLocations = locator.getAllRegionLocations(); List<TRegionInfo> results = new ArrayList<>(regionLocations.size());