code: @Override
    public Set<Dataset> findDistinctDatasets() throws IOException {
      Set<Dataset> datasets = Sets.newHashSet();
      Path inputPath = new Path(this.inputDir);
      Path inputLatePath = new Path(inputPath, MRCompactor.COMPACTION_LATE_DIR_SUFFIX);
      Path outputPath = new Path(this.destDir);
      Path outputLatePath = new Path(outputPath, MRCompactor.COMPACTION_LATE_DIR_SUFFIX);
      Dataset dataset =
          new Dataset.Builder().withPriority(this.getDatasetPriority(inputPath.getName()))
              .addInputPath(this.recompactDatasets ? outputPath : inputPath)
              .addInputLatePath(this.recompactDatasets ? outputLatePath : inputLatePath).withOutputPath(outputPath)
              .withOutputLatePath(outputLatePath).withOutputTmpPath(new Path(this.tmpOutputDir)).build();
      datasets.add(dataset);
      return datasets;
    }
docs: Create a dataset using {@link #inputDir} and {@link #destDir}.
  Set dataset input path to be {@link #destDir} if {@link #recompactDatasets} is true.