public class PagedBlockWriter extends BlockWriter
BlockClient.Type
Modifier and Type | Method and Description |
---|---|
long |
append(io.netty.buffer.ByteBuf buf)
Appends buf.readableBytes() bytes to the end of this block writer from the given buf.
|
long |
append(ByteBuffer inputBuf)
Appends data to the end of a block from an input
ByteBuffer . |
long |
append(DataBuffer buffer)
Appends buffer.readableBytes() bytes to the end of this block writer from the given buffer.
|
WritableByteChannel |
getChannel() |
long |
getPosition() |
close, toString
public long append(ByteBuffer inputBuf)
BlockWriter
ByteBuffer
.append
in class BlockWriter
inputBuf
- ByteBuffer
that input data is stored inpublic long append(io.netty.buffer.ByteBuf buf) throws IOException
BlockWriter
append
in class BlockWriter
buf
- the byte buffer that holds the dataIOException
public long append(DataBuffer buffer) throws IOException
BlockWriter
append
in class BlockWriter
buffer
- the byte buffer that holds the dataIOException
public long getPosition()
getPosition
in class BlockWriter
public WritableByteChannel getChannel()
getChannel
in class BlockWriter
Copyright © 2023. All Rights Reserved.