@Test
 public void test() {
   IndexBound bound = new IndexBound(row(idxRowType, 110L, 15L), new SetColumnSelector(0, 1));
   IndexKeyRange range = IndexKeyRange.bounded(idxRowType, bound, true, bound, true);
   API.Ordering ordering = new API.Ordering();
   ordering.append(ExpressionGenerators.field(idxRowType, 0), true);
   ordering.append(ExpressionGenerators.field(idxRowType, 1), true);
   Operator plan = indexScan_Default(idxRowType, range, ordering);
   compareRows(new Row[0], cursor(plan, queryContext, queryBindings));
 }
Beispiel #2
0
 @Override
 public Operator plan() {
   // select id, value, $1 from test
   Group group = ais().getGroup("test");
   Table testTable = ais().getTable("test", "test");
   RowType testRowType = schema().tableRowType(testTable);
   return project_Default(
       groupScan_Default(group),
       Arrays.asList(
           ExpressionGenerators.field(testRowType, 0),
           ExpressionGenerators.field(testRowType, 1),
           ExpressionGenerators.variable(MNumeric.INT.instance(true), 0)),
       testRowType);
 }