voldemort.store.compress
Class SnappyCompressionStrategy
java.lang.Object
voldemort.store.compress.StreamCompressionStrategy
voldemort.store.compress.SnappyCompressionStrategy
- All Implemented Interfaces:
- CompressionStrategy
@Experimental
public class SnappyCompressionStrategy
- extends StreamCompressionStrategy
Implementation of CompressionStrategy for the Snappy format. Snappy is optimized
for speed.
TODO Use block encoding instead of streams for better performance, see:
https://github.com/dain/snappy/issues/4. Also be aware that the stream format may not be finalised
yet.
Method Summary |
java.lang.String |
getType()
The type of compression performed. |
protected java.io.InputStream |
wrapInputStream(java.io.InputStream underlying)
|
protected java.io.OutputStream |
wrapOutputStream(java.io.OutputStream underlying)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SnappyCompressionStrategy
public SnappyCompressionStrategy()
getType
public java.lang.String getType()
- Description copied from interface:
CompressionStrategy
- The type of compression performed.
wrapOutputStream
protected java.io.OutputStream wrapOutputStream(java.io.OutputStream underlying)
throws java.io.IOException
- Specified by:
wrapOutputStream
in class StreamCompressionStrategy
- Throws:
java.io.IOException
wrapInputStream
protected java.io.InputStream wrapInputStream(java.io.InputStream underlying)
throws java.io.IOException
- Specified by:
wrapInputStream
in class StreamCompressionStrategy
- Throws:
java.io.IOException
Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu