public class AvroBulkWriter<T> extends Object
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
IOExceptionpublic void flush()
throws IOException
IOExceptionpublic void finish()
throws IOException
IOExceptionCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.