Class AbstractCacheUnit
java.lang.Object
com.semedy.reasoner.edb.persistentstore.AbstractCacheUnit
- All Implemented Interfaces:
CacheUnit
- Direct Known Subclasses:
CachedJoinResult,InternalCachedJsonResult,InternalCachedTripleResult,SwappableRelation
abstract cache unit
- Author:
- Angele
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLast()getNext()abstract booleanis this unit releasableabstract voidrelease()Cache management calls this method to release the cache unit.voidvoidpointers in a list for cache managementabstract longreleases this number of bytesvoidtouch()touch a cache unit.
-
Constructor Details
-
AbstractCacheUnit
public AbstractCacheUnit()
-
-
Method Details
-
touch
touch a cache unit.
this means for cache management that this unit
will be used and has a lower prio to be released- Specified by:
touchin interfaceCacheUnit- Throws:
IOException
-
setNext
pointers in a list for cache management -
getNext
-
setLast
-
getLast
-
release
Cache management calls this method to release the cache unit.- Specified by:
releasein interfaceCacheUnit- Throws:
IOExceptionEDBException
-
isReleasable
is this unit releasable- Specified by:
isReleasablein interfaceCacheUnit- Returns:
- Throws:
IOException
-
sizeInBytes
public abstract long sizeInBytes()releases this number of bytes- Specified by:
sizeInBytesin interfaceCacheUnit- Returns:
-