public class CompressorFactory extends Object
Constructor and Description |
---|
CompressorFactory() |
Modifier and Type | Method and Description |
---|---|
static Compressor |
compressor(BytesReference bytes) |
static Compressor |
compressor(org.jboss.netty.buffer.ChannelBuffer buffer) |
static Compressor |
compressor(org.apache.lucene.store.IndexInput in)
Deprecated.
we don't compress lucene indexes anymore and rely on lucene codecs
|
static Compressor |
defaultCompressor() |
static boolean |
isCompressed(BytesReference bytes) |
static boolean |
isCompressed(org.apache.lucene.store.IndexInput in)
Deprecated.
we don't compress lucene indexes anymore and rely on lucene codecs
|
static void |
setDefaultCompressor(Compressor defaultCompressor) |
static BytesReference |
uncompress(BytesReference bytes)
Decompress the provided
BytesReference . |
static BytesReference |
uncompressIfNeeded(BytesReference bytes)
Uncompress the provided data, data can be detected as compressed using
isCompressed(BytesReference) . |
public static void setDefaultCompressor(Compressor defaultCompressor)
public static Compressor defaultCompressor()
public static boolean isCompressed(BytesReference bytes)
@Deprecated public static boolean isCompressed(org.apache.lucene.store.IndexInput in) throws IOException
IOException
@Nullable public static Compressor compressor(BytesReference bytes)
public static Compressor compressor(org.jboss.netty.buffer.ChannelBuffer buffer)
@Deprecated @Nullable public static Compressor compressor(org.apache.lucene.store.IndexInput in) throws IOException
IOException
public static BytesReference uncompressIfNeeded(BytesReference bytes) throws IOException
isCompressed(BytesReference)
.IOException
public static BytesReference uncompress(BytesReference bytes) throws IOException
BytesReference
.IOException
Copyright © 2009–2016. All rights reserved.