public class KeyCacheObjectImpl extends CacheObjectAdapter implements KeyCacheObject, Comparable<KeyCacheObjectImpl>
val, valBytesTYPE_BYTE_ARR, TYPE_REGULAR| Constructor and Description |
|---|
KeyCacheObjectImpl() |
KeyCacheObjectImpl(Object val,
byte[] valBytes) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(KeyCacheObjectImpl other) |
byte |
directType()
Gets message type.
|
boolean |
equals(Object obj) |
void |
finishUnmarshal(CacheObjectContext ctx,
ClassLoader ldr) |
int |
hashCode() |
boolean |
internal() |
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) |
fieldsCount, needCopy, readExternal, readFrom, toString, type, writeExternal, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waittypefieldsCount, readFrom, writeTopublic KeyCacheObjectImpl()
public KeyCacheObjectImpl(Object val, byte[] valBytes)
val - Value.valBytes - Value bytes.public int compareTo(KeyCacheObjectImpl other)
compareTo in interface Comparable<KeyCacheObjectImpl>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.@Nullable public <T> T value(CacheObjectContext ctx, boolean cpy)
value in interface CacheObjectctx - Context.cpy - If true need to copy value.public 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 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.1.0-incubating Release Date : May 20 2015