public interface Compressor
| 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
isCompressed(byte[], int, int). |
void |
configure(Settings settings) |
CompressedIndexInput |
indexInput(org.apache.lucene.store.IndexInput in)
Deprecated.
Used for backward comp. since we now use Lucene compressed codec.
|
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
isCompressed(byte[], int, int). |
String type()
void configure(Settings settings)
boolean isCompressed(BytesReference bytes)
boolean isCompressed(byte[] data,
int offset,
int length)
boolean isCompressed(org.jboss.netty.buffer.ChannelBuffer buffer)
boolean isCompressed(org.apache.lucene.store.IndexInput in)
throws IOException
IOExceptionbyte[] uncompress(byte[] data,
int offset,
int length)
throws IOException
isCompressed(byte[], int, int).IOExceptionbyte[] compress(byte[] data,
int offset,
int length)
throws IOException
isCompressed(byte[], int, int).IOExceptionCompressedStreamInput streamInput(StreamInput in) throws IOException
IOExceptionCompressedStreamOutput streamOutput(StreamOutput out) throws IOException
IOException@Deprecated CompressedIndexInput indexInput(org.apache.lucene.store.IndexInput in) throws IOException
IOExceptionCopyright © 2009–2016. All rights reserved.