public class CompressionUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CompressionUtil.CodecType
Compression codec types corresponding to flat buffer implementation in
CompressionType. |
| Modifier and Type | Field and Description |
|---|---|
static long |
NO_COMPRESSION_LENGTH
Special flag to indicate no compression.
|
static long |
SIZE_OF_UNCOMPRESSED_LENGTH |
| Modifier and Type | Method and Description |
|---|---|
static ArrowBodyCompression |
createBodyCompression(CompressionCodec codec)
Creates the
ArrowBodyCompression object, given the CompressionCodec. |
static ArrowBuf |
extractUncompressedBuffer(ArrowBuf inputBuffer)
Process decompression by slicing the buffer that contains the uncompressed bytes.
|
static ArrowBuf |
packageRawBuffer(BufferAllocator allocator,
ArrowBuf inputBuffer)
Process compression by compressing the buffer as is.
|
public static final long SIZE_OF_UNCOMPRESSED_LENGTH
public static final long NO_COMPRESSION_LENGTH
public static ArrowBodyCompression createBodyCompression(CompressionCodec codec)
ArrowBodyCompression object, given the CompressionCodec.
The implementation of this method should depend on the values of
CompressionType.names.public static ArrowBuf packageRawBuffer(BufferAllocator allocator, ArrowBuf inputBuffer)
Copyright © 2024 The Apache Software Foundation. All rights reserved.