org.elasticsearch.common.compress.lzf
Class LZFCompressor
java.lang.Object
org.elasticsearch.common.compress.lzf.LZFCompressor
- All Implemented Interfaces:
- Compressor
public class LZFCompressor
- extends Object
- implements Compressor
Method Summary |
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)
|
CompressedIndexOutput |
indexOutput(org.apache.lucene.store.IndexOutput out)
|
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) . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
LZFCompressor
public LZFCompressor()
type
public String type()
- Specified by:
type
in interface Compressor
configure
public void configure(Settings settings)
- Specified by:
configure
in interface Compressor
isCompressed
public boolean isCompressed(BytesReference bytes)
- Specified by:
isCompressed
in interface Compressor
isCompressed
public boolean isCompressed(byte[] data,
int offset,
int length)
- Specified by:
isCompressed
in interface Compressor
isCompressed
public boolean isCompressed(org.jboss.netty.buffer.ChannelBuffer buffer)
- Specified by:
isCompressed
in interface Compressor
isCompressed
public boolean isCompressed(org.apache.lucene.store.IndexInput in)
throws IOException
- Specified by:
isCompressed
in interface Compressor
- Throws:
IOException
uncompress
public byte[] uncompress(byte[] data,
int offset,
int length)
throws IOException
- Description copied from interface:
Compressor
- Uncompress the provided data, data can be detected as compressed using
Compressor.isCompressed(byte[], int, int)
.
- Specified by:
uncompress
in interface Compressor
- Throws:
IOException
compress
public byte[] compress(byte[] data,
int offset,
int length)
throws IOException
- Description copied from interface:
Compressor
- Compresses the provided data, data can be detected as compressed using
Compressor.isCompressed(byte[], int, int)
.
- Specified by:
compress
in interface Compressor
- Throws:
IOException
streamInput
public CompressedStreamInput streamInput(StreamInput in)
throws IOException
- Specified by:
streamInput
in interface Compressor
- Throws:
IOException
streamOutput
public CompressedStreamOutput streamOutput(StreamOutput out)
throws IOException
- Specified by:
streamOutput
in interface Compressor
- Throws:
IOException
indexInput
public CompressedIndexInput indexInput(org.apache.lucene.store.IndexInput in)
throws IOException
- Specified by:
indexInput
in interface Compressor
- Throws:
IOException
indexOutput
public CompressedIndexOutput indexOutput(org.apache.lucene.store.IndexOutput out)
throws IOException
- Specified by:
indexOutput
in interface Compressor
- Throws:
IOException
Copyright © 2009-2012. All Rights Reserved.