public static void setInput(JobConf job, String snapshotName, Path restoreDir,
    RegionSplitter.SplitAlgorithm splitAlgo, int numSplitsPerRegion) throws IOException {
    TableSnapshotInputFormatImpl.setInput(job, snapshotName, restoreDir, splitAlgo,
      numSplitsPerRegion);
  }
Configures the job to use TableSnapshotInputFormat to read from a snapshot.
@param job                the job to configure
@param snapshotName       the name of the snapshot to read from
@param restoreDir         a temporary directory to restore the snapshot into. Current user
                          should have write permissions to this directory, and this should not
                          be a subdirectory of rootdir. After the job is finished, restoreDir
                          can be deleted.
@param splitAlgo          split algorithm to generate splits from region
@param numSplitsPerRegion how many input splits to generate per one region
@throws IOException if an error occurs
hbase-mapreduce/src/main/java/org/apache/hadoop/hbase/mapred/TableSnapshotInputFormat.java