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

    Constructors
    Constructor
    Description
    ParquetBulkWriter(org.apache.parquet.hadoop.ParquetWriter<T> parquetWriter)
    Creates a new ParquetBulkWriter wrapping the given ParquetWriter.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addElement(T datum)
     
    void
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • 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 Details

    • 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