| 1 |
/* |
| 2 |
* Copyright 2004-2023 H2 Group. Multiple-Licensed under the MPL 2.0, |
| 3 |
* and the EPL 1.0 (https://h2database.com/html/license.html). |
| 4 |
* Initial Developer: H2 Group |
| 5 |
*/ |
| 6 |
package org.h2.expression; |
| 7 |
|
| 8 |
import org.h2.engine.SessionLocal; |
| 9 |
import org.h2.table.ColumnResolver; |
| 10 |
import org.h2.table.TableFilter; |
| 11 |
|
| 12 |
/** |
| 13 |
* Operation without subexpressions. |
| 14 |
*/ |
| 15 |
public abstract class Operation0 extends Expression { |
| 16 |
|
| 17 |
protected Operation0() { |
| 18 |
} |
| 19 |
|
| 20 |
@Override |
| 21 |
public void mapColumns(ColumnResolver resolver, int level, int state) { |
| 22 |
// Nothing to do |
| 23 |
} |
| 24 |
|
| 25 |
@Override |
| 26 |
public Expression optimize(SessionLocal session) { |
| 27 |
return this; |
| 28 |
} |
| 29 |
|
| 30 |
@Override |
| 31 |
public void setEvaluatable(TableFilter tableFilter, boolean value) { |
| 32 |
// Nothing to do |
| 33 |
} |
| 34 |
|
| 35 |
@Override |
| 36 |
public void updateAggregate(SessionLocal session, int stage) { |
| 37 |
// Nothing to do |
| 38 |
} |
| 39 |
|
| 40 |
} |