public void testADDA()
{
API.Ordering ordering = ordering(A, ASC, B, DESC, C, DESC, ID, ASC);
long[] idOrdering = longs(1015, 1014, 1013, 1012, 1011, 1010);
{
Operator plan = indexScan_Default(idxRowType, bounded(1, 11, true, 13, true), ordering);
Cursor cursor = cursor(plan, queryContext, queryBindings);
cursor.openTopLevel();
testJump(cursor, idOrdering, 0);
testJump(cursor, idOrdering, -1);
cursor.closeTopLevel();
}
{
Operator plan = indexScan_Default(idxRowType, bounded(1, 11, true, 13, false), ordering);
Cursor cursor = cursor(plan, queryContext, queryBindings);
cursor.openTopLevel();
testJump(cursor, last4(idOrdering), 0);
testJump(cursor, last4(idOrdering), -1);
cursor.closeTopLevel();
}
{
Operator plan = indexScan_Default(idxRowType, bounded(1, 11, false, 13, true), ordering);
Cursor cursor = cursor(plan, queryContext, queryBindings);
cursor.openTopLevel();
testJump(cursor, first4(idOrdering), 0);
testJump(cursor, first4(idOrdering), -1);
cursor.closeTopLevel();
}
{
Operator plan = indexScan_Default(idxRowType, bounded(1, 11, false, 13, false), ordering);
Cursor cursor = cursor(plan, queryContext, queryBindings);
cursor.openTopLevel();
testJump(cursor, middle2(idOrdering), 0);
testJump(cursor, middle2(idOrdering), -1);
cursor.closeTopLevel();