parquet-hadoop/src/main/java/org/apache/parquet/hadoop/ParquetFileWriter.java
@Deprecated
  public static void writeMetadataFile(Configuration configuration, Path outputPath, List<Footer> footers, JobSummaryLevel level) throws IOException {
    Preconditions.checkArgument(level == JobSummaryLevel.ALL || level == JobSummaryLevel.COMMON_ONLY,
        "Unsupported level: " + level);

    FileSystem fs = outputPath.getFileSystem(configuration);
    outputPath = outputPath.makeQualified(fs);
    ParquetMetadata metadataFooter = mergeFooters(outputPath, footers);

    if (level == JobSummaryLevel.ALL) {
      writeMetadataFile(outputPath, metadataFooter, fs, PARQUET_METADATA_FILE);
    }

    metadataFooter.getBlocks().clear();
    writeMetadataFile(outputPath, metadataFooter, fs, PARQUET_COMMON_METADATA_FILE);
  }
@Deprecated
  public static void writeMetadataFile(Configuration configuration, Path outputPath, List<Footer> footers, JobSummaryLevel level) throws IOException {
    Preconditions.checkArgument(level == JobSummaryLevel.ALL || level == JobSummaryLevel.COMMON_ONLY,
        "Unsupported level: " + level);

    FileSystem fs = outputPath.getFileSystem(configuration);
    outputPath = outputPath.makeQualified(fs);
    ParquetMetadata metadataFooter = mergeFooters(outputPath, footers);

    if (level == JobSummaryLevel.ALL) {
      writeMetadataFile(outputPath, metadataFooter, fs, PARQUET_METADATA_FILE);
    }

    metadataFooter.getBlocks().clear();
    writeMetadataFile(outputPath, metadataFooter, fs, PARQUET_COMMON_METADATA_FILE);
  }
@ Deprecated public static void writeMetadataFile ( Configuration configuration , Path outputPath , List < Footer > footers , JobSummaryLevel level ) throws IOException { Preconditions . checkArgument ( level == JobSummaryLevel . ALL || level == JobSummaryLevel . COMMON_ONLY , "Unsupported level: " + level ) ; FileSystem fs = outputPath . getFileSystem ( configuration ) ; outputPath = outputPath . makeQualified ( fs ) ; ParquetMetadata metadataFooter = mergeFooters ( outputPath , footers ) ; if ( level == JobSummaryLevel . ALL ) { writeMetadataFile ( outputPath , metadataFooter , fs , PARQUET_METADATA_FILE ) ; } metadataFooter . getBlocks ( ) . clear ( ) ; writeMetadataFile ( outputPath , metadataFooter , fs , PARQUET_COMMON_METADATA_FILE ) ; }
writes _common_metadata file, and optionally a _metadata file depending on the {@link JobSummaryLevel} provided
@param configuration the configuration to use to get the FileSystem
@param outputPath the directory to write the _metadata file to
@param footers the list of footers to merge
@param level level of summary to write
@throws IOException if there is an error while writing
@deprecated metadata files are not recommended and will be removed in 2.0.0
writes _common_metadata file and optionally a _metadata file depending on the {