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>
AByteBufinstance to be consumed in chunks byChunkedWriteHandler, respecting the high and low watermarks.- See Also:
- Low/High Watermarks
-
-
Constructor Summary
Constructors Constructor Description ChunkedByteBuf(org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf buf, int chunkSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanisEndOfInput()longlength()longprogress()org.apache.flink.shaded.netty4.io.netty.buffer.ByteBufreadChunk(org.apache.flink.shaded.netty4.io.netty.buffer.ByteBufAllocator byteBufAllocator)org.apache.flink.shaded.netty4.io.netty.buffer.ByteBufreadChunk(org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandlerContext ctx)StringtoString()
-
-
-
Method Detail
-
isEndOfInput
public boolean isEndOfInput() throws Exception- Specified by:
isEndOfInputin interfaceorg.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:
closein interfaceorg.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:
readChunkin interfaceorg.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:
readChunkin interfaceorg.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:
lengthin interfaceorg.apache.flink.shaded.netty4.io.netty.handler.stream.ChunkedInput<org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf>
-
progress
public long progress()
- Specified by:
progressin interfaceorg.apache.flink.shaded.netty4.io.netty.handler.stream.ChunkedInput<org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf>
-
-