public class HoodieAvroOrcWriter extends Object implements HoodieAvroFileWriter, Closeable
| Constructor and Description |
|---|
HoodieAvroOrcWriter(String instantTime,
StoragePath file,
HoodieOrcConfig config,
org.apache.avro.Schema schema,
TaskContextSupplier taskContextSupplier) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canWrite() |
void |
close() |
void |
writeAvro(String recordKey,
org.apache.avro.generic.IndexedRecord object) |
void |
writeAvroWithMetadata(HoodieKey key,
org.apache.avro.generic.IndexedRecord avroRecord) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprepRecordWithMetadata, write, writeWithMetadatawrite, writeWithMetadatapublic HoodieAvroOrcWriter(String instantTime, StoragePath file, HoodieOrcConfig config, org.apache.avro.Schema schema, TaskContextSupplier taskContextSupplier) throws IOException
IOExceptionpublic void writeAvroWithMetadata(HoodieKey key, org.apache.avro.generic.IndexedRecord avroRecord) throws IOException
writeAvroWithMetadata in interface HoodieAvroFileWriterIOExceptionpublic boolean canWrite()
canWrite in interface HoodieAvroFileWritercanWrite in interface HoodieFileWriterpublic void writeAvro(String recordKey, 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 HoodieFileWriterIOExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.