Class KeyStoreObjectImpl
java.lang.Object
org.apache.ignite.internal.persistence.store.StoreObjectAdapter
org.apache.ignite.internal.persistence.tree.KeyStoreObjectImpl
- All Implemented Interfaces:
Externalizable,Serializable,StoreObject,KeyStoreObject
- See Also:
-
Field Summary
Fields inherited from class org.apache.ignite.internal.persistence.store.StoreObjectAdapter
val, valBytesFields inherited from interface org.apache.ignite.internal.persistence.store.StoreObject
TYPE_BINARY, TYPE_BINARY_ENUM, TYPE_BYTE_ARR, TYPE_REGULAR -
Constructor Summary
ConstructorsConstructorDescriptionKeyStoreObjectImpl(Object val, byte[] valBytes) public KeyStoreObjectImpl() { // No-op. } /** -
Method Summary
Modifier and TypeMethodDescriptioncopy()booleanvoidfinishUnmarshal(StoreContext ctx, ClassLoader ldr) inthashCode()Prepares cache object for cache (e.g. copies user-provided object if needed).voidtoString()<T> Tvalue(StoreContext ctx) byte[]valueBytes(StoreContext ctx) Methods inherited from class org.apache.ignite.internal.persistence.store.StoreObjectAdapter
cacheObjectType, objectPutSize, putValue, putValue, putValue, putValue, putValue, readExternal, valueBytesLength, writeExternalMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.ignite.internal.persistence.store.StoreObject
cacheObjectType, putValue, putValue, putValue, valueBytesLength
-
Constructor Details
-
KeyStoreObjectImpl
public KeyStoreObjectImpl() { // No-op. } /**- Parameters:
val- Value.valBytes- Value bytes.
-
-
Method Details
-
copy
- Specified by:
copyin interfaceKeyStoreObject- Returns:
- Copy of this object with given partition set.
-
valueBytes
- Specified by:
valueBytesin interfaceStoreObject- Parameters:
ctx- Context.- Returns:
- Value bytes.
- Throws:
IgniteCheckedException- If failed.
-
value
- Specified by:
valuein interfaceStoreObject- Parameters:
ctx- Context.- Returns:
- Value.
-
prepareForCache
Description copied from interface:StoreObjectPrepares cache object for cache (e.g. copies user-provided object if needed).- Specified by:
prepareForCachein interfaceStoreObject- Parameters:
ctx- Cache context.- Returns:
- Instance to store in cache.
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceKeyStoreObject- Overrides:
hashCodein classObject- Returns:
- Key hash code.
-
prepareMarshal
- Specified by:
prepareMarshalin interfaceStoreObject- Parameters:
ctx- Context.- Throws:
IgniteCheckedException- If failed.
-
finishUnmarshal
- Specified by:
finishUnmarshalin interfaceStoreObject- Parameters:
ctx- Context.ldr- Class loader.- Throws:
IgniteCheckedException- If failed.
-
equals
-
toString
- Overrides:
toStringin classStoreObjectAdapter
-