public class GridQueryRowDescriptorImpl extends Object implements GridQueryRowDescriptor
| Modifier and Type | Field and Description |
|---|---|
static int |
COL_NOT_EXISTS
Non existent column.
|
| Constructor and Description |
|---|
GridQueryRowDescriptorImpl(GridCacheContextInfo<?,?> cacheInfo,
GridQueryTypeDescriptor type)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
@Nullable GridCacheContext<?,?> |
context()
Gets cache context for this row descriptor.
|
int |
fieldsCount() |
int |
getAlternativeColumnId(int colId)
Gets alternative column id that may substitute the given column id.
|
Object |
getFieldValue(Object key,
Object val,
int fieldIdx)
Gets field value by field index.
|
Set<String> |
getRowKeyColumnNames()
Gets a copy of a set of table key column names.
|
boolean |
isFieldKeyProperty(int fieldIdx)
Determine whether a field 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 |
isValueColumn(int colId)
Checks if provided column id matches value column or alias.
|
void |
onMetadataUpdated()
Callback for table metadata update event.
|
void |
setFieldValue(Object key,
Object val,
Object fieldVal,
int fieldIdx)
Sets field value by field index.
|
GridQueryTypeDescriptor |
type()
Gets type descriptor.
|
public static final int COL_NOT_EXISTS
public GridQueryRowDescriptorImpl(GridCacheContextInfo<?,?> cacheInfo, GridQueryTypeDescriptor type)
cacheInfo - Cache context.type - Type descriptor.public final void onMetadataUpdated()
onMetadataUpdated in interface GridQueryRowDescriptorpublic GridQueryTypeDescriptor type()
type in interface GridQueryRowDescriptor@Nullable public @Nullable GridCacheContext<?,?> context()
context in interface GridQueryRowDescriptorpublic int fieldsCount()
fieldsCount in interface GridQueryRowDescriptorpublic Object getFieldValue(Object key, Object val, int fieldIdx)
getFieldValue in interface GridQueryRowDescriptorkey - Key.val - Value.fieldIdx - Field index.public void setFieldValue(Object key, Object val, Object fieldVal, int fieldIdx)
setFieldValue in interface GridQueryRowDescriptorkey - Key.val - Value.fieldVal - Value to set to field.fieldIdx - Field index.public boolean isFieldKeyProperty(int fieldIdx)
isFieldKeyProperty in interface GridQueryRowDescriptorfieldIdx - Field index.true if given field corresponds to a key property, false otherwise.public boolean isKeyColumn(int colId)
isKeyColumn in interface GridQueryRowDescriptorcolId - Column id.public boolean isValueColumn(int colId)
isValueColumn in interface GridQueryRowDescriptorcolId - Column id.public int getAlternativeColumnId(int colId)
getAlternativeColumnId in interface GridQueryRowDescriptorcolId - Column id.public Set<String> getRowKeyColumnNames()
getRowKeyColumnNames in interface GridQueryRowDescriptor
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.15.0 Release Date : April 25 2023