private TableDescriptor getTableDescriptor(FileSystem fileSys, TableName tableName,
    String lastIncrBackupId) throws IOException {
    if (lastIncrBackupId != null) {
      String target =
        BackupUtils.getTableBackupDir(backupRootPath.toString(), lastIncrBackupId, tableName);
      return FSTableDescriptors.getTableDescriptorFromFs(fileSys, new Path(target));
    }
    return null;
  }
Get table descriptor
@param tableName is the table backed up
@return {@link TableDescriptor} saved in backup image of the table
hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/util/RestoreTool.java