public class GzipCompressionStrategy extends Object implements org.apache.ignite.internal.processors.cache.compress.EntryCompressionStrategy
EntryCompressionStrategy
.Modifier and Type | Field and Description |
---|---|
static int |
MIN_DELTA_BYTES |
Constructor and Description |
---|
GzipCompressionStrategy(GzipCompressionConfiguration cfg) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
compressKeys()
Gets flag indicating whether cache keys will be considered for compression.
|
byte[] |
decompress(byte[] bytes)
Decompresses an array of previously compressed cache data.
|
void |
start(org.apache.ignite.internal.GridKernalContext ctx,
CacheConfiguration ccfg)
Initializes entry compression strategy.
|
boolean |
stateless()
Gets flag indicating whether this strategy is stateless.
|
byte[] |
tryCompress(byte[] bytes)
Tries to compress cache key or value data, as array of bytes.
|
public static final int MIN_DELTA_BYTES
public GzipCompressionStrategy(GzipCompressionConfiguration cfg)
public byte[] tryCompress(byte[] bytes)
null
.tryCompress
in interface org.apache.ignite.internal.processors.cache.compress.EntryCompressionStrategy
bytes
- Array of uncompressed data.null
.public byte[] decompress(byte[] bytes)
decompress
in interface org.apache.ignite.internal.processors.cache.compress.EntryCompressionStrategy
bytes
- Array of compressed data.public boolean compressKeys()
compressKeys
in interface org.apache.ignite.internal.processors.cache.compress.EntryCompressionStrategy
True
if cache keys may be compressed.public boolean stateless()
stateless
in interface org.apache.ignite.internal.processors.cache.compress.EntryCompressionStrategy
True
if strategy is stateless.public void start(org.apache.ignite.internal.GridKernalContext ctx, CacheConfiguration ccfg)
start
in interface org.apache.ignite.internal.processors.cache.compress.EntryCompressionStrategy
ctx
- Kernal context.ccfg
- Cache configuration.public void close()
close
in interface AutoCloseable
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024