private String encodedSubDir(String encodedParentDirs, Path subDir) {
    if (null == encodedParentDirs) {
      return subDir.getName();
    } else {
      return encodedParentDirs + Path.SEPARATOR + subDir.getName();
    }
  }
This needs the root data directory to which the data needs to be exported to.
The data export here is a list of files either in table/partition that are written to the _files
in the exportRootDataDir provided.
ql/src/java/org/apache/hadoop/hive/ql/parse/repl/dump/io/FileOperations.java