Class AbstractChannelWriterOutputView

java.lang.Object
org.apache.flink.runtime.memory.AbstractPagedOutputView
org.apache.flink.runtime.io.disk.iomanager.AbstractChannelWriterOutputView
All Implemented Interfaces:
DataOutput, org.apache.flink.core.memory.DataOutputView, org.apache.flink.core.memory.MemorySegmentWritable

public abstract class AbstractChannelWriterOutputView extends AbstractPagedOutputView
A DataOutputView that is backed by a FileIOChannel, making it effectively a data output stream. The view writes it data in blocks to the underlying channel.
  • Constructor Details

    • AbstractChannelWriterOutputView

      public AbstractChannelWriterOutputView(int segmentSize, int headerLength)
  • Method Details

    • getChannel

      public abstract FileIOChannel getChannel()
      Get the underlying channel.
    • close

      public abstract int close() throws IOException
      Closes this OutputView, closing the underlying writer
      Returns:
      the number of bytes in last memory segment.
      Throws:
      IOException
    • getBlockCount

      public abstract int getBlockCount()
      Gets the number of blocks used by this view.
    • getNumBytes

      public abstract long getNumBytes() throws IOException
      Get output bytes.
      Throws:
      IOException
    • getNumCompressedBytes

      public abstract long getNumCompressedBytes() throws IOException
      Get output compressed bytes, return num bytes if there is no compression.
      Throws:
      IOException