public static Path createFilename(Path directory,
                                    AcidOutputFormat.Options options) {
    if (options.getOldStyle()) {
      return new Path(directory, String.format(LEGACY_FILE_BUCKET_DIGITS,
          options.getBucketId()) + "_0");
    } else {
      return createBucketFile(baseOrDeltaSubdirPath(directory, options), options.getBucketId(), options.getAttemptId());
    }
  }
Create a filename for a bucket file.
@param directory the partition directory
@param options the options for writing the bucket
@return the filename that should store the bucket
ql/src/java/org/apache/hadoop/hive/ql/io/AcidUtils.java