public interface IUnCompressor
| Modifier and Type | Interface and Description |
|---|---|
static class |
IUnCompressor.GZIPUnCompressor |
static class |
IUnCompressor.LZ4UnCompressor |
static class |
IUnCompressor.NoUnCompressor |
static class |
IUnCompressor.SnappyUnCompressor |
| Modifier and Type | Method and Description |
|---|---|
CompressionType |
getCodecName() |
int |
getUncompressedLength(byte[] array,
int offset,
int length) |
int |
getUncompressedLength(ByteBuffer buffer)
get the uncompressed length.
|
static IUnCompressor |
getUnCompressor(CompressionType name)
get the UnCompressor based on the CompressionType.
|
byte[] |
uncompress(byte[] byteArray)
uncompress the byte array.
|
int |
uncompress(byte[] byteArray,
int offset,
int length,
byte[] output,
int outOffset)
uncompress the byte array.
|
int |
uncompress(ByteBuffer compressed,
ByteBuffer uncompressed)
if the data is large, using this function is better.
|
static IUnCompressor getUnCompressor(CompressionType name)
name - CompressionTypeint getUncompressedLength(byte[] array,
int offset,
int length)
throws IOException
IOExceptionint getUncompressedLength(ByteBuffer buffer) throws IOException
buffer - MUST be DirectByteBufferIOExceptionbyte[] uncompress(byte[] byteArray)
throws IOException
byteArray - to be uncompressed bytesIOExceptionint uncompress(byte[] byteArray,
int offset,
int length,
byte[] output,
int outOffset)
throws IOException
byteArray - -to be uncompressed bytesoffset - -offsetlength - -lengthoutput - -output byteoutOffset - -IOExceptionint uncompress(ByteBuffer compressed, ByteBuffer uncompressed) throws IOException
compressed - MUST be DirectByteBufferuncompressed - MUST be DirectByteBufferIOExceptionCompressionType getCodecName()
Copyright © 2022 The Apache Software Foundation. All rights reserved.