Class RowWisePartWriter<IN,BucketID>

All Implemented Interfaces:
CompactingFileWriter, InProgressFileWriter<IN,BucketID>, OutputStreamBasedCompactingFileWriter, PartFileInfo<BucketID>, RecordWiseCompactingFileWriter<IN>

@Internal public final class RowWisePartWriter<IN,BucketID> extends OutputStreamBasedPartFileWriter<IN,BucketID>
A InProgressFileWriter for row-wise formats that use an Encoder. This also implements the PartFileInfo and the OutputStreamBasedCompactingFileWriter.
  • Constructor Details

    • RowWisePartWriter

      public RowWisePartWriter(BucketID bucketId, org.apache.flink.core.fs.Path path, org.apache.flink.core.fs.RecoverableFsDataOutputStream currentPartStream, org.apache.flink.api.common.serialization.Encoder<IN> encoder, long creationTime)
  • Method Details

    • write

      public void write(IN element, long currentTime) throws IOException
      Description copied from interface: InProgressFileWriter
      Write an element to the part file.
      Parameters:
      element - the element to be written.
      currentTime - the writing time.
      Throws:
      IOException - Thrown if writing the element fails.