Class SelectionClauseWriter.Logic

java.lang.Object
org.apache.sis.internal.sql.feature.SelectionClauseWriter.Logic
All Implemented Interfaces:
BiConsumer<Filter<AbstractFeature>,SelectionClause>
Enclosing class:
SelectionClauseWriter

private final class SelectionClauseWriter.Logic extends Object implements BiConsumer<Filter<AbstractFeature>,SelectionClause>
Handler for converting an AND, OR or NOT filter into SQL clauses. The filter can contain an arbitrary number of operands, all separated by the same keyword. All operands are grouped between parenthesis.
  • Field Details

    • operator

      private final String operator
      The AND, OR or NOT keyword. Shall contain a trailing space and eventually a leading space.
    • unary

      private final boolean unary
      Whether this operator is the unary operator. In that case exactly one operand is expected and the keyword will be written before the operand instead of between the operands.
  • Constructor Details

    • Logic

      Logic(String operator, boolean unary)
      Creates a handler using the given SQL keyword.
  • Method Details