public final class SnappyCompressor extends java.lang.Object implements Compressor, java.io.Serializable
Compressor for Google's Snappy compression
codec. Utilizes the java-snappy wrapper.| Constructor and Description |
|---|
SnappyCompressor()
Create a new instance of the SnappyCompressor.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
compress(byte[] input)
Compresses the input byte array.
|
byte[] |
decompress(byte[] input)
Decompresses a compressed byte array.
|
boolean |
equals(java.lang.Object other) |
static SnappyCompressor |
getDefaultInstance()
Deprecated.
As of Geode 1.0, getDefaultInstance is deprecated. Use constructor instead.
|
int |
hashCode() |
public SnappyCompressor()
public static final SnappyCompressor getDefaultInstance()
public byte[] compress(byte[] input)
Compressorcompress in interface Compressorinput - The data to be compressed.public byte[] decompress(byte[] input)
Compressordecompress in interface Compressorinput - A compressed byte array.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Object