public class DumpEntrySerializer extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
HEADER_SZ
sizeOf(CRC) + sizeOf(Data size)
|
| Constructor and Description |
|---|
DumpEntrySerializer(ConcurrentMap<Long,ByteBuffer> thLocBufs,
@Nullable ConcurrentMap<Long,ByteBuffer> encThLocBufs,
@Nullable Serializable encKey,
@Nullable EncryptionSpi encSpi) |
| Modifier and Type | Method and Description |
|---|---|
void |
keepBinary(boolean keepBinary) |
void |
kernalContext(GridKernalContext cctx) |
void |
raw(boolean raw) |
DumpEntry |
read(FileIO dumpFile,
int grp,
int part) |
ByteBuffer |
writeToBuffer(int cache,
long expireTime,
KeyCacheObject key,
CacheObject val,
GridCacheVersion ver,
CacheObjectContext coCtx) |
public static final int HEADER_SZ
public DumpEntrySerializer(ConcurrentMap<Long,ByteBuffer> thLocBufs, @Nullable @Nullable ConcurrentMap<Long,ByteBuffer> encThLocBufs, @Nullable @Nullable Serializable encKey, @Nullable @Nullable EncryptionSpi encSpi)
thLocBufs - Thread local buffers.encKey - Encrytpion key. If null then encryption disabled.encSpi - Encryption SPI to use.public void kernalContext(GridKernalContext cctx)
public void keepBinary(boolean keepBinary)
keepBinary - If true then return data in form of BinaryObject.public void raw(boolean raw)
raw - If true then don't deserialize KeyCacheObject and CacheObject.public ByteBuffer writeToBuffer(int cache, long expireTime, KeyCacheObject key, CacheObject val, GridCacheVersion ver, CacheObjectContext coCtx) throws IgniteCheckedException
cache - Cache id.expireTime - Expire time.key - Key.val - Value.coCtx - Cache object context.IgniteCheckedException - If failed.public DumpEntry read(FileIO dumpFile, int grp, int part) throws IOException, IgniteCheckedException
dumpFile - File to read data from.grp - Cache group.IOExceptionIgniteCheckedException
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023