Search in sources :

Example 1 with BPTreePage

use of org.apache.jena.tdb.index.bplustree.BPTreePage in project jena by apache.

the class TestBPTreeRecords method bpt_records_2.

@Test
public void bpt_records_2() {
    BPTreeRecords bpr = make();
    fill(bpr);
    int s = bpr.getCount();
    assertTrue(bpr.isFull());
    BPTreePage z = bpr.split();
    assertTrue(z instanceof BPTreeRecords);
    assertEquals(s, z.getCount() + bpr.getCount());
    check(bpr);
    check((BPTreeRecords) z);
    bpr.release();
    z.release();
}
Also used : BPTreePage(org.apache.jena.tdb.index.bplustree.BPTreePage) BPTreeRecords(org.apache.jena.tdb.index.bplustree.BPTreeRecords) Test(org.junit.Test) BaseTest(org.apache.jena.atlas.junit.BaseTest)

Aggregations

BaseTest (org.apache.jena.atlas.junit.BaseTest)1 BPTreePage (org.apache.jena.tdb.index.bplustree.BPTreePage)1 BPTreeRecords (org.apache.jena.tdb.index.bplustree.BPTreeRecords)1 Test (org.junit.Test)1