public class CacheObjectContext extends Object
| Constructor and Description |
|---|
CacheObjectContext(GridKernalContext kernalCtx,
String cacheName,
AffinityKeyMapper dfltAffMapper,
boolean cpyOnGet,
boolean storeVal,
boolean addDepInfo) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addDeploymentInfo() |
String |
cacheName() |
boolean |
copyOnGet() |
AffinityKeyMapper |
defaultAffMapper() |
GridKernalContext |
kernalContext() |
boolean |
p2pEnabled() |
IgniteCacheObjectProcessor |
processor() |
boolean |
storeValue() |
Collection<Object> |
unwrapBinariesIfNeeded(Collection<Object> col,
boolean keepBinary) |
Collection<Object> |
unwrapBinariesIfNeeded(Collection<Object> col,
boolean keepBinary,
boolean cpy) |
Object[] |
unwrapBinariesInArrayIfNeeded(Object[] arr,
boolean keepBinary,
boolean cpy)
Unwrap array of binaries if needed.
|
Object |
unwrapBinaryIfNeeded(Object o,
boolean keepBinary) |
Object |
unwrapBinaryIfNeeded(Object o,
boolean keepBinary,
boolean cpy) |
public CacheObjectContext(GridKernalContext kernalCtx, String cacheName, AffinityKeyMapper dfltAffMapper, boolean cpyOnGet, boolean storeVal, boolean addDepInfo)
kernalCtx - Kernal context.dfltAffMapper - Default affinity mapper.cpyOnGet - Copy on get flag.storeVal - True if should store unmarshalled value in cache.addDepInfo - true if deployment info should be associated with the objects of this cache.public String cacheName()
public boolean p2pEnabled()
True if peer class loading is enabled.public boolean addDeploymentInfo()
True if deployment info should be associated with the objects of this cache.public boolean copyOnGet()
public boolean storeValue()
True if should store unmarshalled value in cache.public AffinityKeyMapper defaultAffMapper()
public GridKernalContext kernalContext()
public IgniteCacheObjectProcessor processor()
public Object unwrapBinaryIfNeeded(Object o, boolean keepBinary)
o - Object to unwrap.keepBinary - Keep binary flag.public Object unwrapBinaryIfNeeded(Object o, boolean keepBinary, boolean cpy)
o - Object to unwrap.keepBinary - Keep binary flag.cpy - Copy value flag.public Collection<Object> unwrapBinariesIfNeeded(Collection<Object> col, boolean keepBinary)
col - Collection of objects to unwrap.keepBinary - Keep binary flag.public Collection<Object> unwrapBinariesIfNeeded(Collection<Object> col, boolean keepBinary, boolean cpy)
col - Collection to unwrap.keepBinary - Keep binary flag.cpy - Copy value flag.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.8.0 Release Date : December 5 2016