237238239240241242243244245246247
1000, 1001, 1002, 1003); Cursor cursor = cursor(plan, queryContext, queryBindings); cursor.openTopLevel(); testJump(cursor, idOrdering, 0); testJump(cursor, idOrdering, 1); cursor.closeTopLevel(); } @Test public void testDADA() {
252253254255256257258259260261262
1001, 1000, 1003, 1002); Cursor cursor = cursor(plan, queryContext, queryBindings); cursor.openTopLevel(); testJump(cursor, idOrdering, 0); testJump(cursor, idOrdering, -1); cursor.closeTopLevel(); } @Test public void testDADD() {
267268269270271272273274275276277
1001, 1000, 1003, 1002); Cursor cursor = cursor(plan, queryContext, queryBindings); cursor.openTopLevel(); testJump(cursor, idOrdering, 0); testJump(cursor, idOrdering, 1); cursor.closeTopLevel(); } @Test public void testDDAA() {
282283284285286287288289290291292
1002, 1003, 1000, 1001); Cursor cursor = cursor(plan, queryContext, queryBindings); cursor.openTopLevel(); testJump(cursor, idOrdering, 0); testJump(cursor, idOrdering, -1); cursor.closeTopLevel(); } @Test public void testDDAD() {
297298299300301302303304305306307
1002, 1003, 1000, 1001); Cursor cursor = cursor(plan, queryContext, queryBindings); cursor.openTopLevel(); testJump(cursor, idOrdering, 0); testJump(cursor, idOrdering, 1); cursor.closeTopLevel(); } @Test public void testDDDA() {
312313314315316317318319320321322
1003, 1002, 1001, 1000); Cursor cursor = cursor(plan, queryContext, queryBindings); cursor.openTopLevel(); testJump(cursor, idOrdering, 0); testJump(cursor, idOrdering, -1); cursor.closeTopLevel(); } @Test public void testDDDD() {
327328329330331332333334335336337
1003, 1002, 1001, 1000); Cursor cursor = cursor(plan, queryContext, queryBindings); cursor.openTopLevel(); testJump(cursor, idOrdering, 0); testJump(cursor, idOrdering, 1); cursor.closeTopLevel(); } private void testJump(Cursor cursor, long[] idOrdering, int nudge) { for (int start = 0; start < idOrdering.length; start++) {
110111112113114115116117118119120
1030, 2030, 1031, 2031, 1032, 2032, 1033); Cursor cursor = cursor(plan, queryContext, queryBindings); cursor.openTopLevel(); testJump(cursor, idOrdering, 0); testJump(cursor, idOrdering, -1); cursor.closeTopLevel(); } @Test public void testAAAD() {
125126127128129130131132133134135
2030, 1030, 2031, 1031, 2032, 1032, 1033); Cursor cursor = cursor(plan, queryContext, queryBindings); cursor.openTopLevel(); testJump(cursor, idOrdering, 0); testJump(cursor, idOrdering, 1); cursor.closeTopLevel(); } @Test public void testAADA() {
140141142143144145146147148149150
1031, 2031, 1030, 2030, 1033, 1032, 2032); Cursor cursor = cursor(plan, queryContext, queryBindings); cursor.openTopLevel(); testJump(cursor, idOrdering, 0); testJump(cursor, idOrdering, -1); cursor.closeTopLevel(); } @Test public void testAADD() {