Class SelectionClauseWriter.Arithmetic
java.lang.Object
org.apache.sis.internal.sql.feature.SelectionClauseWriter.Arithmetic
- All Implemented Interfaces:
BiConsumer<Expression<AbstractFeature,
?>, SelectionClause>
- Enclosing class:
SelectionClauseWriter
private final class SelectionClauseWriter.Arithmetic
extends Object
implements BiConsumer<Expression<AbstractFeature,?>,SelectionClause>
Handler for converting
+
, -
, *
or /
filter into SQL clauses.
The filter is expected to contain exactly two operands, otherwise the SQL is declared invalid.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(Expression<AbstractFeature, ?> expression, SelectionClause sql) Invoked when an arithmetic expression needs to be converted to SQL clause.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.BiConsumer
andThen
-
Field Details
-
operator
The arithmetic operator symbol.
-
-
Constructor Details
-
Arithmetic
Arithmetic(String operator) Creates a new handler for the given operator.
-
-
Method Details
-
accept
Invoked when an arithmetic expression needs to be converted to SQL clause.- Specified by:
accept
in interfaceBiConsumer<Expression<AbstractFeature,
?>, SelectionClause>
-