/** Create the java structures to correspond to * the supplied block managers for the persistent storage. * Initialize the persistent storage to the empty B+Tree if it does not exist. */ public static BPlusTree createNonTxn(BPlusTreeParams params, BufferChannel chan, BlockMgr blkMgrNodes, BlockMgr blkMgrLeaves) { // Allocate a random ComponentId BPlusTree bpt = create(null, params, chan, blkMgrNodes, blkMgrLeaves) ; bpt.nonTransactional() ; return bpt ; }
/** Create the java structures to correspond to * the supplied block managers for the persistent storage. * Initialize the persistent storage to the empty B+Tree if it does not exist. */ public static BPlusTree createNonTxn(BPlusTreeParams params, BufferChannel chan, BlockMgr blkMgrNodes, BlockMgr blkMgrLeaves) { // Allocate a random ComponentId BPlusTree bpt = create(null, params, chan, blkMgrNodes, blkMgrLeaves) ; bpt.nonTransactional() ; return bpt ; }
public static RangeIndex buildRangeIndex(FileSet mem, RecordFactory factory, IndexParams indexParams) { BPlusTree bpt = BPlusTreeFactory.makeMem(5, factory.keyLength(), factory.valueLength()) ; bpt.nonTransactional() ; return bpt ; }
public static RangeIndex buildRangeIndex(FileSet mem, RecordFactory factory, IndexParams indexParams) { BPlusTree bpt = BPlusTreeFactory.makeMem(5, factory.keyLength(), factory.valueLength()) ; bpt.nonTransactional() ; return bpt ; }
@Override protected BPlusTree makeRangeIndex(int order, int minRecords) { BPlusTree bpt = BPlusTreeFactory.makeMem(order, minRecords, RecordLib.TestRecordLength, 0) ; if ( addLogger ) { // Put it in but disable it so that it can be enabled // in the middle of a complex operation. LogCtl.disable(BlockMgr.class) ; bpt = BPlusTreeFactory.addLogging(bpt) ; } if ( addTracker ) bpt = BPlusTreeFactory.addTracking(bpt) ; bpt.nonTransactional() ; return bpt ; } }
@Override protected BPlusTree makeIndex(int order, int minRecords) { BPlusTree bpt = BPlusTreeFactory.makeMem(order, minRecords, RecordLib.TestRecordLength, 0) ; if ( addLogger ) { // Put it in but disable it so that it can be enabled // in the middle of a complex operation. LogCtl.disable(BlockMgr.class) ; bpt = BPlusTreeFactory.addLogging(bpt) ; } if ( addTracker ) bpt = BPlusTreeFactory.addTracking(bpt) ; bpt.nonTransactional() ; return bpt ; } }
@Override protected BPlusTree makeIndex(int order, int minRecords) { BPlusTree bpt = BPlusTreeFactory.makeMem(order, minRecords, RecordLib.TestRecordLength, 0) ; if ( addLogger ) { // Put it in but disable it so that it can be enabled // in the middle of a complex operation. LogCtl.disable(BlockMgr.class) ; bpt = BPlusTreeFactory.addLogging(bpt) ; } if ( addTracker ) bpt = BPlusTreeFactory.addTracking(bpt) ; bpt.nonTransactional() ; return bpt ; } }
@Override protected BPlusTree makeRangeIndex(int order, int minRecords) { BPlusTree bpt = BPlusTreeFactory.makeMem(order, minRecords, RecordLib.TestRecordLength, 0) ; if ( addLogger ) { // Put it in but disable it so that it can be enabled // in the middle of a complex operation. LogCtl.disable(BlockMgr.class) ; bpt = BPlusTreeFactory.addLogging(bpt) ; } if ( addTracker ) bpt = BPlusTreeFactory.addTracking(bpt) ; bpt.nonTransactional() ; return bpt ; } }
@Override protected void runOneTest(int testCount, int order, int size) { // //System.err.println("runOneTest("+order+","+size+")") ; BPlusTree bpt = BPlusTreeFactory.makeMem(order, Sys.SizeOfInt, 0) ; bpt = BPlusTreeFactory.addTracking(bpt) ; bpt.nonTransactional() ; IndexTestLib.randTest(bpt, 5*size, size, true); bpt.close() ; // Transaction. // BPlusTree bpt = BPlusTreeFactory.makeMem(order, SystemLz.SizeOfInt, 0) ; // Journal journal = Journal.create(Location.mem()) ; // Transactional holder = TransactionalFactory.create(journal, bpt) ; // holder.begin(ReadWrite.WRITE); // IndexTestLib.randTest(bpt, 5*size, size, true); // holder.commit() ; // holder.end() ; } }