Interface LeafFactory<KeyType,KeyBufferType>
- Type Parameters:
KeyType
-
- All Known Implementing Classes:
LeafFactoryFixedLong
,LeafFactoryFixedLongIndex
,LeafFactoryFixedLongRecords
,LeafFactoryVariableBytes
public interface LeafFactory<KeyType,KeyBufferType>
factory for creating leafs
- Author:
- angele
-
Method Summary
Modifier and TypeMethodDescriptioncreateLeaf
(byte[] data, BPlusTree<KeyType, KeyBufferType> bplustree) create a new leaf out of bytescreateLeaf
(BPlusKeys<KeyType, KeyBufferType> keys, long[] records, BPlusTree<KeyType, KeyBufferType> bplustree) create a new leaf with given records and the offset to the left nodecreateLeaf
(BPlusKeys<KeyType, KeyBufferType> keys, BPlusTree<KeyType, KeyBufferType> bplustree) create a new leafint
get the size of a bplus node in number of bytes
-
Method Details
-
createLeaf
BPlusLeaf<KeyType,KeyBufferType> createLeaf(BPlusKeys<KeyType, KeyBufferType> keys, BPlusTree<KeyType, KeyBufferType> bplustree) create a new leaf- Parameters:
keys
-- Returns:
-
createLeaf
BPlusLeaf<KeyType,KeyBufferType> createLeaf(BPlusKeys<KeyType, KeyBufferType> keys, long[] records, BPlusTree<KeyType, KeyBufferType> bplustree) create a new leaf with given records and the offset to the left node- Parameters:
keys
-records
-- Returns:
-
createLeaf
BPlusLeaf<KeyType,KeyBufferType> createLeaf(byte[] data, BPlusTree<KeyType, KeyBufferType> bplustree) create a new leaf out of bytes- Parameters:
data
-- Returns:
-
getNodeSize
int getNodeSize()get the size of a bplus node in number of bytes- Returns:
-