use of org.apache.jena.tdb.index.bplustree.BPTreeRecords 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();
}
use of org.apache.jena.tdb.index.bplustree.BPTreeRecords in project jena by apache.
the class TestBPTreeRecords method bpt_records_3.
@Test
public void bpt_records_3() {
BPTreeRecords bpr = make();
for (int i = 0; bpr.getCount() < bpr.getMaxSize(); i++) insert(bpr, (i + 0x20));
check(bpr);
bpr.release();
}
Aggregations