public abstract class CompressionMode extends Object
Modifier and Type | Field and Description |
---|---|
static CompressionMode |
FAST
A compression mode that trades compression ratio for speed.
|
static CompressionMode |
FAST_DECOMPRESSION
This compression mode is similar to
FAST but it spends more time
compressing in order to improve the compression ratio. |
static CompressionMode |
HIGH_COMPRESSION
A compression mode that trades speed for compression ratio.
|
Modifier | Constructor and Description |
---|---|
protected |
CompressionMode()
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract Compressor |
newCompressor()
Create a new
Compressor instance. |
abstract Decompressor |
newDecompressor()
Create a new
Decompressor instance. |
public static final CompressionMode FAST
public static final CompressionMode HIGH_COMPRESSION
public static final CompressionMode FAST_DECOMPRESSION
FAST
but it spends more time
compressing in order to improve the compression ratio. This compression
mode is best used with indices that have a low update rate but should be
able to load documents from disk quickly.public abstract Compressor newCompressor()
Compressor
instance.public abstract Decompressor newDecompressor()
Decompressor
instance.Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.