Class 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 Detail

      • AbstractChannelWriterOutputView

        public AbstractChannelWriterOutputView​(int segmentSize,
                                               int headerLength)
    • Method Detail

      • 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.
      • getNumCompressedBytes

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