Class CacheObjectTransformerUtils
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.CacheObjectTransformerUtils
-
public class CacheObjectTransformerUtils extends Object
-
-
Constructor Summary
Constructors Constructor Description CacheObjectTransformerUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]restoreIfNecessary(byte[] bytes, CacheObjectValueContext ctx)Restores transformed bytes if necessary.static byte[]transformIfNecessary(byte[] bytes, int offset, int length, CacheObjectValueContext ctx)Transforms bytes according toCacheObjectTransformerProcessorwhen specified.static byte[]transformIfNecessary(byte[] bytes, CacheObjectValueContext ctx)Transforms bytes according toCacheObjectTransformerProcessorwhen specified.
-
-
-
Method Detail
-
transformIfNecessary
public static byte[] transformIfNecessary(byte[] bytes, CacheObjectValueContext ctx)Transforms bytes according toCacheObjectTransformerProcessorwhen specified.- Parameters:
bytes- Given bytes.ctx- Context.- Returns:
- Transformed bytes.
-
transformIfNecessary
public static byte[] transformIfNecessary(byte[] bytes, int offset, int length, CacheObjectValueContext ctx)Transforms bytes according toCacheObjectTransformerProcessorwhen specified.- Parameters:
bytes- Given bytes.ctx- Context.- Returns:
- Transformed bytes.
-
restoreIfNecessary
public static byte[] restoreIfNecessary(byte[] bytes, CacheObjectValueContext ctx)Restores transformed bytes if necessary.- Parameters:
bytes- Given bytes.ctx- Context.- Returns:
- Restored bytes.
-
-