public class AvroBulkWriter<T> extends Object implements org.apache.flink.api.common.serialization.BulkWriter<T>
BulkWriter implementation that wraps an Avro DataFileWriter.| 构造器和说明 |
|---|
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 在接口中 org.apache.flink.api.common.serialization.BulkWriter<T>IOExceptionpublic void flush()
throws IOException
flush 在接口中 org.apache.flink.api.common.serialization.BulkWriter<T>IOExceptionpublic void finish()
throws IOException
finish 在接口中 org.apache.flink.api.common.serialization.BulkWriter<T>IOExceptionCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.