public class H2RowDescriptor extends Object implements 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 partId,
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 val,
org.h2.value.Value ver)
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 |
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 final void refreshMetadataFromTypeDescriptor()
public IgniteH2Indexing indexing()
indexing in interface GridH2RowDescriptorpublic GridQueryTypeDescriptor type()
type in interface GridH2RowDescriptorpublic GridCacheContext<?,?> context()
context in interface GridH2RowDescriptorpublic org.h2.value.Value wrap(Object obj, int type) throws IgniteCheckedException
Value.wrap in interface GridH2RowDescriptorobj - Object.type - Value type.IgniteCheckedException - If failed.public GridH2Row createRow(KeyCacheObject key, int partId, @Nullable CacheObject val, GridCacheVersion ver, long expirationTime) throws IgniteCheckedException
createRow in interface GridH2RowDescriptorkey - Key.val - Value.ver - Version.expirationTime - Expiration time in millis.IgniteCheckedException - If failed.public int valueType()
valueType in interface GridH2RowDescriptorpublic int fieldsCount()
fieldsCount in interface GridH2RowDescriptorpublic int fieldType(int col)
fieldType in interface GridH2RowDescriptorcol - Column index.public Object columnValue(Object key, Object val, int col)
columnValue in interface GridH2RowDescriptorkey - Key.val - Value.col - Column index.public void setColumnValue(Object key, Object val, Object colVal, int col)
setColumnValue in interface GridH2RowDescriptorkey - Key.val - Value.colVal - Value to set to column.col - Column index.public boolean isColumnKeyProperty(int col)
isColumnKeyProperty in interface GridH2RowDescriptorcol - Column index.true if given column corresponds to a key property, false otherwisepublic boolean isKeyColumn(int colId)
isKeyColumn in interface GridH2RowDescriptorcolId - Column id.public boolean isValueColumn(int colId)
isValueColumn in interface GridH2RowDescriptorcolId - Column id.public boolean isKeyValueOrVersionColumn(int colId)
isKeyValueOrVersionColumn in interface GridH2RowDescriptorcolId - Column id.public boolean checkKeyIndexCondition(int[] masks,
int mask)
checkKeyIndexCondition in interface GridH2RowDescriptormasks - Array containing Index Condition masks for each column.mask - Index Condition to check.public void initValueCache(org.h2.value.Value[] valCache,
org.h2.value.Value key,
org.h2.value.Value val,
org.h2.value.Value ver)
initValueCache in interface GridH2RowDescriptorvalCache - Value cache.key - Key.val - Value.ver - Version.public org.h2.result.SearchRow prepareProxyIndexRow(org.h2.result.SearchRow row)
prepareProxyIndexRow in interface GridH2RowDescriptorrow - Source row.public int getAlternativeColumnId(int colId)
getAlternativeColumnId in interface GridH2RowDescriptorcolId - Column id.
Follow @ApacheIgnite
Ignite Fabric : ver. 2.3.0 Release Date : October 28 2017