Module org.neo4j.cypherdsl.core
Package org.neo4j.cypherdsl.core
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 Summary
Modifier and TypeMethodDescription@NotNull CountExpressioncount(PatternElement requiredPattern, PatternElement... patternElement) Creates a COUNT sub-query expressions from at least one pattern.@NotNull CountExpressioncount(Statement.UnionQuery union) Creates a COUNT with an inner UNION sub-query.
-
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 requiredpatternElement- Optional pattern- Returns:
- The immutable
CountExpression
-
count
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
-