T - The type of records written.@PublicEvolving public class ParquetBulkWriter<T> extends Object implements org.apache.flink.api.common.serialization.BulkWriter<T>
BulkWriter implementation that wraps a ParquetWriter.| Constructor and Description |
|---|
ParquetBulkWriter(org.apache.parquet.hadoop.ParquetWriter<T> parquetWriter)
Creates a new ParquetBulkWriter wrapping the given ParquetWriter.
|
public ParquetBulkWriter(org.apache.parquet.hadoop.ParquetWriter<T> parquetWriter)
parquetWriter - The ParquetWriter to write to.public void addElement(T datum) throws IOException
addElement in interface org.apache.flink.api.common.serialization.BulkWriter<T>IOExceptionpublic void flush()
flush in interface org.apache.flink.api.common.serialization.BulkWriter<T>public void finish()
throws IOException
finish in interface org.apache.flink.api.common.serialization.BulkWriter<T>IOExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.