Interface Expressions.SubqueryExpressionBuilder

Enclosing class:
Expressions

public static interface Expressions.SubqueryExpressionBuilder
Something that can build counting sub-queries. Might be used in the future for existential sub-queries, too.
Since:
2023.0.0
  • Method Details

    • count

      @NotNull @NotNull CountExpression count(PatternElement requiredPattern, PatternElement... patternElement)
      Creates a COUNT sub-query expressions from at least one pattern.
      Parameters:
      requiredPattern - One pattern is required
      patternElement - Optional pattern
      Returns:
      The immutable CountExpression
    • count

      @NotNull @NotNull CountExpression count(Statement.UnionQuery union)
      Creates a COUNT with an inner UNION sub-query.
      Parameters:
      union - The union that will be the source of the COUNT sub-query
      Returns:
      The immutable CountExpression
      Since:
      2023.0.0