public interface CompressionCodec
| Modifier and Type | Method and Description |
|---|---|
ArrowBuf |
compress(BufferAllocator allocator,
ArrowBuf unCompressedBuffer)
Compress a buffer.
|
ArrowBuf |
decompress(BufferAllocator allocator,
ArrowBuf compressedBuffer)
Decompress a buffer.
|
String |
getCodecName()
Gets the name of the codec.
|
ArrowBuf compress(BufferAllocator allocator, ArrowBuf unCompressedBuffer)
allocator - the allocator for allocating memory for compressed buffer.unCompressedBuffer - the buffer to compress.
Implementation of this method should take care of releasing this buffer.ArrowBuf decompress(BufferAllocator allocator, ArrowBuf compressedBuffer)
allocator - the allocator for allocating memory for decompressed buffer.compressedBuffer - the buffer to be decompressed.
Implementation of this method should take care of releasing this buffer.String getCodecName()
Copyright © 2020 The Apache Software Foundation. All rights reserved.