public class CompressionUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DUMP_COMPRESSION_STATS |
| Constructor and Description |
|---|
CompressionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
compressStringRawBytes(java.lang.CharSequence string) |
protected static LZ4FastDecompressor |
decompressor() |
static byte [] |
readCompressed(java.io.DataInput in) |
static byte [] |
readCompressedWithoutOriginalBufferLength(java.io.DataInput in,
int originalBufferLength) |
static java.lang.CharSequence |
uncompressStringRawBytes(java.lang.Object compressed) |
static int |
writeCompressed(java.io.DataOutput out,
byte [] bytes,
int start,
int length) |
static int |
writeCompressedWithoutOriginalBufferLength(java.io.DataOutput out,
byte [] bytes,
int length) |
public static int writeCompressed(java.io.DataOutput out,
byte [] bytes,
int start,
int length)
throws java.io.IOException
java.io.IOExceptionpublic static int writeCompressedWithoutOriginalBufferLength(java.io.DataOutput out,
byte [] bytes,
int length)
throws java.io.IOException
java.io.IOExceptionpublic static byte [] readCompressedWithoutOriginalBufferLength(java.io.DataInput in,
int originalBufferLength)
throws java.io.IOException
java.io.IOExceptionprotected static LZ4FastDecompressor decompressor()
public static byte [] readCompressed(java.io.DataInput in)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.Object compressStringRawBytes(java.lang.CharSequence string)
public static java.lang.CharSequence uncompressStringRawBytes(java.lang.Object compressed)