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.| 构造器和说明 |
|---|
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 在接口中 org.apache.flink.api.common.serialization.BulkWriter<T>IOExceptionpublic void flush()
flush 在接口中 org.apache.flink.api.common.serialization.BulkWriter<T>public void finish()
throws IOException
finish 在接口中 org.apache.flink.api.common.serialization.BulkWriter<T>IOExceptionCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.