public class SnappyCompressor extends Object implements org.apache.hadoop.io.compress.Compressor
| Constructor and Description |
|---|
SnappyCompressor() |
| Modifier and Type | Method and Description |
|---|---|
int |
compress(byte[] buffer,
int off,
int len)
Fills specified buffer with compressed data.
|
void |
end() |
void |
finish() |
boolean |
finished() |
long |
getBytesRead() |
long |
getBytesWritten() |
boolean |
needsInput() |
void |
reinit(org.apache.hadoop.conf.Configuration c) |
void |
reset() |
void |
setDictionary(byte[] dictionary,
int off,
int len) |
void |
setInput(byte[] buffer,
int off,
int len) |
public int compress(byte[] buffer,
int off,
int len)
throws IOException
compress in interface org.apache.hadoop.io.compress.Compressorbuffer - Buffer for the compressed dataoff - Start offset of the datalen - Size of the bufferIOExceptionpublic void setInput(byte[] buffer,
int off,
int len)
setInput in interface org.apache.hadoop.io.compress.Compressorpublic void end()
end in interface org.apache.hadoop.io.compress.Compressorpublic void finish()
finish in interface org.apache.hadoop.io.compress.Compressorpublic boolean finished()
finished in interface org.apache.hadoop.io.compress.Compressorpublic long getBytesRead()
getBytesRead in interface org.apache.hadoop.io.compress.Compressorpublic long getBytesWritten()
getBytesWritten in interface org.apache.hadoop.io.compress.Compressorpublic boolean needsInput()
needsInput in interface org.apache.hadoop.io.compress.Compressorpublic void reinit(org.apache.hadoop.conf.Configuration c)
reinit in interface org.apache.hadoop.io.compress.Compressorpublic void reset()
reset in interface org.apache.hadoop.io.compress.Compressorpublic void setDictionary(byte[] dictionary,
int off,
int len)
setDictionary in interface org.apache.hadoop.io.compress.CompressorCopyright © 2018 The Apache Software Foundation. All rights reserved.