public class CacheObjectUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Collection<Object> |
unwrapBinariesIfNeeded(CacheObjectValueContext ctx,
Collection<?> col,
boolean keepBinary) |
static Object |
unwrapBinary(CacheObjectValueContext ctx,
Object o,
boolean keepBinary,
boolean cpy,
@Nullable ClassLoader ldr)
Unwraps an object for end user.
|
static Object |
unwrapBinaryIfNeeded(CacheObjectValueContext ctx,
CacheObject o,
boolean keepBinary,
boolean cpy) |
static Object |
unwrapBinaryIfNeeded(CacheObjectValueContext ctx,
Object o,
boolean keepBinary,
boolean cpy,
@Nullable ClassLoader ldr) |
public static Object unwrapBinaryIfNeeded(CacheObjectValueContext ctx, CacheObject o, boolean keepBinary, boolean cpy)
o - Object to unwrap.keepBinary - Keep binary flag.cpy - Copy value flag.public static Object unwrapBinaryIfNeeded(CacheObjectValueContext ctx, Object o, boolean keepBinary, boolean cpy, @Nullable @Nullable ClassLoader ldr)
ctx - Cache object context.o - Object to unwrap.keepBinary - Keep binary flag.cpy - Copy value flag.ldr - Class loader, used for deserialization from binary representation.public static Collection<Object> unwrapBinariesIfNeeded(CacheObjectValueContext ctx, Collection<?> col, boolean keepBinary)
col - Collection of objects to unwrap.keepBinary - Keep binary flag.public static Object unwrapBinary(CacheObjectValueContext ctx, Object o, boolean keepBinary, boolean cpy, @Nullable @Nullable ClassLoader ldr)
ctx - Cache object context.o - Object to unwrap.keepBinary - False when need to deserialize object from a binary one, true otherwise.cpy - True means the object will be copied before return, false otherwise.ldr - Class loader, used for deserialization from binary representation.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023