Class AvroParquetWriter<T>

    • Constructor Detail

      • AvroParquetWriter

        @Deprecated
        public AvroParquetWriter​(org.apache.hadoop.fs.Path file,
                                 org.apache.avro.Schema avroSchema,
                                 CompressionCodecName compressionCodecName,
                                 int blockSize,
                                 int pageSize)
                          throws IOException
        Deprecated.
        Create a new AvroParquetWriter.
        Parameters:
        file - a file path
        avroSchema - a schema for the write
        compressionCodecName - compression codec
        blockSize - target block size
        pageSize - target page size
        Throws:
        IOException - if there is an error while writing
      • AvroParquetWriter

        @Deprecated
        public AvroParquetWriter​(org.apache.hadoop.fs.Path file,
                                 org.apache.avro.Schema avroSchema,
                                 CompressionCodecName compressionCodecName,
                                 int blockSize,
                                 int pageSize,
                                 boolean enableDictionary)
                          throws IOException
        Deprecated.
        Create a new AvroParquetWriter.
        Parameters:
        file - The file name to write to.
        avroSchema - The schema to write with.
        compressionCodecName - Compression code to use, or CompressionCodecName.UNCOMPRESSED
        blockSize - the block size threshold.
        pageSize - See parquet write up. Blocks are subdivided into pages for alignment and other purposes.
        enableDictionary - Whether to use a dictionary to compress columns.
        Throws:
        IOException - if there is an error while writing
      • AvroParquetWriter

        @Deprecated
        public AvroParquetWriter​(org.apache.hadoop.fs.Path file,
                                 org.apache.avro.Schema avroSchema)
                          throws IOException
        Deprecated.
        Create a new AvroParquetWriter. The default block size is 50 MB.The default page size is 1 MB. Default compression is no compression. (Inherited from ParquetWriter)
        Parameters:
        file - The file name to write to.
        avroSchema - The schema to write with.
        Throws:
        IOException - if there is an error while writing
      • AvroParquetWriter

        @Deprecated
        public AvroParquetWriter​(org.apache.hadoop.fs.Path file,
                                 org.apache.avro.Schema avroSchema,
                                 CompressionCodecName compressionCodecName,
                                 int blockSize,
                                 int pageSize,
                                 boolean enableDictionary,
                                 org.apache.hadoop.conf.Configuration conf)
                          throws IOException
        Deprecated.
        Create a new AvroParquetWriter.
        Parameters:
        file - The file name to write to.
        avroSchema - The schema to write with.
        compressionCodecName - Compression code to use, or CompressionCodecName.UNCOMPRESSED
        blockSize - the block size threshold.
        pageSize - See parquet write up. Blocks are subdivided into pages for alignment and other purposes.
        enableDictionary - Whether to use a dictionary to compress columns.
        conf - The Configuration to use.
        Throws:
        IOException - if there is an error while writing