Class H2CacheRow
- java.lang.Object
-
- org.apache.ignite.internal.processors.query.h2.opt.H2Row
-
- org.apache.ignite.internal.processors.query.h2.opt.H2CacheRow
-
- All Implemented Interfaces:
CacheDataRow,CacheSearchRow,Storable,org.h2.result.Row,org.h2.result.SearchRow
public class H2CacheRow extends H2Row implements CacheDataRow
Table row implementation based onGridQueryTypeDescriptor.
-
-
Constructor Summary
Constructors Constructor Description H2CacheRow(GridH2RowDescriptor desc, CacheDataRow row)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcacheId()voidclearValuesCache()Clear values cache.longexpireTime()org.h2.value.ValuegetCached(int colIdx)Get cached value (if any).intgetColumnCount()GridQueryRowDescriptorgetDesc()CacheDataRowgetRow()org.h2.value.ValuegetValue(int col)inthash()inthashCode()booleanindexSearchRow()KeyCacheObjectkey()voidkey(KeyCacheObject key)longlink()voidlink(long link)intpartition()voidprepareValuesCache()Prepare values cache.voidsetKey(long key)voidsetValue(int idx, org.h2.value.Value v)intsize()StringtoString()CacheObjectvalue()GridCacheVersionversion()-
Methods inherited from class org.apache.ignite.internal.processors.query.h2.opt.H2Row
commit, getByteCount, getCopy, getKey, getMemory, getSessionId, getValueList, getVersion, isDeleted, isEmpty, setDeleted, setKeyAndVersion, setSessionId, setVersion
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.ignite.internal.processors.cache.persistence.CacheDataRow
ioVersions
-
-
-
-
Constructor Detail
-
H2CacheRow
public H2CacheRow(GridH2RowDescriptor desc, CacheDataRow row)
Constructor.- Parameters:
desc- Row descriptor.row- Row.
-
-
Method Detail
-
getColumnCount
public int getColumnCount()
- Specified by:
getColumnCountin interfaceorg.h2.result.SearchRow
-
getValue
public org.h2.value.Value getValue(int col)
- Specified by:
getValuein interfaceorg.h2.result.SearchRow
-
prepareValuesCache
public void prepareValuesCache()
Prepare values cache.
-
clearValuesCache
public void clearValuesCache()
Clear values cache.
-
getCached
public org.h2.value.Value getCached(int colIdx)
Get cached value (if any).- Parameters:
colIdx- Column index.- Returns:
- Value.
-
getRow
public CacheDataRow getRow()
- Returns:
- Cache data row.
-
key
public KeyCacheObject key()
- Specified by:
keyin interfaceCacheSearchRow
-
key
public void key(KeyCacheObject key)
- Specified by:
keyin interfaceCacheDataRow
-
value
public CacheObject value()
- Specified by:
valuein interfaceCacheDataRow
-
version
public GridCacheVersion version()
- Specified by:
versionin interfaceCacheDataRow
-
partition
public int partition()
- Specified by:
partitionin interfaceCacheDataRow- Specified by:
partitionin interfaceStorable
-
expireTime
public long expireTime()
- Specified by:
expireTimein interfaceCacheDataRow- Overrides:
expireTimein classH2Row- Returns:
- Expire time.
-
link
public long link()
- Specified by:
linkin interfaceCacheSearchRow- Specified by:
linkin interfaceStorable
-
link
public void link(long link)
- Specified by:
linkin interfaceCacheDataRow- Specified by:
linkin interfaceStorable
-
hash
public int hash()
- Specified by:
hashin interfaceCacheSearchRow
-
cacheId
public int cacheId()
- Specified by:
cacheIdin interfaceCacheSearchRow
-
indexSearchRow
public boolean indexSearchRow()
- Specified by:
indexSearchRowin classH2Row- Returns:
Truefor rows used for index search.
-
setKey
public void setKey(long key)
-
setValue
public void setValue(int idx, org.h2.value.Value v)- Specified by:
setValuein interfaceorg.h2.result.SearchRow
-
getDesc
public GridQueryRowDescriptor getDesc()
- Returns:
- H2 row descriptor.
-
-