Interface KeyCacheObject
-
- All Superinterfaces:
CacheObject,Message,Serializable
- All Known Implementing Classes:
BinaryObjectImpl,IgniteCacheOffheapManagerImpl.ExpiredKeyCacheObject,KeyCacheObjectImpl,UserKeyCacheObjectImpl
public interface KeyCacheObject extends CacheObject
-
-
Field Summary
-
Fields inherited from interface org.apache.ignite.internal.processors.cache.CacheObject
TYPE_BINARY, TYPE_BINARY_ENUM, TYPE_BYTE_ARR, TYPE_REGULAR
-
Fields inherited from interface org.apache.ignite.plugin.extensions.communication.Message
DIRECT_TYPE_SIZE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description KeyCacheObjectcopy(int part)inthashCode()booleaninternal()intpartition()voidpartition(int part)Sets partition ID for this key.-
Methods inherited from interface org.apache.ignite.internal.processors.cache.CacheObject
cacheObjectType, finishUnmarshal, isPlatformType, prepareForCache, prepareMarshal, putValue, putValue, putValue, value, value, valueBytes, valueBytesLength
-
Methods inherited from interface org.apache.ignite.plugin.extensions.communication.Message
directType, fieldsCount, onAckReceived, readFrom, writeTo
-
-
-
-
Method Detail
-
internal
boolean internal()
- Returns:
Trueif internal cache key.
-
partition
int partition()
- Returns:
- Partition ID for this key or -1 if it is unknown.
-
partition
void partition(int part)
Sets partition ID for this key.- Parameters:
part- Partition ID.
-
copy
KeyCacheObject copy(int part)
- Parameters:
part- Partition ID.- Returns:
- Copy of this object with given partition set.
-
-