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 Compressor
public void configure(Settings settings)
configure
in interface Compressor
public boolean isCompressed(BytesReference bytes)
isCompressed
in interface Compressor
public boolean isCompressed(byte[] data, int offset, int length)
isCompressed
in interface Compressor
public boolean isCompressed(org.jboss.netty.buffer.ChannelBuffer buffer)
isCompressed
in interface Compressor
public boolean isCompressed(org.apache.lucene.store.IndexInput in) throws IOException
isCompressed
in interface Compressor
IOException
public byte[] uncompress(byte[] data, int offset, int length) throws IOException
Compressor
Compressor.isCompressed(byte[], int, int)
.uncompress
in interface Compressor
IOException
public byte[] compress(byte[] data, int offset, int length) throws IOException
Compressor
Compressor.isCompressed(byte[], int, int)
.compress
in interface Compressor
IOException
public CompressedStreamInput streamInput(StreamInput in) throws IOException
streamInput
in interface Compressor
IOException
public CompressedStreamOutput streamOutput(StreamOutput out) throws IOException
streamOutput
in interface Compressor
IOException
public CompressedIndexInput indexInput(org.apache.lucene.store.IndexInput in) throws IOException
indexInput
in interface Compressor
IOException
Copyright © 2009–2015. All rights reserved.