public class CompressionHandler extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
compressionEnabled() |
ByteBuffer |
compressPage(ByteBuffer page,
PageStore store) |
static CompressionHandler |
create(GridKernalContext ctx,
CacheConfiguration cfg)
Creates compression handler.
|
DiskPageCompression |
diskPageCompression() |
int |
diskPageCompressionLevel() |
public DiskPageCompression diskPageCompression()
public int diskPageCompressionLevel()
public boolean compressionEnabled()
true if disk page compression is enabled.public ByteBuffer compressPage(ByteBuffer page, PageStore store) throws IgniteCheckedException
page - Page buffer.store - Page store.IgniteCheckedException - If failed.public static CompressionHandler create(GridKernalContext ctx, CacheConfiguration cfg) throws IgniteCheckedException
ctx - Grid kernal context.cfg - Cache or cache group configuration.IgniteCheckedException
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023