@Override
public Row evaluate(Row original, QueryContext context, QueryBindings bindings)
{
long ax = original.value(1).getInt64();
return new OverlayingRow(original).overlay(1, -ax);
}
};
UpdateFunction updateBFunction = new UpdateFunction()
{
@Override
public boolean rowIsSelected(Row row)
{
return row.rowType().equals(bRowType);
}
@Override
public Row evaluate(Row original, QueryContext context, QueryBindings bindings)
{
long bx = original.value(1).getInt64();
return new OverlayingRow(original).overlay(1, -bx);
}
};
UpdatePlannable updateA = update_Default(groupScan_Default(aGroup), updateAFunction);
UpdatePlannable updateB = update_Default(groupScan_Default(bGroup), updateBFunction);
/*