Package org.apache.iotdb.tsfile.compress
Class IUnCompressor.NoUnCompressor
- java.lang.Object
-
- org.apache.iotdb.tsfile.compress.IUnCompressor.NoUnCompressor
-
- All Implemented Interfaces:
IUnCompressor
- Enclosing interface:
- IUnCompressor
public static class IUnCompressor.NoUnCompressor extends java.lang.Object implements IUnCompressor
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.iotdb.tsfile.compress.IUnCompressor
IUnCompressor.GZIPUnCompressor, IUnCompressor.LZ4UnCompressor, IUnCompressor.LZMA2UnCompressor, IUnCompressor.NoUnCompressor, IUnCompressor.SnappyUnCompressor, IUnCompressor.ZstdUnCompressor
-
-
Constructor Summary
Constructors Constructor Description NoUnCompressor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompressionTypegetCodecName()intgetUncompressedLength(byte[] array, int offset, int length)intgetUncompressedLength(java.nio.ByteBuffer buffer)get the uncompressed length.byte[]uncompress(byte[] byteArray)uncompress the byte array.intuncompress(byte[] byteArray, int offset, int length, byte[] output, int outOffset)uncompress the byte array.intuncompress(java.nio.ByteBuffer compressed, java.nio.ByteBuffer uncompressed)if the data is large, using this function is better.
-
-
-
Method Detail
-
getUncompressedLength
public int getUncompressedLength(byte[] array, int offset, int length)- Specified by:
getUncompressedLengthin interfaceIUnCompressor
-
getUncompressedLength
public int getUncompressedLength(java.nio.ByteBuffer buffer)
Description copied from interface:IUnCompressorget the uncompressed length.- Specified by:
getUncompressedLengthin interfaceIUnCompressor- Parameters:
buffer- MUST be DirectByteBuffer
-
uncompress
public byte[] uncompress(byte[] byteArray)
Description copied from interface:IUnCompressoruncompress the byte array.- Specified by:
uncompressin interfaceIUnCompressor- Parameters:
byteArray- to be uncompressed bytes- Returns:
- bytes after uncompressed
-
uncompress
public int uncompress(byte[] byteArray, int offset, int length, byte[] output, int outOffset)Description copied from interface:IUnCompressoruncompress the byte array.- Specified by:
uncompressin interfaceIUnCompressor- Parameters:
byteArray- -to be uncompressed bytesoffset- -offsetlength- -lengthoutput- -output byteoutOffset- -- Returns:
- the valid length of the output array
-
uncompress
public int uncompress(java.nio.ByteBuffer compressed, java.nio.ByteBuffer uncompressed) throws java.io.IOExceptionDescription copied from interface:IUnCompressorif the data is large, using this function is better.- Specified by:
uncompressin interfaceIUnCompressor- Parameters:
compressed- MUST be DirectByteBufferuncompressed- MUST be DirectByteBuffer- Throws:
java.io.IOException
-
getCodecName
public CompressionType getCodecName()
- Specified by:
getCodecNamein interfaceIUnCompressor
-
-