public void setCheckDuplicateCopy(boolean flag) {
    checkDuplicateCopy = flag;
  }
TODO : Refactor

There is an upcoming patch that refactors this bit of code. Currently, the idea is the following:

By default, ReplCopyWork will behave similarly to CopyWork, and simply copy
along data from the source to destination.
If the flag readSrcAsFilesList is set, changes the source behaviour of this CopyTask, and
instead of copying explicit files, this will then fall back to a behaviour wherein an _files is
read from the source, and the files specified by the _files are then copied to the destination.

This allows us a lazy-copy-on-source and a pull-from destination semantic that we want
to use from replication.
ql/src/java/org/apache/hadoop/hive/ql/plan/ReplCopyWork.java