@InterfaceAudience.Public @InterfaceStability.Evolving public interface SplittableCompressionCodec extends CompressionCodec
| Modifier and Type | Interface and Description |
|---|---|
static class |
SplittableCompressionCodec.READ_MODE
During decompression, data can be read off from the decompressor in two
modes, namely continuous and blocked.
|
CompressionCodec.Util| Modifier and Type | Method and Description |
|---|---|
SplitCompressionInputStream |
createInputStream(InputStream seekableIn,
Decompressor decompressor,
long start,
long end,
SplittableCompressionCodec.READ_MODE readMode)
Create a stream as dictated by the readMode.
|
createCompressor, createDecompressor, createInputStream, createInputStream, createOutputStream, createOutputStream, getCompressorType, getDecompressorType, getDefaultExtensionSplitCompressionInputStream createInputStream(InputStream seekableIn, Decompressor decompressor, long start, long end, SplittableCompressionCodec.READ_MODE readMode) throws IOException
seekableIn - The seekable input stream (seeks in compressed data)start - The start offset into the compressed stream. May be changed
by the underlying codec.end - The end offset into the compressed stream. May be changed by
the underlying codec.readMode - Controls whether stream position is reported continuously
from the compressed stream only only at block boundaries.IOExceptionCopyright © 2019 Apache Software Foundation. All Rights Reserved.