Package org.apache.flink.formats.parquet
Class ParquetBulkWriter<T>
java.lang.Object
org.apache.flink.formats.parquet.ParquetBulkWriter<T>
- Type Parameters:
T- The type of records written.
- All Implemented Interfaces:
org.apache.flink.api.common.serialization.BulkWriter<T>
@PublicEvolving
public class ParquetBulkWriter<T>
extends Object
implements org.apache.flink.api.common.serialization.BulkWriter<T>
A simple
BulkWriter implementation that wraps a ParquetWriter.-
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
ConstructorsConstructorDescriptionParquetBulkWriter(org.apache.parquet.hadoop.ParquetWriter<T> parquetWriter) Creates a new ParquetBulkWriter wrapping the given ParquetWriter. -
Method Summary
-
Constructor Details
-
ParquetBulkWriter
Creates a new ParquetBulkWriter wrapping the given ParquetWriter.- Parameters:
parquetWriter- The ParquetWriter to write to.
-
-
Method Details
-
addElement
- Specified by:
addElementin interfaceorg.apache.flink.api.common.serialization.BulkWriter<T>- Throws:
IOException
-
flush
public void flush()- Specified by:
flushin interfaceorg.apache.flink.api.common.serialization.BulkWriter<T>
-
finish
- Specified by:
finishin interfaceorg.apache.flink.api.common.serialization.BulkWriter<T>- Throws:
IOException
-