use of org.apache.jena.dboe.index.RangeIndex in project jena by apache.
the class AbstractTestRangeIndex method tree_del_2_05.
@Test
public void tree_del_2_05() {
int[] keys1 = { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 };
int[] keys2 = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
RangeIndex rIndex = makeRangeIndex(2);
testInsertDelete(rIndex, keys1, keys2);
}
use of org.apache.jena.dboe.index.RangeIndex in project jena by apache.
the class AbstractTestRangeIndex method tree_del_0_1.
@Test
public void tree_del_0_1() {
int[] keys1 = { 0, 1, 2 };
int[] keys2 = { 0, 1, 2 };
RangeIndex rIndex = makeRangeIndex(2);
testInsertDelete(rIndex, keys1, keys2);
}
use of org.apache.jena.dboe.index.RangeIndex in project jena by apache.
the class AbstractTestRangeIndex method tree_del_2_12.
@Test
public void tree_del_2_12() {
int[] keys1 = { 0, 2, 4, 6, 8, 1, 3, 5, 7, 9 };
int[] keys2 = { 0, 9, 2, 7, 4, 5, 6, 3, 8, 1 };
RangeIndex rIndex = makeRangeIndex(2);
testInsertDelete(rIndex, keys1, keys2);
}
use of org.apache.jena.dboe.index.RangeIndex in project jena by apache.
the class AbstractTestRangeIndex method tree_iter_0_04.
@Test
public void tree_iter_0_04() {
int[] keys = { 1, 2, 3, 4, 5 };
RangeIndex rIndex = makeRangeIndex(5);
add(rIndex, keys);
List<Integer> x = toIntList(rIndex.iterator(r(0), r(0)));
List<Integer> expected = toIntList();
assertEquals(expected, x);
}
use of org.apache.jena.dboe.index.RangeIndex in project jena by apache.
the class AbstractTestRangeIndex method testClear.
protected void testClear(int N) {
// Slice is 1000.
int[] keys = new int[N];
for (int i = 0; i < keys.length; i++) keys[i] = i;
RangeIndex rIndex = makeRangeIndex(3);
add(rIndex, keys);
if (N > 0)
assertFalse(rIndex.isEmpty());
rIndex.clear();
assertTrue(rIndex.isEmpty());
}
Aggregations