Class IndexRowCache

    • Constructor Detail

      • IndexRowCache

        public IndexRowCache​(CacheGroupContext grpCtx,
                             int maxSize)
        Parameters:
        grpCtx - Cache group context.
    • Method Detail

      • 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:
        remove in interface GridQueryRowCacheCleaner
        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:
        True if there are no more usages for the given cache group.
      • size

        public int size()
        Returns:
        Cached rows count.