public abstract class GridH2AbstractKeyValueRow extends GridH2Row
GridIndexingTypeDescriptor.| Modifier and Type | Field and Description |
|---|---|
protected GridH2RowDescriptor |
desc |
protected long |
expirationTime |
static int |
KEY_COL
Key column.
|
static int |
VAL_COL
Value column.
|
static int |
VAL_STR_IDX |
STATE_INSERTED, STATE_NEW, STATE_REJECTED| 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 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)
Should be called when entry getting unswapped.
|
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() |
String |
toString() |
protected org.h2.value.Value |
updateWeakValue(org.h2.value.Value exp,
org.h2.value.Value upd)
Atomically updates weak value.
|
decrementRefCount, finishInsert, incrementRefCount, pointer, refreshState, waitInsertCompletecommit, getByteCount, getMemory, getSessionId, getValueList, getVersion, isDeleted, isEmpty, setValuepublic static final int KEY_COL
public static final int VAL_COL
public static final int VAL_STR_IDX
protected final GridH2RowDescriptor desc
protected long expirationTime
protected GridH2AbstractKeyValueRow(GridH2RowDescriptor desc, Object key, int keyType, @Nullable Object val, int valType, long expirationTime) throws org.gridgain.grid.spi.GridSpiException
desc - Row descriptor.key - Key.keyType - Key type.val - Value.valType - Value type.expirationTime - Expiration time.org.gridgain.grid.spi.GridSpiException - 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 org.gridgain.grid.GridException
org.gridgain.grid.spi.GridSpiException - If failed.org.gridgain.grid.GridExceptionpublic void onUnswap(Object val) throws org.gridgain.grid.GridException
val - Value.org.gridgain.grid.GridException - If failed.protected org.h2.value.Value updateWeakValue(org.h2.value.Value exp,
org.h2.value.Value upd)
exp - Expected value.upd - New value.protected org.h2.value.Value syncValue()
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.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.RowCopyright © 2014. All rights reserved.