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)
Compressor
compress
in interface Compressor
input
- The data to be compressed.public byte[] decompress(byte[] input)
Compressor
decompress
in interface Compressor
input
- A compressed byte array.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object