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 simpleBulkWriterimplementation that wraps aParquetWriter.
-
-
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
Constructors Constructor Description ParquetBulkWriter(org.apache.parquet.hadoop.ParquetWriter<T> parquetWriter)Creates a new ParquetBulkWriter wrapping the given ParquetWriter.
-
-
-
Constructor Detail
-
ParquetBulkWriter
public ParquetBulkWriter(org.apache.parquet.hadoop.ParquetWriter<T> parquetWriter)
Creates a new ParquetBulkWriter wrapping the given ParquetWriter.- Parameters:
parquetWriter- The ParquetWriter to write to.
-
-
Method Detail
-
addElement
public void addElement(T datum) throws IOException
- 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
public void finish() throws IOException- Specified by:
finishin interfaceorg.apache.flink.api.common.serialization.BulkWriter<T>- Throws:
IOException
-
-