public static String baseOrDeltaSubdir(boolean baseDirRequired, long min, long max, int statementId) {
    if (!baseDirRequired) {
       return deltaSubdir(min, max, statementId);
    } else {
       return baseDir(min);
    }
  }
Return a base or delta directory string
according to the given "baseDirRequired".
ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java