Simple utility class providing static methods to compress and decompress binary data for stored fields.
More...
#include <CompressionTools.h>
|
static String | _getClassName () |
|
static ByteArray | compress (uint8_t *value, int32_t offset, int32_t length, int32_t compressionLevel) |
| Compresses the specified byte range using the specified compressionLevel.
|
|
static ByteArray | compress (uint8_t *value, int32_t offset, int32_t length) |
| Compresses the specified byte range, with default BEST_COMPRESSION level.
|
|
static ByteArray | compress (ByteArray value) |
| Compresses all bytes in the array, with default BEST_COMPRESSION level.
|
|
static ByteArray | compressString (const String &value) |
| Compresses the String value, with default BEST_COMPRESSION level.
|
|
static ByteArray | compressString (const String &value, int32_t compressionLevel) |
| Compresses the String value using the specified compressionLevel.
|
|
static ByteArray | decompress (ByteArray value) |
| Decompress the byte array previously returned by compress.
|
|
static String | decompressString (ByteArray value) |
| Decompress the byte array previously returned by compressString back into a String.
|
|
Simple utility class providing static methods to compress and decompress binary data for stored fields.
◆ ~CompressionTools()
virtual Lucene::CompressionTools::~CompressionTools |
( |
| ) |
|
|
virtual |
◆ _getClassName()
static String Lucene::CompressionTools::_getClassName |
( |
| ) |
|
|
inlinestatic |
◆ compress() [1/3]
static ByteArray Lucene::CompressionTools::compress |
( |
ByteArray |
value | ) |
|
|
static |
Compresses all bytes in the array, with default BEST_COMPRESSION level.
◆ compress() [2/3]
static ByteArray Lucene::CompressionTools::compress |
( |
uint8_t * |
value, |
|
|
int32_t |
offset, |
|
|
int32_t |
length |
|
) |
| |
|
static |
Compresses the specified byte range, with default BEST_COMPRESSION level.
◆ compress() [3/3]
static ByteArray Lucene::CompressionTools::compress |
( |
uint8_t * |
value, |
|
|
int32_t |
offset, |
|
|
int32_t |
length, |
|
|
int32_t |
compressionLevel |
|
) |
| |
|
static |
Compresses the specified byte range using the specified compressionLevel.
◆ compressString() [1/2]
static ByteArray Lucene::CompressionTools::compressString |
( |
const String & |
value | ) |
|
|
static |
Compresses the String value, with default BEST_COMPRESSION level.
◆ compressString() [2/2]
static ByteArray Lucene::CompressionTools::compressString |
( |
const String & |
value, |
|
|
int32_t |
compressionLevel |
|
) |
| |
|
static |
Compresses the String value using the specified compressionLevel.
◆ decompress()
static ByteArray Lucene::CompressionTools::decompress |
( |
ByteArray |
value | ) |
|
|
static |
Decompress the byte array previously returned by compress.
◆ decompressString()
static String Lucene::CompressionTools::decompressString |
( |
ByteArray |
value | ) |
|
|
static |
Decompress the byte array previously returned by compressString back into a String.
◆ getClassName()
virtual String Lucene::CompressionTools::getClassName |
( |
| ) |
|
|
inlinevirtual |
◆ shared_from_this()
boost::shared_ptr< CompressionTools > Lucene::CompressionTools::shared_from_this |
( |
| ) |
|
|
inline |
◆ COMPRESS_BUFFER
const int32_t Lucene::CompressionTools::COMPRESS_BUFFER |
|
staticprotected |
The documentation for this class was generated from the following file: