Class CompressionMode
A compression mode. Tells how much effort should be spent on compression and decompression of stored fields.
@lucene.experimental
Inheritance
Assembly: DistributedLucene.Net.dll
Syntax
public abstract class CompressionMode : object
Constructors
Name | Description |
---|---|
CompressionMode() | Sole constructor. |
Fields
Name | Description |
---|---|
FAST | A compression mode that trades compression ratio for speed. Although the compression ratio might remain high, compression and decompression are very fast. Use this mode with indices that have a high update rate but should be able to load documents from disk quickly. |
FAST_DECOMPRESSION | This compression mode is similar to 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. |
HIGH_COMPRESSION | A compression mode that trades speed for compression ratio. Although compression and decompression might be slow, this compression mode should provide a good compression ratio. this mode might be interesting if/when your index size is much bigger than your OS cache. |
Methods
Name | Description |
---|---|
NewCompressor() | Create a new Compressor instance. |
NewDecompressor() | Create a new Decompressor instance. |