public interface CompressionCodec
| Modifier and Type | Interface and Description |
|---|---|
static class |
CompressionCodec.Type
Enum specifying the currently supported compression types.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
compress(byte[] data,
int offset,
int length,
org.apache.bookkeeper.stats.OpStatsLogger compressionStat)
Return the compressed data as a byte array.
|
byte[] |
decompress(byte[] data,
int offset,
int length,
int decompressedSize,
org.apache.bookkeeper.stats.OpStatsLogger decompressionStat)
Return the decompressed data as a byte array.
|
byte[] |
decompress(byte[] data,
int offset,
int length,
org.apache.bookkeeper.stats.OpStatsLogger decompressionStat)
Return the decompressed data as a byte array.
|
byte[] compress(byte[] data,
int offset,
int length,
org.apache.bookkeeper.stats.OpStatsLogger compressionStat)
data - The data to be compressedoffset - The offset in the bytes of data to compresslength - The number of bytes of data to compresscompressionStat - The stat to use for timing the compression operationbyte[] decompress(byte[] data,
int offset,
int length,
org.apache.bookkeeper.stats.OpStatsLogger decompressionStat)
data - The data to be decompressedoffset - The offset in the bytes of data to decompresslength - The number of bytes of data to decompressdecompressionStat - The stat to use for timing the decompression operationbyte[] decompress(byte[] data,
int offset,
int length,
int decompressedSize,
org.apache.bookkeeper.stats.OpStatsLogger decompressionStat)
data - The data to the decompressedoffset - The offset in the bytes of data to decompresslength - The number of bytes of data to decompressdecompressedSize - The exact size of the decompressed datadecompressionStat - The stat to use for timing the decompression operationCopyright © 2016. All Rights Reserved.