public class SnappyCodec extends AircompressorCodec implements DirectDecompressionCodec
CompressionCodec.DataKind, CompressionCodec.Options, CompressionCodec.SpeedModifier| Modifier and Type | Method and Description |
|---|---|
void |
decompress(ByteBuffer in,
ByteBuffer out)
Decompress the in buffer to the out buffer.
|
void |
destroy()
Closes the codec, releasing the resources.
|
void |
directDecompress(ByteBuffer in,
ByteBuffer out) |
boolean |
isAvailable() |
void |
reset()
Resets the codec, preparing it for reuse.
|
close, compress, getBuffer, getDefaultOptions, getKindclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, compress, getDefaultOptions, getKindpublic void decompress(ByteBuffer in, ByteBuffer out) throws IOException
CompressionCodecdecompress in interface CompressionCodecdecompress in class AircompressorCodecin - the bytes to decompressout - the decompressed bytesIOExceptionpublic boolean isAvailable()
isAvailable in interface DirectDecompressionCodecpublic void directDecompress(ByteBuffer in, ByteBuffer out) throws IOException
directDecompress in interface DirectDecompressionCodecIOExceptionpublic void reset()
CompressionCodecreset in interface CompressionCodecreset in class AircompressorCodecpublic void destroy()
CompressionCodecdestroy in interface CompressionCodecdestroy in class AircompressorCodecCopyright © 2013–2023 The Apache Software Foundation. All rights reserved.