VMware GemFire Java API Reference
Package org.apache.geode.compression
Class SnappyCompressor
java.lang.Object
org.apache.geode.compression.SnappyCompressor
- All Implemented Interfaces:
Serializable,Compressor
Deprecated.
An implementation of
Compressor for Google's Snappy compression codec. Utilizes the
java-snappy wrapper.- Since:
- GemFire 8.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]compress(byte[] input) Deprecated.Compresses the input byte array.byte[]decompress(byte[] input) Deprecated.Decompresses a compressed byte array.booleanDeprecated.static SnappyCompressorDeprecated.As of Geode 1.0, getDefaultInstance is deprecated.inthashCode()Deprecated.
-
Constructor Details
-
SnappyCompressor
Deprecated.since GemFire 10.3. UseLz4Compressorinstead.Create a new instance of the SnappyCompressor.
-
-
Method Details
-
getDefaultInstance
Deprecated.As of Geode 1.0, getDefaultInstance is deprecated. Use constructor instead.Get the single, default instance of the SnappyCompressor.- Returns:
- the single, default instance of the SnappyCompressor
-
compress
public byte[] compress(byte[] input) Deprecated.Description copied from interface:CompressorCompresses the input byte array.- Specified by:
compressin interfaceCompressor- Parameters:
input- The data to be compressed.- Returns:
- A compressed version of the input parameter.
-
decompress
public byte[] decompress(byte[] input) Deprecated.Description copied from interface:CompressorDecompresses a compressed byte array.- Specified by:
decompressin interfaceCompressor- Parameters:
input- A compressed byte array.- Returns:
- an uncompressed version of compressed input byte array data.
-
hashCode
public int hashCode()Deprecated. -
equals
Deprecated.
-
Lz4Compressorinstead.