public class SnappyCodec extends Codec
| Modifier and Type | Method and Description | 
|---|---|
ByteBuffer | 
compress(ByteBuffer in)
Compresses the input data 
 | 
ByteBuffer | 
decompress(ByteBuffer in)
Decompress the data 
 | 
boolean | 
equals(Object obj)
Codecs must implement an equals() method. 
 | 
String | 
getName()
Name of the codec; written to the file's metadata. 
 | 
int | 
hashCode()
Codecs must implement a hashCode() method that is consistent with equals(). 
 | 
computeOffset, toStringpublic String getName()
Codecpublic ByteBuffer compress(ByteBuffer in) throws IOException
Codeccompress in class CodecIOExceptionpublic ByteBuffer decompress(ByteBuffer in) throws IOException
Codecdecompress in class CodecIOExceptionpublic int hashCode()
Codecpublic boolean equals(Object obj)
CodecCopyright © 2009–2019 The Apache Software Foundation. All rights reserved.