Class NoCompressionBulkWriter<T>

  • Type Parameters:
    T - The type of element to write.
    All Implemented Interfaces:
    org.apache.flink.api.common.serialization.BulkWriter<T>

    public class NoCompressionBulkWriter<T>
    extends Object
    implements org.apache.flink.api.common.serialization.BulkWriter<T>
    A BulkWriter implementation that does not compress data. This is essentially a no-op writer for use with CompressWriterFactory for the case that no compression codec is specified.
    • Constructor Detail

      • NoCompressionBulkWriter

        public NoCompressionBulkWriter​(org.apache.flink.core.fs.FSDataOutputStream outputStream,
                                       Extractor<T> extractor)
    • Method Detail

      • addElement

        public void addElement​(T element)
                        throws IOException
        Specified by:
        addElement in interface org.apache.flink.api.common.serialization.BulkWriter<T>
        Throws:
        IOException
      • flush

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

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