Class CompressedBPlusNode<KeyType,KeyBufferType>
java.lang.Object
com.semedy.reasoner.edb.persistentstore.bplustree.CompressedBPlusNode<KeyType,KeyBufferType>
- All Implemented Interfaces:
CacheUnit
-
Constructor Summary
ConstructorsConstructorDescriptionCompressedBPlusNode(byte[] data, int offset, Map<Integer, CompressedBPlusNode<KeyType, KeyBufferType>> addressToCompressedNode, boolean internal) -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()free up ressources at the end (CacheManager.clear)byte[]getData()getLast()getNext()booleanbooleanis this unit releasablevoidrelease()Cache management calls this method to release the cache unit.voidvoidpointers in a list for cache managementlongreleases this number of bytesvoidtouch()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:CacheUnittouch 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
Description copied from interface:CacheUnitpointers in a list for cache management -
getNext
-
setLast
-
getLast
-
release
Description copied from interface:CacheUnitCache management calls this method to release the cache unit.- Specified by:
releasein interfaceCacheUnit- Throws:
IOException
-
isReleasable
Description copied from interface:CacheUnitis this unit releasable- Specified by:
isReleasablein interfaceCacheUnit- Returns:
- Throws:
IOException
-
sizeInBytes
public long sizeInBytes()Description copied from interface:CacheUnitreleases this number of bytes- Specified by:
sizeInBytesin interfaceCacheUnit- Returns:
-
destroy
Description copied from interface:CacheUnitfree up ressources at the end (CacheManager.clear)- Specified by:
destroyin interfaceCacheUnit- Throws:
IOException
-
getData
- Throws:
IOException
-
isInternalNode
public boolean isInternalNode()
-