Package org.apache.flink.formats.avro
Class AvroWriterFactory<T>
java.lang.Object
org.apache.flink.formats.avro.AvroWriterFactory<T>
- Type Parameters:
T- The type of record to write.
- All Implemented Interfaces:
Serializable,org.apache.flink.api.common.serialization.BulkWriter.Factory<T>
public class AvroWriterFactory<T>
extends Object
implements org.apache.flink.api.common.serialization.BulkWriter.Factory<T>
A factory that creates an
AvroBulkWriter. The factory takes a user-supplied builder to
assemble Parquet's writer and then turns it into a Flink BulkWriter.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAvroWriterFactory(AvroBuilder<T> avroBuilder) Creates a new AvroWriterFactory using the given builder to assemble the ParquetWriter. -
Method Summary
-
Constructor Details
-
AvroWriterFactory
Creates a new AvroWriterFactory using the given builder to assemble the ParquetWriter.
-
-
Method Details
-
create
public org.apache.flink.api.common.serialization.BulkWriter<T> create(org.apache.flink.core.fs.FSDataOutputStream out) throws IOException - Specified by:
createin interfaceorg.apache.flink.api.common.serialization.BulkWriter.Factory<T>- Throws:
IOException
-