THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||||
---|---|---|---|---|
| ||||
protected byte[] valueBytesFromValue(CacheObjectValueContext ctx) throws IgniteCheckedException { byte[] bytes = ctx.kernalContext().cacheObjects().marshal(ctx, val); return CacheObjectsTransformer.transformIfNecessary(bytes, ctx); } protected Object valueFromValueBytes(CacheObjectValueContext ctx, ClassLoader ldr) throws IgniteCheckedException { byte[] bytes = CacheObjectsTransformer.restoreIfNecessary(valBytes, ctx); return ctx.kernalContext().cacheObjects().unmarshal(ctx, bytes, ldr); } ... if (valBytes == null) valBytes = valueBytesFromValue(ctx); ... if (val == null) val = valueFromValueBytes(ctx, ldr); |
BinaryObject(Impl)s have the different structure:
Code Block | ||||
---|---|---|---|---|
| ||||
private byte[] arr;
private Object obj; |
Transformation requires additional memory allocation and subsequent GC work.
...