关于不推荐使用的方法parquetfilereader.readfooter

h7wcgrx3  于 2021-05-27  发布在  Hadoop
关注(0)|答案(1)|浏览(375)

我懂了 ParquetFileReader.readFooter 在中被弃用 parquet-hadoop-1.11.0.jar . 应该使用哪个类或哪个方法

jw5wzhpr

jw5wzhpr1#

根据代码注解,应该使用 ParquetFileReader#open(InputFile, ParquetReadOptions) .

/**
   * Reads the meta data block in the footer of the file
   * @param configuration a configuration
   * @param file the parquet File
   * @return the metadata blocks in the footer
   * @throws IOException if an error occurs while reading the file
   * @deprecated will be removed in 2.0.0;
   *             use {@link ParquetFileReader#open(InputFile, ParquetReadOptions)}
   */
  @Deprecated
  public static final ParquetMetadata readFooter(Configuration configuration, Path file) throws IOException {

相关问题