public static RestoreRequest createRestoreRequest(String backupRootDir, String backupId,
    boolean check, TableName[] fromTables, TableName[] toTables, boolean isOverwrite,
    boolean isKeepOriginalSplits) {
    RestoreRequest.Builder builder = new RestoreRequest.Builder();
    RestoreRequest request = builder.withBackupRootDir(backupRootDir).withBackupId(backupId)
      .withCheck(check).withFromTables(fromTables).withToTables(toTables).withOvewrite(isOverwrite)
      .withKeepOriginalSplits(isKeepOriginalSplits).build();
    return request;
  }
Create restore request.
@param backupRootDir backup root dir
@param backupId      backup id
@param check         check only
@param fromTables    table list from
@param toTables      table list to
@param isOverwrite   overwrite data
@return request obkect
hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/util/BackupUtils.java