voldemort.store.compress.lzf
Class LZFEncoder

java.lang.Object
  extended by voldemort.store.compress.lzf.LZFEncoder

public class LZFEncoder
extends java.lang.Object

Encoder that handles splitting of input into chunks to encode, calls ChunkEncoder to compress individual chunks and combines resulting chunks into contiguous output byte array.

Code adapted from H2 project (http://www.h2database.com) Java LZF implementation by Thomas (which itself was inspired by original C code by Marc A Lehmann)


Method Summary
static byte[] encode(byte[] data)
          Method for compressing given input data using LZF encoding and block structure (compatible with lzf command line utility).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

encode

public static byte[] encode(byte[] data)
Method for compressing given input data using LZF encoding and block structure (compatible with lzf command line utility). Result consists of a sequence of chunks.



Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao