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, pointer
commit, getByteCount, getMemory, getSessionId, getValueList, getVersion, isDeleted, isEmpty, setValue
public 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)
GridH2KeyValueRowOffheap
desc
- Row descriptor.public long expirationTime()
public int getColumnCount()
getColumnCount
in interface org.h2.result.SearchRow
getColumnCount
in class org.h2.result.Row
public 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.SearchRow
getValue
in class org.h2.result.Row
protected 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.Row
public void setKeyAndVersion(org.h2.result.SearchRow old)
setKeyAndVersion
in interface org.h2.result.SearchRow
setKeyAndVersion
in class org.h2.result.Row
public void setKey(long key)
setKey
in interface org.h2.result.SearchRow
setKey
in class org.h2.result.Row
public org.h2.result.Row getCopy()
getCopy
in class org.h2.result.Row
public void setDeleted(boolean deleted)
setDeleted
in class org.h2.result.Row
public long getKey()
getKey
in interface org.h2.result.SearchRow
getKey
in class org.h2.result.Row
public void setSessionId(int sesId)
setSessionId
in class org.h2.result.Row
public void setVersion(int ver)
setVersion
in class org.h2.result.Row
Follow @ApacheIgnite
Ignite Fabric : ver. 1.5.0-b1 Release Date : December 1 2015