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
IOException
byte[] uncompress(byte[] data, int offset, int length) throws IOException
isCompressed(byte[], int, int)
.IOException
byte[] compress(byte[] data, int offset, int length) throws IOException
isCompressed(byte[], int, int)
.IOException
CompressedStreamInput streamInput(StreamInput in) throws IOException
IOException
CompressedStreamOutput streamOutput(StreamOutput out) throws IOException
IOException
CompressedIndexInput indexInput(org.apache.lucene.store.IndexInput in) throws IOException
IOException
Copyright © 2009–2015. All rights reserved.