public interface GridH2RowDescriptor
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkKeyIndexCondition(int[] masks,
int mask)
Checks if provided index condition is allowed for key column or key alias column.
|
Object |
columnValue(Object key,
Object val,
int col)
Gets column value by column index.
|
GridCacheContext<?,?> |
context()
Gets cache context for this row descriptor.
|
GridH2Row |
createRow(KeyCacheObject key,
int part,
CacheObject val,
GridCacheVersion ver,
long expirationTime)
Creates new row.
|
int |
fieldsCount() |
int |
fieldType(int col)
Gets value type for column index.
|
int |
getAlternativeColumnId(int colId)
Gets alternative column id that may substitute the given column id.
|
IgniteH2Indexing |
indexing()
Gets indexing.
|
void |
initValueCache(org.h2.value.Value[] valCache,
org.h2.value.Value key,
org.h2.value.Value value,
org.h2.value.Value version)
Initializes value cache with key, val and version.
|
boolean |
isColumnKeyProperty(int col)
Determine whether a column corresponds to a property of key or to one of value.
|
boolean |
isKeyColumn(int colId)
Checks if provided column id matches key column or key alias.
|
boolean |
isKeyValueOrVersionColumn(int colId)
Checks if provided column id matches key, key alias,
value, value alias or version column.
|
boolean |
isValueColumn(int colId)
Checks if provided column id matches value column or alias.
|
org.h2.result.SearchRow |
prepareProxyIndexRow(org.h2.result.SearchRow row)
Clones provided row and copies values of alias key and val columns
into respective key and val positions.
|
void |
setColumnValue(Object key,
Object val,
Object colVal,
int col)
Gets column value by column index.
|
GridQueryTypeDescriptor |
type()
Gets type descriptor.
|
int |
valueType() |
org.h2.value.Value |
wrap(Object o,
int type)
Wraps object to respective
Value. |
IgniteH2Indexing indexing()
GridQueryTypeDescriptor type()
GridCacheContext<?,?> context()
GridH2Row createRow(KeyCacheObject key, int part, @Nullable CacheObject val, GridCacheVersion ver, long expirationTime) throws IgniteCheckedException
key - Key.val - Value.ver - Version.expirationTime - Expiration time in millis.IgniteCheckedException - If failed.int valueType()
int fieldsCount()
int fieldType(int col)
col - Column index.Object columnValue(Object key, Object val, int col)
key - Key.val - Value.col - Column index.void setColumnValue(Object key, Object val, Object colVal, int col)
key - Key.val - Value.colVal - Value to set to column.col - Column index.boolean isColumnKeyProperty(int col)
col - Column index.true if given column corresponds to a key property, false otherwiseorg.h2.value.Value wrap(Object o, int type) throws IgniteCheckedException
Value.o - Object.type - Value type.IgniteCheckedException - If failed.boolean isKeyColumn(int colId)
colId - Column id.boolean isValueColumn(int colId)
colId - Column id.boolean isKeyValueOrVersionColumn(int colId)
colId - Column id.boolean checkKeyIndexCondition(int[] masks,
int mask)
masks - Array containing Index Condition masks for each column.mask - Index Condition to check.void initValueCache(org.h2.value.Value[] valCache,
org.h2.value.Value key,
org.h2.value.Value value,
org.h2.value.Value version)
valCache - Value cache.key - Key.value - Value.version - Version.org.h2.result.SearchRow prepareProxyIndexRow(org.h2.result.SearchRow row)
row - Source row.int getAlternativeColumnId(int colId)
colId - Column id.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.3.0 Release Date : October 28 2017