public class HoodieParquetWriter<T extends HoodieRecordPayload,R extends org.apache.avro.generic.IndexedRecord> extends org.apache.parquet.hadoop.ParquetWriter<org.apache.avro.generic.IndexedRecord> implements HoodieFileWriter<R>
canWrite()| Constructor and Description |
|---|
HoodieParquetWriter(String instantTime,
org.apache.hadoop.fs.Path file,
HoodieAvroParquetConfig parquetConfig,
org.apache.avro.Schema schema,
TaskContextSupplier taskContextSupplier,
boolean populateMetaFields) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canWrite() |
void |
writeAvro(String key,
org.apache.avro.generic.IndexedRecord object) |
void |
writeAvroWithMetadata(HoodieKey key,
R avroRecord) |
close, getDataSize, getFooter, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, prepRecordWithMetadatapublic HoodieParquetWriter(String instantTime, org.apache.hadoop.fs.Path file, HoodieAvroParquetConfig parquetConfig, org.apache.avro.Schema schema, TaskContextSupplier taskContextSupplier, boolean populateMetaFields) throws IOException
IOExceptionpublic void writeAvroWithMetadata(HoodieKey key, R avroRecord) throws IOException
writeAvroWithMetadata in interface HoodieFileWriter<R extends org.apache.avro.generic.IndexedRecord>IOExceptionpublic boolean canWrite()
canWrite in interface HoodieFileWriter<R extends org.apache.avro.generic.IndexedRecord>public void writeAvro(String key, org.apache.avro.generic.IndexedRecord object) throws IOException
writeAvro in interface HoodieFileWriter<R extends org.apache.avro.generic.IndexedRecord>IOExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.