Interface CqnInSubquery

All Superinterfaces:
CqnExpression, CqnPredicate, CqnToken, CqnValue, JSONizable

@Beta public interface CqnInSubquery extends CqnPredicate
The in subquery predicate tests wether an actual value (n-tuple) is equal to any value (n-tuple) returned by a defined subquery. It evaluates to false if the subquery has an empty result.
  • Method Details

    • value

      CqnValue value()
      The actual CqnValue (n-tuple) that is being compared to the result set (n-tuples) of the subquery().
      Returns:
      the actual CqnValue
    • subquery

      CqnSelect subquery()
      The subquery that defines the set of expected values the actual value is tested against.
      Returns:
      the subquery
    • accept

      default void accept(CqnVisitor visitor)
      Description copied from interface: CqnToken
      Traverses the expression tree represented by this token with a given visitor. The traversal order is depth-first. If this token has child nodes they are traversed first by dispatching the visitor to the children's accept methods. Afterwards this token is passed to the visitor's visit method specific for this token's type.
      Specified by:
      accept in interface CqnExpression
      Specified by:
      accept in interface CqnToken
      Parameters:
      visitor - the CqnVisitor