public class HoodieAirliftGzipDecompressor extends Object implements HoodieDecompressor
HoodieDecompressor for CompressionCodec.GZIP compression
codec using airlift aircompressor's GZIP decompressor.| Constructor and Description |
|---|
HoodieAirliftGzipDecompressor() |
| Modifier and Type | Method and Description |
|---|---|
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
HoodieDecompressorInputStream and writes the decompressed data to the target
byte array.decompress in interface HoodieDecompressorcompressedInput - 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.Copyright © 2024 The Apache Software Foundation. All rights reserved.