use of org.apache.jena.dboe.index.RangeIndex in project jena by apache.
the class AbstractTestRangeIndex method tree_iter_2_01.
@Test
public void tree_iter_2_01() {
int[] keys = { 0, 2, 4, 6, 8, 1, 3, 5, 7, 9 };
RangeIndex rIndex = makeRangeIndex(2);
add(rIndex, keys);
List<Integer> x = toIntList(rIndex.iterator(r(4), r(6)));
List<Integer> expected = toIntList(4, 5);
assertEquals(expected, x);
}
use of org.apache.jena.dboe.index.RangeIndex in project jena by apache.
the class AbstractTestRangeIndex method tree_del_2_06.
@Test
public void tree_del_2_06() {
int[] keys1 = { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 };
int[] keys2 = { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 };
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_ins_2_02.
@Test
public void tree_ins_2_02() {
int[] keys = { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 };
RangeIndex rIndex = makeRangeIndex(2);
testInsert(rIndex, keys);
assertEquals(0, r(rIndex.minKey()));
assertEquals(9, r(rIndex.maxKey()));
}
use of org.apache.jena.dboe.index.RangeIndex in project jena by apache.
the class AbstractTestRangeIndex method tree_del_2_07.
@Test
public void tree_del_2_07() {
int[] keys1 = { 9, 8, 7, 6, 5, 4, 3, 2, 1, 0 };
int[] keys2 = { 0, 2, 4, 6, 8, 1, 3, 5, 7, 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_3.
@Test
public void tree_del_0_3() {
int[] keys1 = { 0, 1, 2 };
int[] keys2 = { 1, 0, 2 };
RangeIndex rIndex = makeRangeIndex(2);
testInsertDelete(rIndex, keys1, keys2);
}
Aggregations