public static RestoreJob getRestoreJob(Configuration conf) {
    Class<? extends RestoreJob> defaultCls =
      conf.getBoolean(RestoreJob.KEEP_ORIGINAL_SPLITS_KEY, RestoreJob.KEEP_ORIGINAL_SPLITS_DEFAULT)
        ? MapReduceRestoreToOriginalSplitsJob.class
        : MapReduceRestoreJob.class;

    Class<? extends RestoreJob> cls =
      conf.getClass(HBASE_INCR_RESTORE_IMPL_CLASS, defaultCls, RestoreJob.class);
    RestoreJob service = ReflectionUtils.newInstance(cls, conf);
    service.setConf(conf);
    return service;
  }
Gets backup restore job
@param conf configuration
@return backup restore job instance
hbase-backup/src/main/java/org/apache/hadoop/hbase/backup/BackupRestoreFactory.java