Class ParquetRecordWriter<T>

java.lang.Object
org.apache.hadoop.mapreduce.RecordWriter<Void,T>
org.apache.parquet.hadoop.ParquetRecordWriter<T>
Type Parameters:
T - the type of the materialized records

public class ParquetRecordWriter<T> extends org.apache.hadoop.mapreduce.RecordWriter<Void,T>
Writes records to a Parquet file
See Also:
  • Constructor Details

    • ParquetRecordWriter

      @Deprecated public ParquetRecordWriter(ParquetFileWriter w, WriteSupport<T> writeSupport, org.apache.parquet.schema.MessageType schema, Map<String,String> extraMetaData, int blockSize, int pageSize, CodecFactory.BytesCompressor compressor, int dictionaryPageSize, boolean enableDictionary, boolean validating, org.apache.parquet.column.ParquetProperties.WriterVersion writerVersion)
      Deprecated.
    • ParquetRecordWriter

      @Deprecated public ParquetRecordWriter(ParquetFileWriter w, WriteSupport<T> writeSupport, org.apache.parquet.schema.MessageType schema, Map<String,String> extraMetaData, int blockSize, int pageSize, org.apache.parquet.compression.CompressionCodecFactory.BytesInputCompressor compressor, int dictionaryPageSize, boolean enableDictionary, boolean validating, org.apache.parquet.column.ParquetProperties.WriterVersion writerVersion)
      Deprecated.
      Parameters:
      w - the file to write to
      writeSupport - the class to convert incoming records
      schema - the schema of the records
      extraMetaData - extra meta data to write in the footer of the file
      blockSize - the size of a block in the file (this will be approximate)
      pageSize - the size of a page in the file (this will be approximate)
      compressor - the compressor used to compress the pages
      dictionaryPageSize - the threshold for dictionary size
      enableDictionary - to enable the dictionary
      validating - if schema validation should be turned on
      writerVersion - writer compatibility version
    • ParquetRecordWriter

      @Deprecated public ParquetRecordWriter(ParquetFileWriter w, WriteSupport<T> writeSupport, org.apache.parquet.schema.MessageType schema, Map<String,String> extraMetaData, long blockSize, int pageSize, CodecFactory.BytesCompressor compressor, int dictionaryPageSize, boolean enableDictionary, boolean validating, org.apache.parquet.column.ParquetProperties.WriterVersion writerVersion, MemoryManager memoryManager)
      Deprecated.
    • ParquetRecordWriter

      @Deprecated public ParquetRecordWriter(ParquetFileWriter w, WriteSupport<T> writeSupport, org.apache.parquet.schema.MessageType schema, Map<String,String> extraMetaData, long blockSize, int pageSize, org.apache.parquet.compression.CompressionCodecFactory.BytesInputCompressor compressor, int dictionaryPageSize, boolean enableDictionary, boolean validating, org.apache.parquet.column.ParquetProperties.WriterVersion writerVersion, MemoryManager memoryManager)
      Deprecated.
      Parameters:
      w - the file to write to
      writeSupport - the class to convert incoming records
      schema - the schema of the records
      extraMetaData - extra meta data to write in the footer of the file
      blockSize - the size of a block in the file (this will be approximate)
      pageSize - the size of a page in the file (this will be approximate)
      compressor - the compressor used to compress the pages
      dictionaryPageSize - the threshold for dictionary size
      enableDictionary - to enable the dictionary
      validating - if schema validation should be turned on
      writerVersion - writer compatibility version
      memoryManager - memory manager for the write
  • Method Details