Package org.apache.parquet.hadoop.codec
Class Lz4RawDecompressor
java.lang.Object
org.apache.parquet.hadoop.codec.NonBlockedDecompressor
org.apache.parquet.hadoop.codec.Lz4RawDecompressor
- All Implemented Interfaces:
org.apache.hadoop.io.compress.Decompressor,org.apache.hadoop.io.compress.DirectDecompressor
public class Lz4RawDecompressor
extends NonBlockedDecompressor
implements org.apache.hadoop.io.compress.DirectDecompressor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecompress(ByteBuffer compressed, ByteBuffer uncompressed) protected intmaxUncompressedLength(ByteBuffer compressed, int maxUncompressedLength) Get the maximum uncompressed byte size of the given compressed input.protected intuncompress(ByteBuffer compressed, ByteBuffer uncompressed) Uncompress the content in the input buffer.Methods inherited from class org.apache.parquet.hadoop.codec.NonBlockedDecompressor
decompress, end, finished, getRemaining, needsDictionary, needsInput, reset, setDictionary, setInput
-
Constructor Details
-
Lz4RawDecompressor
public Lz4RawDecompressor()
-
-
Method Details
-
maxUncompressedLength
protected int maxUncompressedLength(ByteBuffer compressed, int maxUncompressedLength) throws IOException Description copied from class:NonBlockedDecompressorGet the maximum uncompressed byte size of the given compressed input. This operation takes O(1) time.- Specified by:
maxUncompressedLengthin classNonBlockedDecompressor- Parameters:
compressed- input data [pos() ... limit())maxUncompressedLength- maximum length of the uncompressed data- Returns:
- uncompressed byte length of the given input
- Throws:
IOException
-
uncompress
Description copied from class:NonBlockedDecompressorUncompress the content in the input buffer. The result is dumped to the specified output buffer.- Specified by:
uncompressin classNonBlockedDecompressor- Parameters:
compressed- buffer[pos() ... limit()) containing the input datauncompressed- output of the the uncompressed data. It uses buffer[pos()..]- Returns:
- uncompressed data size
- Throws:
IOException
-
decompress
- Specified by:
decompressin interfaceorg.apache.hadoop.io.compress.DirectDecompressor- Throws:
IOException
-