private List<FileStatus> listFilesCreatedByQuery(Path loadPath, long writeId, int stmtId) throws HiveException {
    try {
      FileSystem srcFs = loadPath.getFileSystem(conf);
      PathFilter filter = new AcidUtils.IdFullPathFiler(writeId, stmtId, loadPath);
      return HdfsUtils.listLocatedFileStatus(srcFs, loadPath, filter, true);
    } catch (FileNotFoundException e) {
      LOG.info("directory does not exist: " + loadPath);
    } catch (IOException e) {
      LOG.error("Error listing files", e);
      throw new HiveException(e);
    }
    return Collections.EMPTY_LIST;
  }
Load Data commands for fullAcid tables write to base_x (if there is overwrite clause) or
delta_x_x directory - same as any other Acid write.  This method modifies the destPath to add
this path component.
@param writeId - write id of the operated table from current transaction (in which this operation is running)
@param stmtId - see {@link DbTxnManager#getStmtIdAndIncrement()}
@return appropriately modified path
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java