public interface GridH2RowDescriptor extends org.gridgain.grid.util.offheap.unsafe.GridOffHeapSmartPointerFactory<GridH2KeyValueRowOffheap>
| Modifier and Type | Method and Description |
|---|---|
void |
cache(GridH2KeyValueRowOffheap row) |
Object |
columnValue(Object obj,
int col)
Gets column value by column index.
|
GridH2AbstractKeyValueRow |
createRow(Object key,
Object val,
long expirationTime)
Creates new row.
|
int |
fieldsCount() |
int |
fieldType(int col)
Gets value type for column index.
|
boolean |
isKeyColumn(int col) |
org.gridgain.grid.util.offheap.unsafe.GridUnsafeMemory |
memory() |
Object |
readFromSwap(Object key) |
GridH2IndexingSpi |
spi() |
void |
uncache(long ptr) |
boolean |
valueToString() |
int |
valueType() |
GridH2IndexingSpi spi()
GridH2AbstractKeyValueRow createRow(Object key, @Nullable Object val, long expirationTime) throws org.gridgain.grid.spi.GridSpiException
key - Key.val - Value.expirationTime - Expiration time in millis.org.gridgain.grid.spi.GridSpiException - If failed.Object readFromSwap(Object key) throws org.gridgain.grid.GridException
key - Cache key.org.gridgain.grid.GridException - If failed.int valueType()
boolean valueToString()
true If we need to store toString() of value.int fieldsCount()
int fieldType(int col)
col - Column index.Object columnValue(Object obj, int col)
obj - Object to extract value from.col - Column index.boolean isKeyColumn(int col)
col - Column index.True if column relates to key, false if it relates to value.org.gridgain.grid.util.offheap.unsafe.GridUnsafeMemory memory()
void cache(GridH2KeyValueRowOffheap row)
row - Deserialized offheap row to cache in heap.void uncache(long ptr)
ptr - Offheap pointer to remove from cache.Copyright © 2014. All rights reserved.