Class 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.
    • 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:
        addElement in interface org.apache.flink.api.common.serialization.BulkWriter<T>
        Throws:
        IOException
      • flush

        public void flush()
        Specified by:
        flush in interface org.apache.flink.api.common.serialization.BulkWriter<T>
      • finish

        public void finish()
                    throws IOException
        Specified by:
        finish in interface org.apache.flink.api.common.serialization.BulkWriter<T>
        Throws:
        IOException