public class SnappyCompressor extends NonBlockedCompressor
| Constructor and Description |
|---|
SnappyCompressor() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
compress(ByteBuffer uncompressed,
ByteBuffer compressed)
Compress the content in the given input buffer.
|
protected int |
maxCompressedLength(int byteSize)
Get the maximum byte size needed for compressing data of the given byte
size.
|
compress, end, finish, finished, getBytesRead, getBytesWritten, needsInput, reinit, reset, setDictionary, setInputprotected int maxCompressedLength(int byteSize)
NonBlockedCompressormaxCompressedLength in class NonBlockedCompressorbyteSize - byte size of the data to compressprotected int compress(ByteBuffer uncompressed, ByteBuffer compressed) throws IOException
NonBlockedCompressorcompress in class NonBlockedCompressoruncompressed - buffer[pos() ... limit()) containing the input datacompressed - output of the compressed data. Uses range [pos()..].IOExceptionCopyright © 2023 The Apache Software Foundation. All rights reserved.