Package org.apache.flink.formats.avro
Class AvroBulkWriter<T>
java.lang.Object
org.apache.flink.formats.avro.AvroBulkWriter<T>
- All Implemented Interfaces:
org.apache.flink.api.common.serialization.BulkWriter<T>
public class AvroBulkWriter<T>
extends Object
implements org.apache.flink.api.common.serialization.BulkWriter<T>
A simple
BulkWriter implementation that wraps an Avro DataFileWriter.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.flink.api.common.serialization.BulkWriter
org.apache.flink.api.common.serialization.BulkWriter.Factory<T extends Object> -
Constructor Summary
ConstructorsConstructorDescriptionAvroBulkWriter(org.apache.avro.file.DataFileWriter<T> dataFileWriter) Create a new AvroBulkWriter wrapping the given AvroDataFileWriter. -
Method Summary
-
Constructor Details
-
AvroBulkWriter
Create a new AvroBulkWriter wrapping the given AvroDataFileWriter.- Parameters:
dataFileWriter- The underlying Avro writer.
-
-
Method Details
-
addElement
- Specified by:
addElementin interfaceorg.apache.flink.api.common.serialization.BulkWriter<T>- Throws:
IOException
-
flush
- Specified by:
flushin interfaceorg.apache.flink.api.common.serialization.BulkWriter<T>- Throws:
IOException
-
finish
- Specified by:
finishin interfaceorg.apache.flink.api.common.serialization.BulkWriter<T>- Throws:
IOException
-