Package org.apache.parquet.hadoop.codec
Class SnappyDecompressor
- java.lang.Object
-
- org.apache.parquet.hadoop.codec.NonBlockedDecompressor
-
- org.apache.parquet.hadoop.codec.SnappyDecompressor
-
- All Implemented Interfaces:
org.apache.hadoop.io.compress.Decompressor
public class SnappyDecompressor extends NonBlockedDecompressor
-
-
Constructor Summary
Constructors Constructor Description SnappyDecompressor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Method Detail
-
uncompress
protected int uncompress(ByteBuffer compressed, ByteBuffer uncompressed) throws IOException
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
-
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
-
-