java.lang.Object
org.apache.arrow.vector.compression.NoCompressionCodec
- All Implemented Interfaces:
CompressionCodec
The default compression codec that does no compression.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
The default factory that creates aNoCompressionCodec
. -
Field Summary
Modifier and TypeFieldDescriptionstatic final byte
static final ArrowBodyCompression
static final NoCompressionCodec
-
Method Summary
Modifier and TypeMethodDescriptioncompress
(BufferAllocator allocator, ArrowBuf uncompressedBuffer) Compress a buffer.decompress
(BufferAllocator allocator, ArrowBuf compressedBuffer) Decompress a buffer.Gets the type of the codec.
-
Field Details
-
INSTANCE
-
COMPRESSION_TYPE
public static final byte COMPRESSION_TYPE- See Also:
-
DEFAULT_BODY_COMPRESSION
-
-
Method Details
-
compress
Description copied from interface:CompressionCodec
Compress a buffer.- Specified by:
compress
in interfaceCompressionCodec
- Parameters:
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.- Returns:
- the compressed buffer
-
decompress
Description copied from interface:CompressionCodec
Decompress a buffer.- Specified by:
decompress
in interfaceCompressionCodec
- Parameters:
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.- Returns:
- the decompressed buffer.
-
getCodecType
Description copied from interface:CompressionCodec
Gets the type of the codec.- Specified by:
getCodecType
in interfaceCompressionCodec
- Returns:
- the type of the codec.
-