public class PagedFileWriter extends BlockWriter
BlockClient.Type
Modifier and Type | Method and Description |
---|---|
void |
abort()
Abort writing.
|
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.
|
void |
commitFile()
Commit the file.
|
WritableByteChannel |
getChannel() |
long |
getPosition() |
close, toString
public void abort()
BlockWriter
abort
in class BlockWriter
public void commitFile()
BlockWriter
commitFile
in class BlockWriter
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.