Class SelectionClauseWriter.Comparison
java.lang.Object
org.apache.sis.internal.sql.feature.SelectionClauseWriter.Comparison
- All Implemented Interfaces:
BiConsumer<Filter<AbstractFeature>,
SelectionClause>
- Enclosing class:
SelectionClauseWriter
private final class SelectionClauseWriter.Comparison
extends Object
implements BiConsumer<Filter<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
(Filter<AbstractFeature> f, SelectionClause sql) Invoked when a comparison 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 comparison operator symbol.
-
-
Constructor Details
-
Comparison
Comparison(String operator) Creates a new handler for the given operator.
-
-
Method Details
-
accept
Invoked when a comparison needs to be converted to SQL clause.- Specified by:
accept
in interfaceBiConsumer<Filter<AbstractFeature>,
SelectionClause>
-