Class LeafFactoryFixedLongIndex
java.lang.Object
com.semedy.reasoner.edb.persistentstore.bplustree.LeafFactoryFixedLongIndex
- All Implemented Interfaces:
LeafFactory<long[],TupleBuffer>
-
Constructor Summary
ConstructorsConstructorDescriptionLeafFactoryFixedLongIndex(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 leafsintget 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:LeafFactoryget the size of a bplus node in number of bytes- Specified by:
getNodeSizein interfaceLeafFactory<long[],TupleBuffer> - Returns:
-
createLeaf
public BPlusLeafIndex createLeaf(BPlusKeys<long[], TupleBuffer> keys, BPlusTree<long[], TupleBuffer> bplustree) create new leafs- Specified by:
createLeafin 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:LeafFactorycreate a new leaf with given records and the offset to the left node- Specified by:
createLeafin interfaceLeafFactory<long[],TupleBuffer> - Returns:
-
createLeaf
Method for creating a leaf from the given byte array.- Specified by:
createLeafin interfaceLeafFactory<long[],TupleBuffer> - Parameters:
bytes-- Returns:
-