public class GridH2KeyValueRowOffheap extends GridH2AbstractKeyValueRow
desc, expirationTime, KEY_COL, VAL_COL| Constructor and Description |
|---|
GridH2KeyValueRowOffheap(GridH2RowDescriptor desc,
long ptr) |
GridH2KeyValueRowOffheap(GridH2RowDescriptor desc,
Object key,
int keyType,
Object val,
int valType,
long expirationTime)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addOffheapRowId(SB sb)
Adds offheap row ID.
|
protected void |
cache()
Caches this row for reuse.
|
void |
decrementRefCount() |
long |
expirationTime() |
protected org.h2.value.Value |
getOffheapValue(int col) |
void |
incrementRefCount() |
void |
onSwap()
Should be called to remove reference on value.
|
void |
onUnswap(Object val,
boolean beforeRmv)
Should be called when entry getting unswapped.
|
long |
pointer() |
protected org.h2.value.Value |
syncValue(long waitTime) |
protected org.h2.value.Value |
updateWeakValue(Object valObj)
Atomically updates weak value.
|
getColumnCount, getCopy, getKey, getValue, peekValue, setDeleted, setKey, setKeyAndVersion, setSessionId, setVersion, toStringcommit, getByteCount, getMemory, getSessionId, getValueList, getVersion, isDeleted, isEmpty, setValuepublic GridH2KeyValueRowOffheap(GridH2RowDescriptor desc, long ptr)
desc - Row descriptor.ptr - Pointer.public GridH2KeyValueRowOffheap(GridH2RowDescriptor desc, Object key, int keyType, @Nullable Object val, int valType, long expirationTime) throws IgniteCheckedException
desc - Row descriptor.key - Key.keyType - Key type.val - Value.valType - Value type.expirationTime - Expiration time.IgniteCheckedException - If failed.public long expirationTime()
expirationTime in class GridH2AbstractKeyValueRowprotected void cache()
cache in class GridH2AbstractKeyValueRowprotected org.h2.value.Value getOffheapValue(int col)
getOffheapValue in class GridH2AbstractKeyValueRowcol - Column.public long pointer()
pointer in interface GridOffHeapSmartPointerpointer in class GridH2Rowpublic void onSwap()
throws IgniteCheckedException
onSwap in class GridH2AbstractKeyValueRowIgniteCheckedException - If failed.protected org.h2.value.Value updateWeakValue(Object valObj) throws IgniteCheckedException
updateWeakValue in class GridH2AbstractKeyValueRowvalObj - New value.IgniteCheckedException - If failed.public void onUnswap(Object val, boolean beforeRmv) throws IgniteCheckedException
onUnswap in class GridH2AbstractKeyValueRowval - Value.beforeRmv - If this is unswap before remove.IgniteCheckedException - If failed.protected org.h2.value.Value syncValue(long waitTime)
syncValue in class GridH2AbstractKeyValueRowwaitTime - Time to await for value unswap.public void incrementRefCount()
incrementRefCount in interface GridOffHeapSmartPointerincrementRefCount in class GridH2Rowpublic void decrementRefCount()
decrementRefCount in interface GridOffHeapSmartPointerdecrementRefCount in class GridH2Rowprotected void addOffheapRowId(SB sb)
addOffheapRowId in class GridH2AbstractKeyValueRow
Follow @ApacheIgnite
Ignite Fabric : ver. 1.6.0 Release Date : May 18 2016