private static SnapshotHRegionLocation toLocation(HBaseProtos.RegionInfo ri,
    TableName tableName) {
    RegionInfo region = RegionInfoBuilder.newBuilder(tableName)
      .setStartKey(ri.getStartKey().toByteArray()).setEndKey(ri.getEndKey().toByteArray())
      .setRegionId(ri.getRegionId()).setReplicaId(ri.getReplicaId()).build();

    return new SnapshotHRegionLocation(region);
  }
{@link RegionLocator} built using the most recent full backup's snapshot manifest for a given
table. Useful for aligning any subsequent incremental backups along the same splits as the full
backup
hbase-server/src/main/java/org/apache/hadoop/hbase/snapshot/SnapshotRegionLocator.java