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