|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvoldemort.store.compress.NoopCompressionStrategy
public class NoopCompressionStrategy
Implementation of CompressionStrategy that returns the original data
unchanged. A typical use-case for this is not to compress the keys when using
CompressingStore
.
Constructor Summary | |
---|---|
NoopCompressionStrategy()
|
Method Summary | |
---|---|
byte[] |
deflate(byte[] data)
Compresses the data. |
java.lang.String |
getType()
The type of compression performed. |
byte[] |
inflate(byte[] data)
Uncompresses the data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NoopCompressionStrategy()
Method Detail |
---|
public byte[] deflate(byte[] data) throws java.io.IOException
CompressionStrategy
deflate
in interface CompressionStrategy
data
- uncompressed data.
java.io.IOException
- if there is an issue during the operation.public byte[] inflate(byte[] data) throws java.io.IOException
CompressionStrategy
inflate
in interface CompressionStrategy
data
- compressed data.
java.io.IOException
- if there is an issue during the operation.public java.lang.String getType()
CompressionStrategy
getType
in interface CompressionStrategy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |