public class BlockCompressedPayloadBuffer extends Object implements Closeable
| Constructor and Description |
|---|
BlockCompressedPayloadBuffer(ByteBuffer currentBlock,
ByteBuffer compressedByteBuffer,
BlockIndexWriter blockIndexWriter,
WriteOutBytes dataOutBytes,
Closer closer,
CompressionStrategy.Compressor compressor) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
BlockCompressedPayloadSerializer |
closeToSerializer() |
void |
write(byte[] payload) |
void |
write(ByteBuffer masterPayload) |
public BlockCompressedPayloadBuffer(ByteBuffer currentBlock, ByteBuffer compressedByteBuffer, BlockIndexWriter blockIndexWriter, WriteOutBytes dataOutBytes, Closer closer, CompressionStrategy.Compressor compressor)
public void write(byte[] payload)
throws IOException
IOExceptionpublic void write(ByteBuffer masterPayload) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic BlockCompressedPayloadSerializer closeToSerializer() throws IOException
IOExceptionCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.