public class KeyCacheObjectImpl extends CacheObjectAdapter implements KeyCacheObject
val, valBytesTYPE_BINARY, TYPE_BINARY_ENUM, TYPE_BYTE_ARR, TYPE_REGULAR| Constructor and Description |
|---|
KeyCacheObjectImpl() |
KeyCacheObjectImpl(Object val,
byte[] valBytes) |
KeyCacheObjectImpl(Object val,
byte[] valBytes,
int part) |
| Modifier and Type | Method and Description |
|---|---|
byte |
directType()
Gets message type.
|
boolean |
equals(Object obj) |
byte |
fieldsCount()
Gets fields count.
|
void |
finishUnmarshal(CacheObjectContext ctx,
ClassLoader ldr) |
int |
hashCode() |
boolean |
internal() |
boolean |
isPlatformType()
Gets flag indicating whether object value is a platform type.
|
void |
onAckReceived()
Method called when ack message received.
|
int |
partition() |
void |
partition(int part)
Sets partition ID for this key.
|
CacheObject |
prepareForCache(CacheObjectContext ctx)
Prepares cache object for cache (e.g. copies user-provided object if needed).
|
void |
prepareMarshal(CacheObjectContext ctx) |
<T> T |
value(CacheObjectContext ctx,
boolean cpy) |
byte[] |
valueBytes(CacheObjectContext ctx) |
cacheObjectType, needCopy, readExternal, readFrom, toString, writeExternal, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitcacheObjectTypepublic KeyCacheObjectImpl()
public KeyCacheObjectImpl(Object val, byte[] valBytes)
val - Value.valBytes - Value bytes.public KeyCacheObjectImpl(Object val, byte[] valBytes, int part)
val - Value.valBytes - Value bytes.part - Partition.public int partition()
partition in interface KeyCacheObjectpublic void partition(int part)
partition in interface KeyCacheObjectpart - Partition ID.public byte[] valueBytes(CacheObjectContext ctx) throws IgniteCheckedException
valueBytes in interface CacheObjectctx - Context.IgniteCheckedException - If failed.public boolean internal()
internal in interface KeyCacheObjectTrue if internal cache key.public boolean isPlatformType()
IgniteCache.withKeepBinary() is used or not.isPlatformType in interface CacheObject@Nullable public <T> T value(CacheObjectContext ctx, boolean cpy)
value in interface CacheObjectctx - Context.cpy - If true need to copy value.public void onAckReceived()
onAckReceived in interface Messagepublic CacheObject prepareForCache(CacheObjectContext ctx)
prepareForCache in interface CacheObjectctx - Cache context.public int hashCode()
hashCode in interface KeyCacheObjecthashCode in class Objectpublic byte directType()
directType in interface Messagepublic byte fieldsCount()
fieldsCount in interface MessagefieldsCount in class CacheObjectAdapterpublic void prepareMarshal(CacheObjectContext ctx) throws IgniteCheckedException
prepareMarshal in interface CacheObjectctx - Context.IgniteCheckedException - If failed.public void finishUnmarshal(CacheObjectContext ctx, ClassLoader ldr) throws IgniteCheckedException
finishUnmarshal in interface CacheObjectctx - Context.ldr - Class loader.IgniteCheckedException - If failed.
Follow @ApacheIgnite
Ignite Fabric : ver. 1.6.0 Release Date : May 18 2016