public class HoodieOrcWriter<T extends HoodieRecordPayload,R extends org.apache.avro.generic.IndexedRecord> extends Object implements HoodieFileWriter<R>, Closeable
| Constructor and Description |
|---|
HoodieOrcWriter(String instantTime,
org.apache.hadoop.fs.Path 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,
R avroRecord) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprepRecordWithMetadatapublic HoodieOrcWriter(String instantTime, org.apache.hadoop.fs.Path file, HoodieOrcConfig config, org.apache.avro.Schema schema, TaskContextSupplier taskContextSupplier) 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 recordKey, org.apache.avro.generic.IndexedRecord object) throws IOException
writeAvro in interface HoodieFileWriter<R extends org.apache.avro.generic.IndexedRecord>IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface HoodieFileWriter<R extends org.apache.avro.generic.IndexedRecord>IOExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.