org.hsqldb.persist
Class Cache
- java.lang.Object
-
- org.hsqldb.map.BaseHashMap
-
- org.hsqldb.persist.Cache
-
public class Cache extends BaseHashMap
New implementation of row caching for CACHED tables.Manages memory for the cache map and its contents based on least recently used clearup.
Also provides services for selecting rows to be saved and passing them to DataFileCache.
- Since:
- 1.8.0
-
-
Field Summary
-
Fields inherited from class org.hsqldb.map.BaseHashMap
ACCESS_MAX, emptyObjectArray
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidclear()clears out the memory cacheCachedObjectget(long pos)Returns a row if in memory cache.IteratorgetIterator()-
Methods inherited from class org.hsqldb.map.BaseHashMap
capacity, getAccessCountCeiling, incrementAccessCount, isEmpty, setAccessCountFloor, size
-
-
-
-
Method Detail
-
get
public CachedObject get(long pos)
Returns a row if in memory cache.
-
clear
public void clear()
clears out the memory cache- Overrides:
clearin classBaseHashMap
-
getIterator
public Iterator getIterator()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG