public abstract class GridH2AbstractKeyValueRow extends GridH2Row
GridQueryTypeDescriptor.| Modifier and Type | Field and Description |
|---|---|
protected GridH2RowDescriptor |
desc |
protected long |
expirationTime |
static int |
KEY_COL
Key column.
|
static int |
VAL_COL
Value column.
|
| Modifier | Constructor and Description |
|---|---|
protected |
GridH2AbstractKeyValueRow(GridH2RowDescriptor desc)
Protected constructor for
GridH2KeyValueRowOffheap |
protected |
GridH2AbstractKeyValueRow(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 abstract void |
cache()
Caches this row for reuse.
|
long |
expirationTime() |
int |
getColumnCount() |
org.h2.result.Row |
getCopy() |
long |
getKey() |
protected abstract org.h2.value.Value |
getOffheapValue(int col) |
org.h2.value.Value |
getValue(int col) |
void |
onSwap()
Should be called to remove reference on value.
|
void |
onUnswap(Object val,
boolean beforeRmv)
Should be called when entry getting unswapped.
|
protected org.h2.value.Value |
peekValue(int col) |
void |
setDeleted(boolean deleted) |
void |
setKey(long key) |
void |
setKeyAndVersion(org.h2.result.SearchRow old) |
void |
setSessionId(int sesId) |
void |
setVersion(int ver) |
protected org.h2.value.Value |
syncValue(long waitTime) |
String |
toString() |
protected org.h2.value.Value |
updateWeakValue(Object valObj)
Atomically updates weak value.
|
decrementRefCount, incrementRefCount, pointercommit, getByteCount, getMemory, getSessionId, getValueList, getVersion, isDeleted, isEmpty, setValuepublic static final int KEY_COL
public static final int VAL_COL
protected final GridH2RowDescriptor desc
protected long expirationTime
protected GridH2AbstractKeyValueRow(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.protected GridH2AbstractKeyValueRow(GridH2RowDescriptor desc)
GridH2KeyValueRowOffheapdesc - Row descriptor.public long expirationTime()
public int getColumnCount()
getColumnCount in interface org.h2.result.SearchRowgetColumnCount in class org.h2.result.Rowpublic void onSwap()
throws IgniteCheckedException
IgniteCheckedException - If failed.public void onUnswap(Object val, boolean beforeRmv) throws IgniteCheckedException
val - Value.beforeRmv - If this is unswap before remove.IgniteCheckedException - If failed.protected org.h2.value.Value updateWeakValue(Object valObj) throws IgniteCheckedException
valObj - New value.IgniteCheckedException - If failed.protected org.h2.value.Value syncValue(long waitTime)
waitTime - Time to await for value unswap.protected final org.h2.value.Value peekValue(int col)
col - Column index.public org.h2.value.Value getValue(int col)
getValue in interface org.h2.result.SearchRowgetValue in class org.h2.result.Rowprotected abstract void cache()
protected abstract org.h2.value.Value getOffheapValue(int col)
col - Column.protected void addOffheapRowId(SB sb)
public String toString()
toString in class org.h2.result.Rowpublic void setKeyAndVersion(org.h2.result.SearchRow old)
setKeyAndVersion in interface org.h2.result.SearchRowsetKeyAndVersion in class org.h2.result.Rowpublic void setKey(long key)
setKey in interface org.h2.result.SearchRowsetKey in class org.h2.result.Rowpublic org.h2.result.Row getCopy()
getCopy in class org.h2.result.Rowpublic void setDeleted(boolean deleted)
setDeleted in class org.h2.result.Rowpublic long getKey()
getKey in interface org.h2.result.SearchRowgetKey in class org.h2.result.Rowpublic void setSessionId(int sesId)
setSessionId in class org.h2.result.Rowpublic void setVersion(int ver)
setVersion in class org.h2.result.Row
Follow @ApacheIgnite
Ignite Fabric : ver. 1.6.0 Release Date : May 18 2016