java.lang.Object
org.neo4j.cypherdsl.core.QuantifiedPathPattern
- All Implemented Interfaces:
Visitable
,PatternElement
@Neo4jVersion(minimum="5.9")
@API(status=STABLE,
since="2023.9.0")
public final class QuantifiedPathPattern
extends Object
implements PatternElement
- Since:
- 2023.9.0
- Author:
- Michael J. Simons
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Quantifier for path patterns.static final class
Synthetic element for the Cypher-DSL AST. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Creates an interval quantifierplus()
Returns the+
quantifier.star()
Returns the*
quantifier.@NotNull PatternElement
where
(@Nullable Expression predicate) Creates a newPatternElement
which including an additional filter.
-
Method Details
-
interval
Creates an interval quantifier- Parameters:
lowerBound
- lower bound, must be greater than or equal to 0upperBound
- upper bound, must be greater than or equal to the lower bound- Returns:
- a quantifier
-
plus
Returns the+
quantifier.- Returns:
- the
+
quantifier
-
star
Returns the*
quantifier.- Returns:
- the
*
quantifier
-
accept
Description copied from interface:Visitable
-
where
Description copied from interface:PatternElement
Creates a newPatternElement
which including an additional filter. Returnsthis
pattern. whenpredicate
is literalnull
.The pattern might be a
node pattern
or arelationship pattern
.A
WHERE
on a pattern is only supported from Neo4j 5.0 onwards.- Specified by:
where
in interfacePatternElement
- Parameters:
predicate
- the predicate to filter on- Returns:
- a new pattern element or this instance if the predicate to this method was literal
null
-