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
ConstructorsConstructorDescriptionChunkedByteBuf(org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf buf, int chunkSize) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanlonglength()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) toString()
-
Constructor Details
-
ChunkedByteBuf
public ChunkedByteBuf(org.apache.flink.shaded.netty4.io.netty.buffer.ByteBuf buf, int chunkSize)
-
-
Method Details
-
isEndOfInput
- 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
- 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>
-
toString
-