try {
HTable table = getTable(tableName);
Text[] startKeys = table.getStartKeys();
ArrayList<RegionDescriptor> regions = new ArrayList<RegionDescriptor>();
for (int i = 0; i < startKeys.length; i++) {
RegionDescriptor region = new RegionDescriptor();
region.startKey = startKeys[i].toString().getBytes();
regions.add(region);
}
return regions;
} catch (IOException e) {