java.lang.Object
org.apache.arrow.vector.compression.CompressionUtil
Utilities for data compression/decompression.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumCompression codec types corresponding to flat buffer implementation inCompressionType. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longSpecial flag to indicate no compression.static final long -
Method Summary
Modifier and TypeMethodDescriptionstatic ArrowBodyCompressionCreates theArrowBodyCompressionobject, given theCompressionCodec.static ArrowBufextractUncompressedBuffer(ArrowBuf inputBuffer) Process decompression by slicing the buffer that contains the uncompressed bytes.static ArrowBufpackageRawBuffer(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 theArrowBodyCompressionobject, 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.
-