public void setTableInfo(final TableDesc tableInfo) {
    this.tableInfo = tableInfo;
    bucketingVersion = tableInfo.getBucketingVersion();
  }
getFinalDirName that takes into account MM, but not DP, LB or buckets.
ql/src/java/org/apache/hadoop/hive/ql/plan/FileSinkDesc.java