use of org.apache.jena.tdb.base.recordbuffer.RecordBufferPageMgr in project jena by apache.
the class TestBPTreeRecords method beforeClass.
@BeforeClass
public static void beforeClass() {
oldNullOut = SystemTDB.NullOut;
SystemTDB.NullOut = true;
oldCheckingNode = BPlusTreeParams.CheckingNode;
BPlusTreeParams.CheckingNode = true;
oldCheckingBTree = BPlusTreeParams.CheckingTree;
BPlusTreeParams.CheckingTree = true;
// Which is 6 int records
blockSize = 4 * 8;
recordFactory = new RecordFactory(4, 0);
bufSizeRecord = RecordBufferPage.calcRecordSize(recordFactory, blockSize);
blkMgrRecords = BlockMgrFactory.createMem("BPTreeRecords", blockSize);
recordBufferPageMgr = new RecordBufferPageMgr(recordFactory, blkMgrRecords);
// B+Tree order does not matter.
bPlusTree = BPlusTree.attach(new BPlusTreeParams(3, recordFactory), null, blkMgrRecords);
}
Aggregations