public class LZFCompressor extends Object implements Compressor
| Constructor and Description |
|---|
LZFCompressor() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
compress(byte[] data,
int offset,
int length)
Compresses the provided data, data can be detected as compressed using
Compressor.isCompressed(byte[], int, int). |
void |
configure(Settings settings) |
CompressedIndexInput |
indexInput(org.apache.lucene.store.IndexInput in) |
boolean |
isCompressed(byte[] data,
int offset,
int length) |
boolean |
isCompressed(BytesReference bytes) |
boolean |
isCompressed(org.jboss.netty.buffer.ChannelBuffer buffer) |
boolean |
isCompressed(org.apache.lucene.store.IndexInput in) |
CompressedStreamInput |
streamInput(StreamInput in) |
CompressedStreamOutput |
streamOutput(StreamOutput out) |
String |
type() |
byte[] |
uncompress(byte[] data,
int offset,
int length)
Uncompress the provided data, data can be detected as compressed using
Compressor.isCompressed(byte[], int, int). |
public static final String TYPE
public String type()
type in interface Compressorpublic void configure(Settings settings)
configure in interface Compressorpublic boolean isCompressed(BytesReference bytes)
isCompressed in interface Compressorpublic boolean isCompressed(byte[] data,
int offset,
int length)
isCompressed in interface Compressorpublic boolean isCompressed(org.jboss.netty.buffer.ChannelBuffer buffer)
isCompressed in interface Compressorpublic boolean isCompressed(org.apache.lucene.store.IndexInput in)
throws IOException
isCompressed in interface CompressorIOExceptionpublic byte[] uncompress(byte[] data,
int offset,
int length)
throws IOException
CompressorCompressor.isCompressed(byte[], int, int).uncompress in interface CompressorIOExceptionpublic byte[] compress(byte[] data,
int offset,
int length)
throws IOException
CompressorCompressor.isCompressed(byte[], int, int).compress in interface CompressorIOExceptionpublic CompressedStreamInput streamInput(StreamInput in) throws IOException
streamInput in interface CompressorIOExceptionpublic CompressedStreamOutput streamOutput(StreamOutput out) throws IOException
streamOutput in interface CompressorIOExceptionpublic CompressedIndexInput indexInput(org.apache.lucene.store.IndexInput in) throws IOException
indexInput in interface CompressorIOExceptionCopyright © 2009–2016. All rights reserved.