@NotThreadSafe public class HoodieAvroParquetWriter extends HoodieBaseParquetWriter<org.apache.avro.generic.IndexedRecord> implements HoodieAvroFileWriter
canWrite()
ATTENTION: HoodieParquetWriter is not thread safe and developer should take care of the order of write and closeBLOOM_FILTER_ENABLED, BLOOM_FILTER_EXPECTED_NDV| Constructor and Description |
|---|
HoodieAvroParquetWriter(StoragePath file,
HoodieParquetConfig<HoodieAvroWriteSupport> parquetConfig,
String instantTime,
TaskContextSupplier taskContextSupplier,
boolean populateMetaFields) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
writeAvro(String key,
org.apache.avro.generic.IndexedRecord object) |
void |
writeAvroWithMetadata(HoodieKey key,
org.apache.avro.generic.IndexedRecord avroRecord) |
canWrite, getDataSize, getRecordCountForNextSizeCheck, getWrittenRecordCount, handleParquetBloomFilters, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanWrite, prepRecordWithMetadata, write, writeWithMetadatawrite, writeWithMetadatapublic HoodieAvroParquetWriter(StoragePath file, HoodieParquetConfig<HoodieAvroWriteSupport> parquetConfig, String instantTime, TaskContextSupplier taskContextSupplier, boolean populateMetaFields) throws IOException
IOExceptionpublic void writeAvroWithMetadata(HoodieKey key, org.apache.avro.generic.IndexedRecord avroRecord) throws IOException
writeAvroWithMetadata in interface HoodieAvroFileWriterIOExceptionpublic void writeAvro(String key, org.apache.avro.generic.IndexedRecord object) throws IOException
writeAvro in interface HoodieAvroFileWriterIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface HoodieAvroFileWriterclose in interface HoodieFileWriterclose in class HoodieBaseParquetWriter<org.apache.avro.generic.IndexedRecord>IOExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.