Package com.hp.hpl.jena.tdb.index.bplustree

Examples of com.hp.hpl.jena.tdb.index.bplustree.BPTreeRecords.release()


    @Test public void bpt_records_1()
    {
        BPTreeRecords bpr = make() ;
        fill(bpr) ;
        check(bpr) ;
        bpr.release() ;
    }
   
    @Before public void before() { blkMgrRecords.beginUpdate() ; }
    @After public void after() { blkMgrRecords.endUpdate() ; }
   
View Full Code Here


        BPTreePage z = bpr.split() ;
        assertTrue(z instanceof BPTreeRecords) ;
        assertEquals(s, z.getCount()+bpr.getCount()) ;
        check(bpr) ;
        check((BPTreeRecords)z) ;
        bpr.release() ;
        z.release() ;
    }

    @Test public void bpt_records_3()
    {
View Full Code Here

    {
        BPTreeRecords bpr = make() ;
        for ( int i = 0 ; bpr.getCount() < bpr.getMaxSize() ; i++ )
            insert(bpr, (i+0x20)) ;
        check(bpr) ;
        bpr.release() ;
    }
   
    @Test public void bpt_records_4()
    {
        BPTreeRecords bpr = make() ;
View Full Code Here

    {
        BPTreeRecords bpr = make() ;
        for ( int i = bpr.getMaxSize()-1 ; i >= 0 ; i-- )
            insert(bpr, i+0x20) ;
        check(bpr) ;
        bpr.release() ;
    }
   
    @Test public void bpt_records_5()
    {
        BPTreeRecords bpr = make() ;
View Full Code Here

        bpr.internalDelete(bpr.getHighRecord()) ;
        assertEquals(N-4, bpr.getCount()) ;
        check(bpr) ;
       
        bpr.release() ;
    }
   
    @Test public void bpt_records_6()
    {
        BPTreeRecords bpr = make() ;
View Full Code Here

       
        r = bpr.getHighRecord() ;
        r2 = search(bpr, r) ;
        assertTrue(Record.keyEQ(r, r2)) ;
       
        bpr.release() ;
    }
   
    @Test public void bpt_shift_1()
    {
        BPTreeRecords bpr1 = make() ;
View Full Code Here

        //assertTrue(Record.keyEQ(r, RecordTestLib.intToRecord(10))) ;
        contains(bpr1) ;
        contains(bpr2, 10) ;
       
        bpr1.release() ;
        bpr2.release() ;

    }
   
    @Test public void bpt_shift_2()
    {
View Full Code Here

       
        assertTrue(Record.keyEQ(r, RecordLib.intToRecord(10))) ;
        contains(bpr1) ;
        contains(bpr2, 10) ;
        bpr1.release() ;
        bpr2.release() ;
    }

    @Test public void bpt_shift_3()
    {
        BPTreeRecords bpr1 = make() ;
View Full Code Here

        assertTrue(r+" != "+RecordLib.intToRecord(10), Record.keyEQ(r, RecordLib.intToRecord(10))) ;
        contains(bpr1, 10) ;
        contains(bpr2, 20, 99) ;
        bpr1.release() ;
        bpr2.release() ;
    }

    @Test public void bpt_shift_4()
    {
        BPTreeRecords bpr1 = make() ;
View Full Code Here

        assertTrue(Record.keyEQ(r, RecordLib.intToRecord(10))) ;
       
        contains(bpr1, 20) ;
        contains(bpr2, 5, 10) ;
        bpr1.release() ;
        bpr2.release() ;
    }
   
    @Test public void bpt_merge_1()
    {
        BPTreeRecords bpr1 = make() ;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.