Class ChunkedByteBuf

java.lang.Object
org.apache.flink.queryablestate.network.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:
  • Constructor Summary

    Constructors
    Constructor
    Description
    ChunkedByteBuf(org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf buf, int chunkSize)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    boolean
     
    long
     
    long
     
    org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf
    readChunk(org.apache.flink.shaded.netty4.io.netty.buffer.ByteBufAllocator byteBufAllocator)
     
    org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf
    readChunk(org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandlerContext ctx)
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ChunkedByteBuf

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

    • 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>
    • toString

      public String toString()
      Overrides:
      toString in class Object