public class SnappyCodec extends AircompressorCodec implements DirectDecompressionCodec
CompressionCodec.Modifier
Modifier and Type | Method and Description |
---|---|
void |
decompress(ByteBuffer in,
ByteBuffer out)
Decompress the in buffer to the out buffer.
|
void |
directDecompress(ByteBuffer in,
ByteBuffer out) |
boolean |
isAvailable() |
compress, getBuffer, modify
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compress, modify
public void decompress(ByteBuffer in, ByteBuffer out) throws IOException
CompressionCodec
decompress
in interface CompressionCodec
decompress
in class AircompressorCodec
in
- the bytes to decompressout
- the decompressed bytesIOException
public boolean isAvailable()
isAvailable
in interface DirectDecompressionCodec
public void directDecompress(ByteBuffer in, ByteBuffer out) throws IOException
directDecompress
in interface DirectDecompressionCodec
IOException
Copyright © 2013–2016 The Apache Software Foundation. All rights reserved.