new UpdateFunction()
{
@Override
public Row evaluate(Row original, QueryContext context, QueryBindings bindings)
{
OverlayingRow updatedRow = new OverlayingRow(original);
long i = original.value(0).getInt64();
updatedRow.overlay(0, i - 1000000);
return updatedRow;
}
@Override
public boolean rowIsSelected(Row row)
{
return true;
}
});
final UpdatePlannable revertPlan =
update_Default(scanPlan,
new UpdateFunction()
{
@Override
public Row evaluate(Row original, QueryContext context, QueryBindings bindings)
{
OverlayingRow updatedRow = new OverlayingRow(original);
long i = original.value(0).getInt64();
updatedRow.overlay(0, i + 1000000);
return updatedRow;
}
@Override
public boolean rowIsSelected(Row row)