Class IndexRowCache
- java.lang.Object
-
- org.apache.ignite.internal.cache.query.index.sorted.IndexRowCache
-
- All Implemented Interfaces:
GridQueryRowCacheCleaner
public class IndexRowCache extends Object implements GridQueryRowCacheCleaner
H2 row cache.
-
-
Constructor Summary
Constructors Constructor Description IndexRowCache(CacheGroupContext grpCtx, int maxSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IndexRowImplget(long link)Get row by link.voidonCacheRegistered()Cache registration callback.booleanonCacheUnregistered(GridCacheContextInfo cacheInfo)Cache un-registration callback.voidput(IndexRowImpl row)Put row by link.voidremove(long link)Remove row by link.intsize()
-
-
-
Constructor Detail
-
IndexRowCache
public IndexRowCache(CacheGroupContext grpCtx, int maxSize)
- Parameters:
grpCtx- Cache group context.
-
-
Method Detail
-
get
public IndexRowImpl get(long link) throws IgniteCheckedException
Get row by link.- Parameters:
link- Link.- Returns:
- Cached on-heap row.
- Throws:
IgniteCheckedException- On error.
-
put
public void put(IndexRowImpl row)
Put row by link.- Parameters:
row- Row.
-
remove
public void remove(long link)
Remove row by link.- Specified by:
removein interfaceGridQueryRowCacheCleaner- Parameters:
link- Link to remove.
-
onCacheRegistered
public void onCacheRegistered()
Cache registration callback.
-
onCacheUnregistered
public boolean onCacheUnregistered(GridCacheContextInfo cacheInfo)
Cache un-registration callback.- Parameters:
cacheInfo- Cache context info.- Returns:
Trueif there are no more usages for the given cache group.
-
size
public int size()
- Returns:
- Cached rows count.
-
-