Class CompressedBPlusNode<KeyType,KeyBufferType>
java.lang.Object
com.semedy.reasoner.edb.persistentstore.bplustree.CompressedBPlusNode<KeyType,KeyBufferType>
- All Implemented Interfaces:
CacheUnit
-
Constructor Summary
ConstructorDescriptionCompressedBPlusNode
(byte[] data, int offset, Map<Integer, CompressedBPlusNode<KeyType, KeyBufferType>> addressToCompressedNode, boolean internal) -
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
free up ressources at the end (CacheManager.clear)byte[]
getData()
getLast()
getNext()
boolean
boolean
is this unit releasablevoid
release()
Cache management calls this method to release the cache unit.void
void
pointers in a list for cache managementlong
releases this number of bytesvoid
touch()
touch a cache unit.
-
Constructor Details
-
CompressedBPlusNode
public CompressedBPlusNode(byte[] data, int offset, Map<Integer, CompressedBPlusNode<KeyType, throws IOExceptionKeyBufferType>> addressToCompressedNode, boolean internal) - Throws:
IOException
-
-
Method Details
-
touch
Description copied from interface:CacheUnit
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
Description copied from interface:CacheUnit
pointers in a list for cache management -
getNext
-
setLast
-
getLast
-
release
Description copied from interface:CacheUnit
Cache management calls this method to release the cache unit.- Specified by:
release
in interfaceCacheUnit
- Throws:
IOException
-
isReleasable
Description copied from interface:CacheUnit
is this unit releasable- Specified by:
isReleasable
in interfaceCacheUnit
- Returns:
- Throws:
IOException
-
sizeInBytes
public long sizeInBytes()Description copied from interface:CacheUnit
releases this number of bytes- Specified by:
sizeInBytes
in interfaceCacheUnit
- Returns:
-
destroy
Description copied from interface:CacheUnit
free up ressources at the end (CacheManager.clear)- Specified by:
destroy
in interfaceCacheUnit
- Throws:
IOException
-
getData
- Throws:
IOException
-
isInternalNode
public boolean isInternalNode()
-