public class ZstdDictionaryCompressionConfiguration extends Object implements EntryCompressionConfiguration, org.apache.ignite.internal.processors.cache.compress.EntryCompressionStrategySupplier
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_COMPRESSION_LEVEL
Default compression level, as per Zstandard library.
|
static int |
DEFAULT_DICTIONARY_SIZE
Default dictionary size, bytes.
|
static int |
DEFAULT_SAMPLES_BUFFER_SIZE
Default samples buffer size, bytes.
|
Constructor and Description |
---|
ZstdDictionaryCompressionConfiguration() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getCompressionLevel()
Returns compression level, as per Zstandard library.
|
int |
getDictionarySize()
Returns dictionary size, in bytes.
|
int |
getSamplesBufferSize()
Returns size of the buffer that should hold samples collected for dictionary training.
|
boolean |
isCompressKeys()
Gets flag indicating whether cache keys will be considered for compression.
|
boolean |
isRequireDictionary()
Flag indicating that compression without dictionary, such as before the dictionary is trained, is enabled.
|
ZstdDictionaryCompressionConfiguration |
setCompressionLevel(int compressionLevel)
Sets compression level to be used by Zstandard library.
|
ZstdDictionaryCompressionConfiguration |
setCompressKeys(boolean compressKeys)
Sets flag indicating whether cache keys will be considered for compression.
|
ZstdDictionaryCompressionConfiguration |
setDictionarySize(int dictionarySize)
Sets dictionary size, in bytes.
|
ZstdDictionaryCompressionConfiguration |
setRequireDictionary(boolean requireDictionary)
Sets flag that enables compression without dictionary.
|
ZstdDictionaryCompressionConfiguration |
setSamplesBufferSize(int samplesBufferSize)
Returns size of the buffer that should hold samples collected for dictionary training.
|
Map<Class<ZstdDictionaryCompressionConfiguration>,IgniteClosure<ZstdDictionaryCompressionConfiguration,org.apache.ignite.internal.processors.cache.compress.EntryCompressionStrategy>> |
strategies()
Getting cache entry compression strategies.
|
String |
toString() |
public static final int DEFAULT_COMPRESSION_LEVEL
public static final int DEFAULT_DICTIONARY_SIZE
public static final int DEFAULT_SAMPLES_BUFFER_SIZE
public ZstdDictionaryCompressionConfiguration()
public Map<Class<ZstdDictionaryCompressionConfiguration>,IgniteClosure<ZstdDictionaryCompressionConfiguration,org.apache.ignite.internal.processors.cache.compress.EntryCompressionStrategy>> strategies()
strategies
in interface org.apache.ignite.internal.processors.cache.compress.EntryCompressionStrategySupplier
public int getCompressionLevel()
public ZstdDictionaryCompressionConfiguration setCompressionLevel(int compressionLevel)
compressionLevel
- Compression level.this
for chaining.ZstdCompressCtx.setLevel(int)
public int getDictionarySize()
public ZstdDictionaryCompressionConfiguration setDictionarySize(int dictionarySize)
0
to 16384
is recommended, with the default of {code 1024}. Values of 256
or smaller may prevent dictionary
from training successfully.
Setting dictionary size to zero will result in compression without dictionary, if it is enabled explicitly.dictionarySize
- Dictionary size, bytes.this
for chaining.setRequireDictionary(boolean)
public boolean isRequireDictionary()
true
, compression without dictionary is enabled.public ZstdDictionaryCompressionConfiguration setRequireDictionary(boolean requireDictionary)
true
if dictionary size is set to 0.requireDictionary
- Flag value.this
for chaining.setDictionarySize(int)
public int getSamplesBufferSize()
public ZstdDictionaryCompressionConfiguration setSamplesBufferSize(int samplesBufferSize)
samplesBufferSize
- Samples buffer size, in bytes.this
for chaining.setDictionarySize(int)
public boolean isCompressKeys()
True
if cache keys may be compressed.public ZstdDictionaryCompressionConfiguration setCompressKeys(boolean compressKeys)
compressKeys
- true
if cache keys may be compressed.this
for chaining.
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024