Class ChunkedByteBuf

  • All Implemented Interfaces:
    org.apache.flink.shaded.netty4.io.netty.handler.stream.ChunkedInput<org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf>

    @Internal
    public class ChunkedByteBuf
    extends Object
    implements org.apache.flink.shaded.netty4.io.netty.handler.stream.ChunkedInput<org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf>
    A ByteBuf instance to be consumed in chunks by ChunkedWriteHandler, respecting the high and low watermarks.
    See Also:
    Low/High Watermarks
    • Constructor Detail

      • ChunkedByteBuf

        public ChunkedByteBuf​(org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf buf,
                              int chunkSize)
    • Method Detail

      • isEndOfInput

        public boolean isEndOfInput()
                             throws Exception
        Specified by:
        isEndOfInput in interface org.apache.flink.shaded.netty4.io.netty.handler.stream.ChunkedInput<org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf>
        Throws:
        Exception
      • close

        public void close()
                   throws Exception
        Specified by:
        close in interface org.apache.flink.shaded.netty4.io.netty.handler.stream.ChunkedInput<org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf>
        Throws:
        Exception
      • readChunk

        public org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf readChunk​(org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandlerContext ctx)
                                                                         throws Exception
        Specified by:
        readChunk in interface org.apache.flink.shaded.netty4.io.netty.handler.stream.ChunkedInput<org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf>
        Throws:
        Exception
      • readChunk

        public org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf readChunk​(org.apache.flink.shaded.netty4.io.netty.buffer.ByteBufAllocator byteBufAllocator)
                                                                         throws Exception
        Specified by:
        readChunk in interface org.apache.flink.shaded.netty4.io.netty.handler.stream.ChunkedInput<org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf>
        Throws:
        Exception
      • length

        public long length()
        Specified by:
        length in interface org.apache.flink.shaded.netty4.io.netty.handler.stream.ChunkedInput<org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf>
      • progress

        public long progress()
        Specified by:
        progress in interface org.apache.flink.shaded.netty4.io.netty.handler.stream.ChunkedInput<org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf>