You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@parquet.apache.org by fo...@apache.org on 2020/05/07 15:58:51 UTC

[parquet-mr] branch master updated: PARQUET-1775: Deprecate AvroParquetWriter Builder Hadoop Path (#750)

This is an automated email from the ASF dual-hosted git repository.

fokko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/parquet-mr.git


The following commit(s) were added to refs/heads/master by this push:
     new c6c553b  PARQUET-1775: Deprecate AvroParquetWriter Builder Hadoop Path (#750)
c6c553b is described below

commit c6c553b412ac2fb9ad641803e918ddf5220cc757
Author: belugabehr <12...@users.noreply.github.com>
AuthorDate: Thu May 7 11:58:41 2020 -0400

    PARQUET-1775: Deprecate AvroParquetWriter Builder Hadoop Path (#750)
    
    Co-authored-by: David Mollitor <dm...@apache.org>
---
 .../src/main/java/org/apache/parquet/avro/AvroParquetWriter.java  | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/parquet-avro/src/main/java/org/apache/parquet/avro/AvroParquetWriter.java b/parquet-avro/src/main/java/org/apache/parquet/avro/AvroParquetWriter.java
index 4ef820e..faaf580 100644
--- a/parquet-avro/src/main/java/org/apache/parquet/avro/AvroParquetWriter.java
+++ b/parquet-avro/src/main/java/org/apache/parquet/avro/AvroParquetWriter.java
@@ -35,6 +35,14 @@ import org.apache.parquet.io.OutputFile;
  */
 public class AvroParquetWriter<T> extends ParquetWriter<T> {
 
+
+  /**
+   * @param file a file path
+   * @param <T> the Java type of records to read from the file
+   * @return an Avro reader builder
+   * @deprecated will be removed in 2.0.0; use {@link #builder(OutputFile)} instead.
+   */
+  @Deprecated
   public static <T> Builder<T> builder(Path file) {
     return new Builder<T>(file);
   }