public class GridH2RowDescriptor extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
COL_NOT_EXISTS
Non existent column.
|
| Constructor and Description |
|---|
GridH2RowDescriptor(H2TableDescriptor tbl,
GridQueryTypeDescriptor type)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
GridCacheContextInfo<?,?> |
cacheInfo()
Gets cache context info for this row descriptor.
|
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.
|
@Nullable GridCacheContext<?,?> |
context()
Gets cache context for this row descriptor.
|
H2CacheRow |
createRow(CacheDataRow dataRow)
Create new row for update operation.
|
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.
|
Set<String> |
getRowKeyColumnNames()
Gets a copy of a set of table key column names.
|
IgniteH2Indexing |
indexing()
Gets indexing.
|
boolean |
isColumnKeyProperty(int col)
Determine whether a column corresponds to a property of key or to one of value.
|
boolean |
isKeyAliasColumn(int colId)
Checks if provided column id matches key alias column.
|
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 |
isValueAliasColumn(int colId)
Checks if provided column id matches value alias column.
|
boolean |
isValueColumn(int colId)
Checks if provided column id matches value column or alias.
|
int |
keyType() |
org.gridgain.internal.h2.result.SearchRow |
prepareProxyIndexRow(org.gridgain.internal.h2.result.SearchRow row)
Clones provided row and copies values of alias key and val columns
into respective key and val positions.
|
void |
refreshMetadataFromTypeDescriptor()
Update metadata of this row descriptor according to current state of type descriptor.
|
void |
setColumnValue(Object key,
Object val,
Object colVal,
int col)
Gets column value by column index.
|
H2TableDescriptor |
tableDescriptor()
Gets table descriptor.
|
GridQueryTypeDescriptor |
type()
Gets type descriptor.
|
int |
valueType() |
public static final int COL_NOT_EXISTS
public GridH2RowDescriptor(H2TableDescriptor tbl, GridQueryTypeDescriptor type)
tbl - Table.type - Type descriptor.public H2TableDescriptor tableDescriptor()
public final void refreshMetadataFromTypeDescriptor()
public IgniteH2Indexing indexing()
public GridQueryTypeDescriptor type()
public GridCacheContextInfo<?,?> cacheInfo()
@Nullable public @Nullable GridCacheContext<?,?> context()
public H2CacheRow createRow(CacheDataRow dataRow) throws IgniteCheckedException
dataRow - Data row.IgniteCheckedException - If failed.public int keyType()
public int valueType()
public int fieldsCount()
public int fieldType(int col)
col - Column index.public Object columnValue(Object key, Object val, int col)
key - Key.val - Value.col - Column index.public void setColumnValue(Object key, Object val, Object colVal, int col)
key - Key.val - Value.colVal - Value to set to column.col - Column index.public boolean isColumnKeyProperty(int col)
col - Column index.true if given column corresponds to a key property, false otherwisepublic boolean isKeyColumn(int colId)
colId - Column id.public boolean isKeyAliasColumn(int colId)
colId - Column id.public boolean isValueColumn(int colId)
colId - Column id.public boolean isValueAliasColumn(int colId)
colId - Column id.public boolean isKeyValueOrVersionColumn(int colId)
colId - Column id.public boolean checkKeyIndexCondition(int[] masks,
int mask)
masks - Array containing Index Condition masks for each column.mask - Index Condition to check.public org.gridgain.internal.h2.result.SearchRow prepareProxyIndexRow(org.gridgain.internal.h2.result.SearchRow row)
row - Source row.public int getAlternativeColumnId(int colId)
colId - Column id.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 8.9.17-p1 Release Date : November 27 2025