public class HoodieAirliftGzipCompressor extends Object implements HoodieCompressor
HoodieCompressor for CompressionCodec.GZIP compression
codec using airlift aircompressor's GZIP decompressor.| Constructor and Description |
|---|
HoodieAirliftGzipCompressor() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
compress(byte[] data)
Compresses data stored in byte array.
|
ByteBuffer |
compress(ByteBuffer uncompressedBytes)
Compresses data stored in
ByteBuffer. |
int |
decompress(InputStream compressedInput,
byte[] targetByteArray,
int offset,
int length)
Decompresses the data from
InputStream and writes the decompressed data to the target
byte array. |
public int decompress(InputStream compressedInput, byte[] targetByteArray, int offset, int length) throws IOException
HoodieCompressorInputStream and writes the decompressed data to the target
byte array.decompress in interface HoodieCompressorcompressedInput - compressed data in InputStream.targetByteArray - target byte array to store the decompressed data.offset - offset in the target byte array to start to write data.length - maximum amount of decompressed data to write.IOException - upon error.public byte[] compress(byte[] data)
throws IOException
HoodieCompressorcompress in interface HoodieCompressordata - input data in byte arrayIOException - upon errorpublic ByteBuffer compress(ByteBuffer uncompressedBytes) throws IOException
HoodieCompressorByteBuffer.compress in interface HoodieCompressoruncompressedBytes - input data in ByteBufferByteBufferIOException - upon errorCopyright © 2025 The Apache Software Foundation. All rights reserved.