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, wait
createBlockCompressionFactory
public static final int HEADER_LENGTH
public BlockCompressor getCompressor()
getCompressor
in interface BlockCompressionFactory
public BlockDecompressor getDecompressor()
getDecompressor
in interface BlockCompressionFactory
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.