public interface HoodieCompressor
| 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. |
int decompress(InputStream compressedInput, byte[] targetByteArray, int offset, int length) throws IOException
InputStream and writes the decompressed data to the target
byte array.compressedInput - 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.byte[] compress(byte[] uncompressedBytes)
throws IOException
uncompressedBytes - input data in byte arrayIOException - upon errorByteBuffer compress(ByteBuffer uncompressedBytes) throws IOException
ByteBuffer.uncompressedBytes - input data in ByteBufferByteBufferIOException - upon errorCopyright © 2025 The Apache Software Foundation. All rights reserved.