public class HoodieNoneCompressor extends Object implements HoodieCompressor
HoodieCompressor for CompressionCodec.NONE compression
codec (no compression) by directly reading the input stream.| Constructor and Description |
|---|
HoodieNoneCompressor() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
compress(byte[] uncompressedBytes)
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[] uncompressedBytes)
HoodieCompressorcompress in interface HoodieCompressoruncompressedBytes - input data in byte arraypublic 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.