public class SnappyCompressor extends java.lang.Object implements ICompressor
ICompressor.WrappedArray
Modifier and Type | Field and Description |
---|---|
static SnappyCompressor |
instance |
Constructor and Description |
---|
SnappyCompressor() |
Modifier and Type | Method and Description |
---|---|
int |
compress(byte[] input,
int inputOffset,
int inputLength,
ICompressor.WrappedArray output,
int outputOffset) |
static SnappyCompressor |
create(java.util.Map<java.lang.String,java.lang.String> compressionOptions) |
int |
initialCompressedBufferLength(int chunkLength) |
static boolean |
isAvailable() |
java.util.Set<java.lang.String> |
supportedOptions() |
int |
uncompress(byte[] input,
int inputOffset,
int inputLength,
byte[] output,
int outputOffset) |
public static final SnappyCompressor instance
public static SnappyCompressor create(java.util.Map<java.lang.String,java.lang.String> compressionOptions)
public static boolean isAvailable()
public java.util.Set<java.lang.String> supportedOptions()
supportedOptions
in interface ICompressor
public int initialCompressedBufferLength(int chunkLength)
initialCompressedBufferLength
in interface ICompressor
public int compress(byte[] input, int inputOffset, int inputLength, ICompressor.WrappedArray output, int outputOffset) throws java.io.IOException
compress
in interface ICompressor
java.io.IOException
public int uncompress(byte[] input, int inputOffset, int inputLength, byte[] output, int outputOffset) throws java.io.IOException
uncompress
in interface ICompressor
java.io.IOException
Copyright © 2015 The Apache Software Foundation