public class GridH2RowDescriptor extends Object
| Constructor and Description |
|---|
GridH2RowDescriptor(IgniteH2Indexing idx,
H2TableDescriptor tbl,
GridQueryTypeDescriptor type)
Constructor.
|
| 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(CacheDataRow dataRow)
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.
|
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.
|
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 |
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.
|
GridQueryTypeDescriptor |
type()
Gets type descriptor.
|
int |
valueType() |
org.h2.value.Value |
wrap(Object obj,
int type)
Wraps object to respective
Value. |
public GridH2RowDescriptor(IgniteH2Indexing idx, H2TableDescriptor tbl, GridQueryTypeDescriptor type)
idx - Indexing.tbl - Table.type - Type descriptor.public final void refreshMetadataFromTypeDescriptor()
public IgniteH2Indexing indexing()
public GridQueryTypeDescriptor type()
public GridCacheContext<?,?> context()
public org.h2.value.Value wrap(Object obj, int type) throws IgniteCheckedException
Value.obj - Object.type - Value type.IgniteCheckedException - If failed.public GridH2Row createRow(CacheDataRow dataRow) throws IgniteCheckedException
dataRow - Data row.IgniteCheckedException - If failed.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.h2.result.SearchRow prepareProxyIndexRow(org.h2.result.SearchRow row)
row - Source row.public int getAlternativeColumnId(int colId)
colId - Column id.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.6.0 Release Date : July 10 2018