java.lang.Object
org.apache.arrow.vector.compression.NoCompressionCodec
- All Implemented Interfaces:
CompressionCodec
The default compression codec that does no compression.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe default factory that creates aNoCompressionCodec. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final bytestatic final ArrowBodyCompressionstatic 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:CompressionCodecCompress a buffer.- Specified by:
compressin 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:CompressionCodecDecompress a buffer.- Specified by:
decompressin 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:CompressionCodecGets the type of the codec.- Specified by:
getCodecTypein interfaceCompressionCodec- Returns:
- the type of the codec.
-