Interface StoreObject
- All Known Subinterfaces:
KeyStoreObject
- All Known Implementing Classes:
KeyStoreObjectImpl,StoreObjectAdapter,StoreObjectImpl
public interface StoreObject
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final bytestatic final bytestatic final bytestatic final byte -
Method Summary
Modifier and TypeMethodDescriptionbytevoidfinishUnmarshal(StoreContext ctx, ClassLoader ldr) Prepares cache object for cache (e.g. copies user-provided object if needed).voidintputValue(long addr) booleanputValue(ByteBuffer buf) booleanputValue(ByteBuffer buf, int off, int len) <T> Tvalue(StoreContext ctx) byte[]valueBytes(StoreContext ctx) int
-
Field Details
-
TYPE_REGULAR
static final byte TYPE_REGULAR- See Also:
-
TYPE_BYTE_ARR
static final byte TYPE_BYTE_ARR- See Also:
-
TYPE_BINARY
static final byte TYPE_BINARY- See Also:
-
TYPE_BINARY_ENUM
static final byte TYPE_BINARY_ENUM- See Also:
-
-
Method Details
-
value
- Parameters:
ctx- Context.- Returns:
- Value.
- Throws:
IgniteCheckedException
-
valueBytes
- Parameters:
ctx- Context.- Returns:
- Value bytes.
- Throws:
IgniteCheckedException- If failed.
-
valueBytesLength
- Parameters:
ctx- Cache object context.- Returns:
- Size required to store this value object.
- Throws:
IgniteCheckedException- If failed.
-
putValue
- Parameters:
buf- Buffer to write value to.- Returns:
Trueif value was successfully written,falseif there was not enough space in the buffer.- Throws:
IgniteCheckedException- If failed.
-
putValue
- Parameters:
addr- Address tp write value to.- Returns:
- Number of bytes written.
- Throws:
IgniteCheckedException- If failed.
-
putValue
- Parameters:
buf- Buffer to write value to.off- Offset in source binary data.len- Length of the data to write.- Returns:
Trueif value was successfully written,falseif there was not enough space in the buffer.- Throws:
IgniteCheckedException- If failed.
-
cacheObjectType
byte cacheObjectType()- Returns:
- Object type.
-
prepareForCache
Prepares cache object for cache (e.g. copies user-provided object if needed).- Parameters:
ctx- Cache context.- Returns:
- Instance to store in cache.
-
finishUnmarshal
- Parameters:
ctx- Context.ldr- Class loader.- Throws:
IgniteCheckedException- If failed.
-
prepareMarshal
- Parameters:
ctx- Context.- Throws:
IgniteCheckedException- If failed.
-