T - the type of the materialized recordspublic class ParquetRecordWriter<T> extends org.apache.hadoop.mapreduce.RecordWriter<Void,T>
ParquetOutputFormat| Constructor and Description |
|---|
ParquetRecordWriter(ParquetFileWriter w,
WriteSupport<T> writeSupport,
MessageType schema,
Map<String,String> extraMetaData,
int blockSize,
int pageSize,
CodecFactory.BytesCompressor compressor,
int dictionaryPageSize,
boolean enableDictionary,
boolean validating,
ParquetProperties.WriterVersion writerVersion)
Deprecated.
|
ParquetRecordWriter(ParquetFileWriter w,
WriteSupport<T> writeSupport,
MessageType schema,
Map<String,String> extraMetaData,
int blockSize,
int pageSize,
CompressionCodecFactory.BytesInputCompressor compressor,
int dictionaryPageSize,
boolean enableDictionary,
boolean validating,
ParquetProperties.WriterVersion writerVersion)
Deprecated.
|
ParquetRecordWriter(ParquetFileWriter w,
WriteSupport<T> writeSupport,
MessageType schema,
Map<String,String> extraMetaData,
long blockSize,
int pageSize,
CodecFactory.BytesCompressor compressor,
int dictionaryPageSize,
boolean enableDictionary,
boolean validating,
ParquetProperties.WriterVersion writerVersion,
MemoryManager memoryManager)
Deprecated.
|
ParquetRecordWriter(ParquetFileWriter w,
WriteSupport<T> writeSupport,
MessageType schema,
Map<String,String> extraMetaData,
long blockSize,
int pageSize,
CompressionCodecFactory.BytesInputCompressor compressor,
int dictionaryPageSize,
boolean enableDictionary,
boolean validating,
ParquetProperties.WriterVersion writerVersion,
MemoryManager memoryManager)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close(org.apache.hadoop.mapreduce.TaskAttemptContext context) |
void |
write(Void key,
T value) |
@Deprecated public ParquetRecordWriter(ParquetFileWriter w, WriteSupport<T> writeSupport, MessageType schema, Map<String,String> extraMetaData, int blockSize, int pageSize, CodecFactory.BytesCompressor compressor, int dictionaryPageSize, boolean enableDictionary, boolean validating, ParquetProperties.WriterVersion writerVersion)
@Deprecated public ParquetRecordWriter(ParquetFileWriter w, WriteSupport<T> writeSupport, MessageType schema, Map<String,String> extraMetaData, int blockSize, int pageSize, CompressionCodecFactory.BytesInputCompressor compressor, int dictionaryPageSize, boolean enableDictionary, boolean validating, ParquetProperties.WriterVersion writerVersion)
w - the file to write towriteSupport - the class to convert incoming recordsschema - the schema of the recordsextraMetaData - extra meta data to write in the footer of the fileblockSize - 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 pagesdictionaryPageSize - the threshold for dictionary sizeenableDictionary - to enable the dictionaryvalidating - if schema validation should be turned onwriterVersion - writer compatibility version@Deprecated public ParquetRecordWriter(ParquetFileWriter w, WriteSupport<T> writeSupport, MessageType schema, Map<String,String> extraMetaData, long blockSize, int pageSize, CodecFactory.BytesCompressor compressor, int dictionaryPageSize, boolean enableDictionary, boolean validating, ParquetProperties.WriterVersion writerVersion, MemoryManager memoryManager)
@Deprecated public ParquetRecordWriter(ParquetFileWriter w, WriteSupport<T> writeSupport, MessageType schema, Map<String,String> extraMetaData, long blockSize, int pageSize, CompressionCodecFactory.BytesInputCompressor compressor, int dictionaryPageSize, boolean enableDictionary, boolean validating, ParquetProperties.WriterVersion writerVersion, MemoryManager memoryManager)
w - the file to write towriteSupport - the class to convert incoming recordsschema - the schema of the recordsextraMetaData - extra meta data to write in the footer of the fileblockSize - 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 pagesdictionaryPageSize - the threshold for dictionary sizeenableDictionary - to enable the dictionaryvalidating - if schema validation should be turned onwriterVersion - writer compatibility versionmemoryManager - memory manager for the writepublic void close(org.apache.hadoop.mapreduce.TaskAttemptContext context)
throws IOException,
InterruptedException
close in class org.apache.hadoop.mapreduce.RecordWriter<Void,T>IOExceptionInterruptedExceptionpublic void write(Void key, T value) throws IOException, InterruptedException
write in class org.apache.hadoop.mapreduce.RecordWriter<Void,T>IOExceptionInterruptedExceptionCopyright © 2023 The Apache Software Foundation. All rights reserved.