public class AvroBulkWriter<T> extends Object implements org.apache.flink.api.common.serialization.BulkWriter<T>
BulkWriter implementation that wraps an Avro DataFileWriter.| Constructor and Description |
|---|
AvroBulkWriter(org.apache.avro.file.DataFileWriter<T> dataFileWriter)
Create a new AvroBulkWriter wrapping the given Avro
DataFileWriter. |
public AvroBulkWriter(org.apache.avro.file.DataFileWriter<T> dataFileWriter)
DataFileWriter.dataFileWriter - The underlying Avro writer.public void addElement(T element) throws IOException
addElement in interface org.apache.flink.api.common.serialization.BulkWriter<T>IOExceptionpublic void flush()
throws IOException
flush in interface org.apache.flink.api.common.serialization.BulkWriter<T>IOExceptionpublic void finish()
throws IOException
finish in interface org.apache.flink.api.common.serialization.BulkWriter<T>IOExceptionCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.