Class StoreObjectImpl
java.lang.Object
org.apache.ignite.internal.persistence.store.StoreObjectAdapter
org.apache.ignite.internal.persistence.store.StoreObjectImpl
- All Implemented Interfaces:
Externalizable,Serializable,StoreObject
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidfinishUnmarshal(StoreContext ctx, ClassLoader ldr) inthashCode()Prepares cache object for cache (e.g. copies user-provided object if needed).void<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, toString, valueBytesLength, writeExternal
-
Constructor Details
-
StoreObjectImpl
public StoreObjectImpl() -
StoreObjectImpl
- Parameters:
val- Value.valBytes- Value bytes.
-
-
Method Details
-
value
- Parameters:
ctx- Context.- Returns:
- Value.
- Throws:
IgniteCheckedException
-
valueBytes
- Parameters:
ctx- Context.- Returns:
- Value bytes.
- Throws:
IgniteCheckedException- If failed.
-
prepareMarshal
- Parameters:
ctx- Context.- Throws:
IgniteCheckedException- If failed.
-
finishUnmarshal
- Parameters:
ctx- Context.ldr- Class loader.- Throws:
IgniteCheckedException- If failed.
-
hashCode
public int hashCode() -
equals
-
prepareForCache
Description copied from interface:StoreObjectPrepares cache object for cache (e.g. copies user-provided object if needed).- Parameters:
ctx- Cache context.- Returns:
- Instance to store in cache.
-