public class Lz4BlockCompressionFactory extends Object implements BlockCompressionFactory
BlockCompressionFactory for Lz4 codec.BlockCompressionFactory.CompressionFactoryName| Modifier and Type | Field and Description |
|---|---|
static int |
HEADER_LENGTH
We put two integers before each compressed block, the first integer represents the compressed
length of the block, and the second one represents the original length of the block.
|
| Constructor and Description |
|---|
Lz4BlockCompressionFactory() |
| Modifier and Type | Method and Description |
|---|---|
BlockCompressor |
getCompressor() |
BlockDecompressor |
getDecompressor() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateBlockCompressionFactorypublic static final int HEADER_LENGTH
public BlockCompressor getCompressor()
getCompressor in interface BlockCompressionFactorypublic BlockDecompressor getDecompressor()
getDecompressor in interface BlockCompressionFactoryCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.