java.lang.Object
org.apache.arrow.vector.compression.CompressionUtil
Utilities for data compression/decompression.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Compression codec types corresponding to flat buffer implementation inCompressionType
. -
Field Summary
Modifier and TypeFieldDescriptionstatic final long
Special flag to indicate no compression.static final long
-
Method Summary
Modifier and TypeMethodDescriptionstatic ArrowBodyCompression
Creates theArrowBodyCompression
object, given theCompressionCodec
.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.
-
Field Details
-
SIZE_OF_UNCOMPRESSED_LENGTH
public static final long SIZE_OF_UNCOMPRESSED_LENGTH- See Also:
-
NO_COMPRESSION_LENGTH
public static final long NO_COMPRESSION_LENGTHSpecial flag to indicate no compression. (e.g. when the compressed buffer has a larger size.)- See Also:
-
-
Method Details
-
createBodyCompression
Creates theArrowBodyCompression
object, given theCompressionCodec
. The implementation of this method should depend on the values ofCompressionType.names
. -
packageRawBuffer
Process compression by compressing the buffer as is. -
extractUncompressedBuffer
Process decompression by slicing the buffer that contains the uncompressed bytes.
-