Class LeafFactoryFixedLongIndex
java.lang.Object
com.semedy.reasoner.edb.persistentstore.bplustree.LeafFactoryFixedLongIndex
- All Implemented Interfaces:
LeafFactory<long[],
TupleBuffer>
-
Constructor Summary
ConstructorDescriptionLeafFactoryFixedLongIndex
(int numKeys, int keyLengthInBytes, DataFile bufferfile, KeysFactoryFixedLong keysFactory) LeafFactoryFixedLongIndex
(int numKeys, int keyLengthInBytes, KeysFactoryFixedLong keysFactory) -
Method Summary
Modifier and TypeMethodDescriptioncreateLeaf
(byte[] bytes, BPlusTree<long[], TupleBuffer> bplustree) Method for creating a leaf from the given byte array.createLeaf
(BPlusKeys<long[], TupleBuffer> keys, long[] records, BPlusTree<long[], TupleBuffer> bplustree) create a new leaf with given records and the offset to the left nodecreateLeaf
(BPlusKeys<long[], TupleBuffer> keys, BPlusTree<long[], TupleBuffer> bplustree) create new leafsint
get the size of a bplus node in number of bytes
-
Constructor Details
-
LeafFactoryFixedLongIndex
public LeafFactoryFixedLongIndex(int numKeys, int keyLengthInBytes, KeysFactoryFixedLong keysFactory) -
LeafFactoryFixedLongIndex
public LeafFactoryFixedLongIndex(int numKeys, int keyLengthInBytes, DataFile bufferfile, KeysFactoryFixedLong keysFactory)
-
-
Method Details
-
getNodeSize
public int getNodeSize()Description copied from interface:LeafFactory
get the size of a bplus node in number of bytes- Specified by:
getNodeSize
in interfaceLeafFactory<long[],
TupleBuffer> - Returns:
-
createLeaf
public BPlusLeafIndex createLeaf(BPlusKeys<long[], TupleBuffer> keys, BPlusTree<long[], TupleBuffer> bplustree) create new leafs- Specified by:
createLeaf
in interfaceLeafFactory<long[],
TupleBuffer> - Parameters:
keys
-bplustree
-- Returns:
-
createLeaf
public BPlusLeafIndex createLeaf(BPlusKeys<long[], TupleBuffer> keys, long[] records, BPlusTree<long[], TupleBuffer> bplustree) Description copied from interface:LeafFactory
create a new leaf with given records and the offset to the left node- Specified by:
createLeaf
in interfaceLeafFactory<long[],
TupleBuffer> - Returns:
-
createLeaf
Method for creating a leaf from the given byte array.- Specified by:
createLeaf
in interfaceLeafFactory<long[],
TupleBuffer> - Parameters:
bytes
-- Returns:
-