public class HoodieParquetStreamWriter extends Object implements HoodieAvroFileWriter, AutoCloseable
TODO(HUDI-3035) unify w/ HoodieParquetWriter.
| Constructor and Description |
|---|
HoodieParquetStreamWriter(org.apache.hadoop.fs.FSDataOutputStream outputStream,
HoodieParquetConfig<HoodieAvroWriteSupport> parquetConfig) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canWrite() |
void |
close() |
void |
writeAvro(String key,
org.apache.avro.generic.IndexedRecord record) |
void |
writeAvroWithMetadata(HoodieKey key,
org.apache.avro.generic.IndexedRecord avroRecord) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprepRecordWithMetadata, write, writeWithMetadatawrite, writeWithMetadatapublic HoodieParquetStreamWriter(org.apache.hadoop.fs.FSDataOutputStream outputStream,
HoodieParquetConfig<HoodieAvroWriteSupport> parquetConfig)
throws IOException
IOExceptionpublic boolean canWrite()
canWrite in interface HoodieAvroFileWritercanWrite in interface HoodieFileWriterpublic void writeAvro(String key, org.apache.avro.generic.IndexedRecord record) throws IOException
writeAvro in interface HoodieAvroFileWriterIOExceptionpublic void writeAvroWithMetadata(HoodieKey key, org.apache.avro.generic.IndexedRecord avroRecord) throws IOException
writeAvroWithMetadata in interface HoodieAvroFileWriterIOExceptionpublic void close()
throws IOException
close in interface AutoCloseableclose in interface HoodieAvroFileWriterclose in interface HoodieFileWriterIOExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.