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 boolean
is this unit releasableabstract void
release()
Cache management calls this method to release the cache unit.void
void
pointers in a list for cache managementabstract long
releases this number of bytesvoid
touch()
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:
touch
in 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:
release
in interfaceCacheUnit
- Throws:
IOException
EDBException
-
isReleasable
is this unit releasable- Specified by:
isReleasable
in interfaceCacheUnit
- Returns:
- Throws:
IOException
-
sizeInBytes
public abstract long sizeInBytes()releases this number of bytes- Specified by:
sizeInBytes
in interfaceCacheUnit
- Returns:
-