public ReplicationTask withTableNameMapping(Function<String,String> tableNameMapping){
    this.tableNameMapping = tableNameMapping;
    return this;
  }
Allows a user to specify a table name mapping, where the the function provided maps the name of
the table in the source warehouse to the name of the table in the dest warehouse. It is expected
that if the mapping does not exist, it should return the same name sent in. Or, if the function
throws an IllegalArgumentException as well, a ReplicationTask will use the same key sent in.
That way, the default will then be that the destination db name is the same as the src db name

If you want to use a Map&lt;String,String&gt; mapping instead of a Function&lt;String,String&gt;,
simply call this function as .withTableNameMapping(ReplicationUtils.mapBasedFunction(tableMap))
@param tableNameMapping
@return this replication task
hcatalog/webhcat/java-client/src/main/java/org/apache/hive/hcatalog/api/repl/ReplicationTask.java