public class HoodieHFileWriter<T extends HoodieRecordPayload,R extends org.apache.avro.generic.IndexedRecord> extends Object implements HoodieFileWriter<R>
| Constructor and Description |
|---|
HoodieHFileWriter(String instantTime,
org.apache.hadoop.fs.Path file,
HoodieHFileConfig hfileConfig,
org.apache.avro.Schema schema,
TaskContextSupplier taskContextSupplier,
boolean populateMetaFields) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canWrite() |
void |
close() |
void |
writeAvro(String recordKey,
org.apache.avro.generic.IndexedRecord record) |
void |
writeAvroWithMetadata(HoodieKey key,
R avroRecord) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprepRecordWithMetadatapublic HoodieHFileWriter(String instantTime, org.apache.hadoop.fs.Path file, HoodieHFileConfig hfileConfig, 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 recordKey, org.apache.avro.generic.IndexedRecord record) throws IOException
writeAvro in interface HoodieFileWriter<R extends org.apache.avro.generic.IndexedRecord>IOExceptionpublic void close()
throws IOException
close in interface HoodieFileWriter<R extends org.apache.avro.generic.IndexedRecord>IOExceptionCopyright © 2022 The Apache Software Foundation. All rights reserved.