|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.io.compress.lzo.LzoDecompressor
org.apache.hadoop.io.compress.LzopCodec.LzopDecompressor
protected static class LzopCodec.LzopDecompressor
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.hadoop.io.compress.lzo.LzoDecompressor |
---|
LzoDecompressor.CompressionStrategy |
Field Summary |
---|
Fields inherited from class org.apache.hadoop.io.compress.lzo.LzoDecompressor |
---|
LZO_LIBRARY_VERSION |
Constructor Summary | |
---|---|
LzopCodec.LzopDecompressor(int bufferSize)
Create an LzoDecompressor with LZO1X strategy (the only lzo algorithm supported by lzop). |
Method Summary | |
---|---|
int |
decompress(byte[] b,
int off,
int len)
Fills specified buffer with uncompressed data. |
void |
initHeaderFlags(EnumSet<org.apache.hadoop.io.compress.LzopCodec.DChecksum> dflags,
EnumSet<org.apache.hadoop.io.compress.LzopCodec.CChecksum> cflags)
Given a set of decompressed and compressed checksums, |
void |
resetChecksum()
Reset all checksums registered for this decompressor instance. |
void |
setInput(byte[] b,
int off,
int len)
Sets input data for decompression. |
boolean |
verifyCChecksum(org.apache.hadoop.io.compress.LzopCodec.CChecksum typ,
int checksum)
Given a checksum type, verity its value against that observed in compressed data. |
boolean |
verifyDChecksum(org.apache.hadoop.io.compress.LzopCodec.DChecksum typ,
int checksum)
Given a checksum type, verify its value against that observed in decompressed data. |
Methods inherited from class org.apache.hadoop.io.compress.lzo.LzoDecompressor |
---|
end, finalize, finished, isNativeLzoLoaded, needsDictionary, needsInput, reset, setDictionary |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LzopCodec.LzopDecompressor(int bufferSize)
Method Detail |
---|
public void initHeaderFlags(EnumSet<org.apache.hadoop.io.compress.LzopCodec.DChecksum> dflags, EnumSet<org.apache.hadoop.io.compress.LzopCodec.CChecksum> cflags)
public void resetChecksum()
public boolean verifyDChecksum(org.apache.hadoop.io.compress.LzopCodec.DChecksum typ, int checksum)
public boolean verifyCChecksum(org.apache.hadoop.io.compress.LzopCodec.CChecksum typ, int checksum)
public void setInput(byte[] b, int off, int len)
Decompressor
true
indicating that more input data is required.
setInput
in interface Decompressor
setInput
in class LzoDecompressor
b
- Input dataoff
- Start offsetlen
- Lengthpublic int decompress(byte[] b, int off, int len) throws IOException
Decompressor
decompress
in interface Decompressor
decompress
in class LzoDecompressor
b
- Buffer for the compressed dataoff
- Start offset of the datalen
- Size of the buffer
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |