public interface HoodieAvroFileWriter extends HoodieFileWriter
| Modifier and Type | Method and Description |
|---|---|
boolean |
canWrite() |
void |
close() |
default void |
prepRecordWithMetadata(HoodieKey key,
org.apache.avro.generic.IndexedRecord avroRecord,
String instantTime,
Integer partitionId,
long recordIndex,
String fileName) |
default void |
write(String recordKey,
HoodieRecord record,
org.apache.avro.Schema schema,
Properties props) |
void |
writeAvro(String recordKey,
org.apache.avro.generic.IndexedRecord record) |
void |
writeAvroWithMetadata(HoodieKey key,
org.apache.avro.generic.IndexedRecord avroRecord) |
default void |
writeWithMetadata(HoodieKey key,
HoodieRecord record,
org.apache.avro.Schema schema,
Properties props) |
write, writeWithMetadataboolean canWrite()
canWrite in interface HoodieFileWritervoid close()
throws IOException
close in interface HoodieFileWriterIOExceptionvoid writeAvroWithMetadata(HoodieKey key, org.apache.avro.generic.IndexedRecord avroRecord) throws IOException
IOExceptionvoid writeAvro(String recordKey, org.apache.avro.generic.IndexedRecord record) throws IOException
IOExceptiondefault void writeWithMetadata(HoodieKey key, HoodieRecord record, org.apache.avro.Schema schema, Properties props) throws IOException
writeWithMetadata in interface HoodieFileWriterIOExceptiondefault void write(String recordKey, HoodieRecord record, org.apache.avro.Schema schema, Properties props) throws IOException
write in interface HoodieFileWriterIOExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.