java.lang.Object
org.neo4j.cypherdsl.core.Cypher
The main entry point into the Cypher DSL. The Cypher Builder API is intended for
framework usage to produce Cypher statements required for database operations.
- Since:
- 1.0
- Author:
- Michael J. Simons, Gerrit Meier, Andreas Berger, Ali Ince
-
Method Summary
Modifier and TypeMethodDescriptionstatic FunctionInvocationabs(Expression expression) Creates a function invocation forabs({}).static FunctionInvocationacos(Expression expression) Creates a function invocation foracos({}).static <FE> ForeignAdapter<FE>adapt(FE expression) Provides access to the foreign DSL adapter.static Operationadd(Expression op1, Expression op2) Starts building an ALL predicate.all(SymbolicName variable) Starts building a new condition based on a function invocation for theall()function.static LabelsallLabels(Expression expression) Creates a dynamic label expression matching all labels to whichexpressionresolves.Returns an ongoing definition of a named path, returning all shortest paths.static <T> Parameter<T>anonParameter(T value) Creates a new anonymous parameter with a value bound to it.Starts building a ANY predicate.any(SymbolicName variable) Starts building a new condition based on a function invocation for theany()function.static LabelsanyLabel(Expression expression) Creates a dynamic label expression matching any label to whichexpressionresolves.static NodeanyNode()Returns a node matching any node.static NodeCreates a new unlabeled Node object.static NodeanyNode(SymbolicName symbolicName) Creates a new unlabeled Node object.Returns an ongoing definition of a named path, returning any shortest path.static MapExpressionasExpression(Map<String, Object> map) Creates a map of expression from a Java Map.static FunctionInvocationasin(Expression expression) Creates a function invocation forasin({}).static Asteriskasterisk()Returns the '*' wildcard literal.static FunctionInvocationatan(Expression expression) Creates a function invocation foratan({}).static FunctionInvocationatan2(Expression y, Expression x) Creates a function invocation foratan2({}).static FunctionInvocationavg(Expression expression) Creates a function invocation for theavg()function.static FunctionInvocationavgDistinct(Expression expression) Creates a function invocation for theavg()function withDISTINCTadded.static FunctionInvocationcalendarDate(Integer year, Integer month, Integer day) Creates a function invocation fordate({}).Starts defining a procedure call of the procedure with the given procedureName.Starts defining a procedure call of the procedure with the given qualified name.call(Collection<String> namespaceAndProcedure) Starts defining a procedure call of the procedure with the given qualified name.Starts building a statement based on one subquery.callRawCypher(String rawCypher, Object... args) Starts building a statement from a raw Cypher string that might also have arguments as supported throughraw(String, Object...).static FunctionInvocationcartesian(double x, double y) Convenience method for creating a 2d cartesian point.static CaseReturns generic case expression start.static CasecaseExpression(Expression expression) Starts building a CASE expression.static FunctionInvocationceil(Expression expression) Creates a function invocation forceil({}).static FunctionInvocationcoalesce(Expression... expressions) Creates a function invocation for thecoalesce()function.static FunctionInvocationcollect(Expression expression) Creates a function invocation for thecollect()function.static FunctionInvocationCreates a function invocation for thecollect()function.static ExpressionCreates a COLLECT subquery from a statement, including its filters and conditions.static FunctionInvocationcollectDistinct(Expression expression) Creates a function invocation for thecollect()function withDISTINCTadded.static FunctionInvocationcollectDistinct(Named variable) Creates a function invocation for thecollect()function withDISTINCTadded.static Operationconcat(Expression op1, Expression op2) static Conditioncontains(Expression lhs, Expression rhs) Creates a condition that checks whether thelhscontains with therhs.static FunctionInvocationcoordinate(double longitude, double latitude) Convenience method for creating a 2d coordinate in the WGS 84 coordinate system.static FunctionInvocationcos(Expression expression) Creates a function invocation forcos({}).static FunctionInvocationcot(Expression expression) Creates a function invocation forcot({}).static CountExpressioncount(List<PatternElement> pattern, Where where) Creates a COUNT expression based on a list of pattern.static FunctionInvocationcount(Expression expression) Creates a function invocation for thecount()function.static FunctionInvocationCreates an instance of thecountfunction.static CountExpressioncount(PatternElement requiredPattern, PatternElement... patternElement) Creates a COUNT sub-query expressions from at least one pattern.static CountExpressioncount(Statement.UnionQuery union) Creates a COUNT with an inner UNION sub-query.static CountExpressioncount(Statement statement, IdentifiableElement... imports) Creates a COUNT from a full statement, including its filters and conditions.static FunctionInvocationcountDistinct(Expression expression) Creates a function invocation for acount()function withDISTINCTadded.static FunctionInvocationcountDistinct(Node node) Creates a function invocation for acount()function withDISTINCTadded.create(Collection<? extends PatternElement> pattern) Starts building a statement based on aCREATEclause.create(PatternElement... pattern) Starts building a statement based on aCREATEclause.static MapProjectioncreateProjection(SymbolicName name, Object... content) Create a new map projection with the given, mixed content.static SymbolicName[]createSymbolicNames(String[] variables) static SymbolicName[]createSymbolicNames(Named[] variables) static FunctionInvocationdate()Creates a function invocation fordate().static FunctionInvocationCreates a function invocation fordate({}).static FunctionInvocationdate(Expression temporalValue) Creates a function invocation fordate({}).static FunctionInvocationdate(MapExpression components) Creates a function invocation fordate({}).static FunctionInvocationdatetime()Creates a function invocation fordatetime({}).static FunctionInvocationCreates a function invocation fordatetime({}).static FunctionInvocationCreates a function invocation fordatetime({}).static FunctionInvocationdatetime(Expression temporalValue) Creates a function invocation fordatetime({}).static FunctionInvocationdatetime(MapExpression components) Creates a function invocation fordatetime({}).static FunctionInvocationdegrees(Expression expression) Creates a function invocation fordegrees({}).static FunctionInvocationdistance(Expression point1, Expression point2) Creates a function invocation for thedistance()function.static Operationdivide(Expression op1, Expression op2) static FunctionInvocationCreates a function invocation forduration({}).static FunctionInvocationduration(Expression temporalAmount) Creates a function invocation forduration({}).static FunctionInvocationduration(MapExpression components) Creates a function invocation forduration({}).static FunctionInvocatione()Creates a function invocation fore({}).static FunctionInvocationCreates a function invocation forelementId{}.static FunctionInvocationelementId(Relationship relationship) Creates a function invocation forelementId{}.static FunctionInvocationendNode(Relationship relationship) Creates a function invocation forendNode{}.static ConditionendsWith(Expression lhs, Expression rhs) Creates a condition that checks whether thelhsends with therhs.static LabelsexactlyLabel(String label) Creates an expression that matches the givenlabelexactly.static Conditionexists(List<PatternElement> pattern) Creates a new condition via an existential sub-query based on the list of patterns.static Conditionexists(List<PatternElement> pattern, Where where) Creates a new condition via an existential sub-query based on the list of patterns and an optionalwhere-clause.static FunctionInvocationexists(Expression expression) Creates a function invocation for theexists()function.static Conditionexists(PatternElement pattern) Creates a new condition via an existential sub-query based on the list of patterns.static ConditionCreates a new condition based on a function invocation for theexists()function.static Conditionexists(RelationshipPattern pattern) Creates a new condition based on a function invocation for theexists()function.static Conditionexists(Statement statement, IdentifiableElement... imports) Creates a new condition via an existential sub-query.static FunctionInvocationexp(Expression expression) Creates a function invocation forexp({}).static FunctionInvocationfile()Creates a function invocation forfile({}).static FunctionInvocationfloor(Expression expression) Creates a function invocation forfloor({}).static Stringformat(Expression expression) Tries to format this expression into something human-readable.static FunctionInvocationgraphByName(Expression name) Creates a function invocation forgraph.byName().static FunctionInvocationCreates a function invocation forgraph.names().static FunctionInvocationCreates a function invocation forgraph.propertiesByName().static Conditiongt(Expression lhs, Expression rhs) Creates a condition that matches if the left hand side is greater than the right hand side.static Conditiongte(Expression lhs, Expression rhs) Creates a condition that matches if the left hand side is greater than or equal the right hand side.static ConditionhasLabelsOrType(SymbolicName symbolicName, String... labelsOrTypes) Checks if a given object has the given labels or types.static ConditionhasLabelsOrType(SymbolicName symbolicName, Labels labels) Checks if a given object has the given labels or types.static FunctionInvocationhaversin(Expression expression) Creates a function invocation forhaversin({}).static FunctionInvocationhead(Expression expression) Creates a function invocation for thehead()function.static ConditionincludesAll(Expression lhs, Expression rhs) Creates a condition that checks whether thelhsincludes all elements present inrhs.static ConditionincludesAny(Expression lhs, Expression rhs) Creates a condition that checks whether thelhsincludes any element present inrhs.static ConditionisEmpty(Expression expression) Creates a new condition based on a function invocation for theisEmpty()function.static ConditionisEqualTo(Expression lhs, Expression rhs) Creates a condition that matches if both expressions are equals according to=.static ConditionisFalse()Creates a |false condition.static ConditionisNotEqualTo(Expression lhs, Expression rhs) Creates a condition that matches if both expressions are equals according to<>.static ConditionisNotNull(Expression expression) Creates a condition that checks whether theexpressionis not null.static ConditionisNull(Expression expression) Creates a condition that checks whether theexpressionis null.static ConditionisTrue()Creates a |true condition.static FunctionInvocationkeys(Expression expression) Creates a function invocation forkeys{}.static FunctionInvocationCreates a function invocation forkeys{}.static FunctionInvocationkeys(Relationship relationship) Creates a function invocation forkeys{}.static FunctionInvocationCreates a function invocation forlabels{}.static FunctionInvocationlabels(SymbolicName node) Creates a function invocation forlabels{}.static FunctionInvocationlast(Expression expression) Creates a function invocation for thelast()function.static FunctionInvocationleft(Expression expression, Expression length) Creates a function invocation for theleft()function.static FunctionInvocationCreates a function invocation forlength().static FunctionInvocationCreates a function invocation forlinenumber({}).listBasedOn(NamedPath namedPath) Creates a list comprehension starting with anamed path.listBasedOn(RelationshipPattern relationshipPattern) Creates a list comprehension starting with aRelationshipor achain of relationships.static ListExpressionlistOf(Collection<? extends Expression> expressions) Creates alist-expressionfrom several expressions.static ListExpressionlistOf(Expression... expressions) Creates alist-expressionfrom several expressions.listWith(SymbolicName variable) Starts defining alist comprehension.Returns the `FALSE` literal.Returns the `NULL` literal.static <T> Literal<T>Creates a newLiteral<?>from the givenobject.Returns the `TRUE` literal.Starts building aLOAD CSV.Starts building aLOAD CSV.static FunctionInvocationCreates a function invocation forlocaldatetime({}).static FunctionInvocationlocaldatetime(String temporalValue) Creates a function invocation forlocaldatetime({}).static FunctionInvocationlocaldatetime(TimeZone timeZone) Creates a function invocation forlocaldatetime({}).static FunctionInvocationlocaldatetime(Expression temporalValue) Creates a function invocation forlocaldatetime({}).static FunctionInvocationlocaldatetime(MapExpression components) Creates a function invocation forlocaldatetime({}).static FunctionInvocationCreates a function invocation forlocaltime({}).static FunctionInvocationCreates a function invocation forlocaltime({}).static FunctionInvocationCreates a function invocation forlocaltime({}).static FunctionInvocationlocaltime(Expression temporalValue) Creates a function invocation forlocaltime({}).static FunctionInvocationlocaltime(MapExpression components) Creates a function invocation forlocaltime({}).static FunctionInvocationlog(Expression expression) Creates a function invocation forlog({}).static FunctionInvocationlog10(Expression expression) Creates a function invocation forlog10({}).static Conditionlt(Expression lhs, Expression rhs) Creates a condition that matches if the left hand side is less than the right hand side.static Conditionlte(Expression lhs, Expression rhs) Creates a condition that matches if the left hand side is less than or equal the right hand side.static FunctionInvocationltrim(Expression expression) Creates a function invocation for theltrim()function.static MapExpressionCreates a map of expression from a list of key/value pairs.match(boolean optional, Collection<? extends PatternElement> pattern) Starts building a statement based on a match clause.match(boolean optional, PatternElement... pattern) Starts building a statement based on a match clause.match(Collection<? extends PatternElement> pattern) Starts building a statement based on a match clause.match(PatternElement... pattern) Starts building a statement based on a match clause.static Conditionmatches(Expression lhs, Expression rhs) Creates a condition that matches if the right hand side is a regular expression that matches the left hand side via=~.static Conditionmatching(RelationshipPattern relationshipPattern) A condition testing if the given relationship pattern matches.static FunctionInvocationmax(Expression expression) Creates a function invocation for themax()function.static FunctionInvocationmaxDistinct(Expression expression) Creates a function invocation for themax()function withDISTINCTadded.merge(Collection<? extends PatternElement> pattern) Starts building a statement based on aMERGEclause.merge(PatternElement... pattern) Starts building a statement based on aMERGEclause.static FunctionInvocationmin(Expression expression) Creates a function invocation for themin()function.static FunctionInvocationminDistinct(Expression expression) Creates a function invocation for themin()function withDISTINCTadded.static Operationminus(Expression e) Creates an unary minus operation.static Operationmultiply(Expression op1, Expression op2) static Operationmutate(Expression target, Expression value) Creates a+=operation.static Operationmutate(Expression target, MapExpression value) Creates a+=operation.static SymbolicNameCreates a new symbolic name.static <T extends Expression>
ExpressionnameOrExpression(T expression) Returns the name of the given expression or the expression itself if it isn't named.static ConditionCreates a placeholder condition which is not rendered in the final statement but is useful while chaining conditions together.static NodeCreate a new Node representation with at least one label, the "primary" label.static NodeCreate a new Node representation with at least one label, the "primary" label.static Nodenode(String primaryLabel, MapExpression properties, String... additionalLabels) Create a new Node representation with at least one label, the "primary" label.static Nodenode(String primaryLabel, MapExpression properties, Collection<String> additionalLabels) Create a new Node representation with at least one label, the "primary" label.static Nodenode(LabelExpression labelExpression) Deprecated, for removal: This API element is subject to removal in a future version.static NodeCreates a new Node object.static FunctionInvocationCreates a function invocation fornodes{}.static FunctionInvocationnodes(SymbolicName symbolicName) Creates a function invocation fornodes{}.Starts building a NONE predicate.none(SymbolicName variable) Starts building a new condition based on a function invocation for thenone()function.static ConditionNegates the given condition.static Conditionnot(RelationshipPattern pattern) Negates the given pattern element: The pattern must not matche to be included in the result.optionalMatch(Collection<? extends PatternElement> pattern) Prepares an optional match statement.optionalMatch(PatternElement... pattern) Prepares an optional match statement.static FunctionInvocationordinalDate(Integer year, Integer ordinalDay) Creates a function invocation fordate({}).Creates a new parameter placeholder.static <T> Parameter<T>Creates a new parameter with the givennameand a value bound to it.Starts defining a named path by indicating a name.path(SymbolicName name) Starts defining a named path by indicating a name.static FunctionInvocationpercentileCont(Expression expression, Number percentile) Creates a function invocation for thepercentileCont()function.static FunctionInvocationpercentileContDistinct(Expression expression, Number percentile) Creates a function invocation for thepercentileCont()function withDISTINCTadded.static FunctionInvocationpercentileDisc(Expression expression, Number percentile) Creates a function invocation for thepercentileDisc()function.static FunctionInvocationpercentileDiscDistinct(Expression expression, Number percentile) Creates a function invocation for thepercentileDisc()function withDISTINCTadded.static FunctionInvocationpi()Creates a function invocation forpi({}).static Expressionplus(Expression e) Creates an unary plus operation.static FunctionInvocationpoint(Expression expression) Creates a function invocation for thepoint()function.static FunctionInvocationpoint(MapExpression parameterMap) Creates a function invocation for thepoint()function.static FunctionInvocationCreates a function invocation for thepoint()function.static Operationpow(Expression op1, Expression op2) static FunctionInvocationproperties(MapExpression map) Creates a function invocation forproperties())on maps.static FunctionInvocationproperties(Node node) Creates a function invocation forproperties())on nodes.static FunctionInvocationproperties(Relationship relationship) Creates a function invocation forproperties())on relationships.static PropertyDereferences a property for a symbolic name, most likely pointing to a property container like a node or a relationship.static Propertyproperty(String containerName, Collection<String> names) Dereferences a property for a symbolic name, most likely pointing to a property container like a node or a relationship.static Propertyproperty(String containerName, Expression lookup) Creates a dynamic lookup of a property for a symbolic name, most likely pointing to a property container like a node or a relationship.static Propertyproperty(Expression expression, String... names) Dereferences a property on an arbitrary expression.static Propertyproperty(Expression expression, Collection<String> names) Dereferences a property on a arbitrary expression.static Propertyproperty(Expression expression, Expression lookup) Creates a dynamic lookup of a property on an arbitrary expression.static FunctionInvocationquarterDate(Integer year, Integer quarter, Integer dayOfQuarter) Creates a function invocation fordate({}).static StringEscapes and quotes theunquotedStringfor safe usage in Neo4j-Browser and Shell.static FunctionInvocationradians(Expression expression) Creates a function invocation forradians({}).static FunctionInvocationrand()Creates a function invocation forrand({}).static FunctionInvocationCreates a function invocation forrandomUUID({}).static FunctionInvocationCreates a function invocation for therange()function.static FunctionInvocationCreates a function invocation for therange()function.static FunctionInvocationrange(Expression start, Expression end) Creates a function invocation for therange()function.static FunctionInvocationrange(Expression start, Expression end, Expression step) Creates a function invocation for therange()function.static ExpressionCreates an expression from a raw string fragment.reduce(SymbolicName variable) Starts building a function invocation forreduce({}).static FunctionInvocationrelationships(NamedPath path) Creates a function invocation forrelationships{}.static FunctionInvocationrelationships(SymbolicName symbolicName) Creates a function invocation forrelationships{}.static Operationremainder(Expression op1, Expression op2) static OperationremoveLabel(Node target, String... label) Creates an operation removing one or more labels from a givennode.static FunctionInvocationreplace(Expression original, Expression search, Expression replace) Creates a function invocation for thereplace()function.returning(Collection<? extends Expression> expressions) A RETURN statement without a previous match.returning(Expression... expressions) A RETURN statement without a previous match.returningRaw(Expression rawExpression) Creates aRETURNclause from a raw Cypher expression created viaraw(String, Object...).static FunctionInvocationreverse(Expression original) Creates a function invocation for thereverse()function.static FunctionInvocationright(Expression expression, Expression length) Creates a function invocation for theright()function.static FunctionInvocationround(Expression value, Expression... expression) Creates a function invocation forround({}).static FunctionInvocationrtrim(Expression expression) Creates a function invocation for thertrim()function.static Operationset(Expression target, Expression value) Creates a=operation.static OperationCreates an operation adding one or more labels to a givennode.static OperationCreates an operation adding dynamic labels to anode.shortestK(int k) Returns an ongoing definition of a named path, returning the k shortest paths.shortestKGroups(int k) Returns an ongoing definition of a named path, returning the k shortest groups of points.static FunctionInvocationsign(Expression expression) Creates a function invocation forsign({}).static FunctionInvocationsin(Expression expression) Creates a function invocation forsin({}).Starts building a SINGLE predicate.single(SymbolicName variable) Starts building a new condition based on a function invocation for thesingle()function.static FunctionInvocationsize(Expression expression) Creates a function invocation for thesize()function.static FunctionInvocationsize(RelationshipPattern pattern) Creates a function invocation for thesize()function.static SortItemsort(Expression expression) static SortItemsort(Expression expression, SortItem.Direction direction) static MapExpressionsortedMapOf(Object... keysAndValues) Creates an alphabetically sorted map of expression from a list of key/value pairs.static FunctionInvocationsplit(Expression expression, String delimiter) Creates a function invocation for thesplit()function.static FunctionInvocationsplit(Expression expression, Expression delimiter) Creates a function invocation for thesplit()function.static FunctionInvocationsqrt(Expression expression) Creates a function invocation forsqrt({}).static FunctionInvocationstartNode(Relationship relationship) Creates a function invocation forstartNode{}.static ConditionstartsWith(Expression lhs, Expression rhs) Creates a condition that checks whether thelhsstarts with therhs.static FunctionInvocationstDev(Expression expression) Creates a function invocation for thestDev()function.static FunctionInvocationstDevDistinct(Expression expression) Creates a function invocation for thestDev()function withDISTINCTadded.static FunctionInvocationstDevP(Expression expression) Creates a function invocation for thestDevP()function.static FunctionInvocationstDevPDistinct(Expression expression) Creates a function invocation for thestDevP()function withDISTINCTadded.static ExpressionsubList(Expression targetExpression, Integer start, Integer end) Creates a closed range with given boundaries.static ExpressionsubList(Expression targetExpression, Expression start, Expression end) Creates a closed range with given boundaries.static ExpressionsubListFrom(Expression targetExpression, Integer start) Creates an open range starting atstart.static ExpressionsubListFrom(Expression targetExpression, Expression start) Creates an open range starting atstart.static ExpressionsubListUntil(Expression targetExpression, Integer end) Creates an open range starting atstart.static ExpressionsubListUntil(Expression targetExpression, Expression end) Creates an open range starting atstart.static SubqueryExpressionBuildersubqueryWith(String... identifiableElements) Start building a new sub-query expression by importing variables into the scope with a WITH clause.static SubqueryExpressionBuildersubqueryWith(IdentifiableElement... identifiableElements) Start building a new sub-query expression by importing variables into the scope with a WITH clause.static FunctionInvocationsubstring(Expression original, Expression start, Expression length) Creates a function invocation for thesubstring()function.static Operationsubtract(Expression op1, Expression op2) static FunctionInvocationsum(Expression expression) Creates a function invocation for thesum()function.static FunctionInvocationsumDistinct(Expression expression) Creates a function invocation for thesum()function withDISTINCTadded.static FunctionInvocationtan(Expression expression) Creates a function invocation fortan({}).static FunctionInvocationtime()Creates a function invocation fortime({}).static FunctionInvocationCreates a function invocation fortime({}).static FunctionInvocationCreates a function invocation fortime({}).static FunctionInvocationtime(Expression temporalValue) Creates a function invocation fortime({}).static FunctionInvocationtime(MapExpression components) Creates a function invocation fortime({}).static FunctionInvocationtoBoolean(Expression expression) Creates a function invocation fortoBoolean({}).static FunctionInvocationtoFloat(Expression expression) Creates a function invocation fortoFloat({}).static FunctionInvocationtoInteger(Expression expression) Creates a function invocation fortoInteger({}).static FunctionInvocationtoLower(Expression expression) Creates a function invocation for thetoLower()function.static FunctionInvocationtoString(Expression expression) Creates a function invocation fortoString({}).static FunctionInvocationtoStringOrNull(Expression expression) Creates a function invocation fortoStringOrNull({}).static FunctionInvocationtoUpper(Expression expression) Creates a function invocation for thetoUpper()function.static FunctionInvocationtrim(Expression expression) Creates a function invocation for thetrim()function.static FunctionInvocationtype(Relationship relationship) Creates a function invocation fortype{}.static FunctionInvocationtype(SymbolicName relationship) Creates a function invocation fortype{}.static Statement.UnionQueryunion(Collection<Statement> statements) Creates aUNIONstatement from several other statements.static Statement.UnionQueryCreates aUNIONstatement from several other statements.static StatementunionAll(Collection<Statement> statements) Creates aUNION ALLstatement from several other statements.static StatementCreates aUNION ALLstatement from several other statements.unwind(Collection<? extends Expression> expressions) Starts building a statement starting with anUNWINDclause.unwind(Expression expression) Starts building a statement starting with anUNWINDclause.unwind(Expression... expressions) Starts building a statement starting with anUNWINDclause.static Statement.UseStatementDecorates the given statement by prepending a static USE clause.static Statement.UseStatementuse(Expression target, Statement statement) Decorates the given statement by prepending a dynamic USE clause.static Statement.UseStatementDecorates the given statement by prepending a dynamic USE clause.static Statement.UseStatementuse(StringLiteral target, Statement statement) Decorates the given statement by prepending a dynamic USE clause.static ExposesLoadCSVStarts building aLOAD CSVclause by using a periodic commit.static ExposesLoadCSVusingPeriodicCommit(Integer rate) Starts building aLOAD CSVclause by using a periodic commit.static ListOperatorvalueAt(Expression targetExpression, Integer index) Creates a single valued range atindex.static ListOperatorvalueAt(Expression targetExpression, Expression index) Creates a single valued range atindex.static FunctionInvocationCreates a function invocation fordate({}).Starts a statement with a leadingWITH.with(Collection<IdentifiableElement> elements) Starts a statement with a leadingWITH.with(IdentifiableElement... elements) Starts a statement with a leadingWITH.static FunctionInvocationwithinBBox(Expression point, Expression lowerLeft, Expression upperRight) Creates a function invocation for thepoint.withinBBoxfunction.
-
Method Details
-
node
Create a new Node representation with at least one label, the "primary" label. This is required. All other labels are optional.- Parameters:
primaryLabel- the primary label this node is identified by.additionalLabels- additional labels- Returns:
- a new node representation
-
node
Create a new Node representation with at least one label, the "primary" label. This is required. All other labels are optional.- Parameters:
primaryLabel- the primary label this node is identified by.additionalLabels- additional labels- Returns:
- a new node representation
-
node
Create a new Node representation with at least one label, the "primary" label. This is required. All other labels are optional. This method also takes a map of properties. This allows the returned node object to be used in aMATCHorMERGEstatement.- Parameters:
primaryLabel- the primary label this node is identified by.properties- the properties expected to exist on the node.additionalLabels- additional labels- Returns:
- a new node representation
-
node
public static Node node(String primaryLabel, MapExpression properties, Collection<String> additionalLabels) Create a new Node representation with at least one label, the "primary" label. This is required. All other labels are optional. This method also takes a map of properties. This allows the returned node object to be used in aMATCHorMERGEstatement.- Parameters:
primaryLabel- the primary label this node is identified by.properties- the properties expected to exist on the node.additionalLabels- additional labels- Returns:
- a new node representation
- Since:
- 2021.2.2
-
anyNode
Returns a node matching any node.- Returns:
- a node matching any node
-
exactlyLabel
Creates an expression that matches the givenlabelexactly. Can be used as starting point to add conditions viaLabels.and(Labels)orLabels.or(Labels).- Parameters:
label- the label to match- Returns:
- a label expression
-
allLabels
Creates a dynamic label expression matching all labels to whichexpressionresolves.- Parameters:
expression- the expression that must resolve to a string or a list of strings- Returns:
- a dynamic label expression
- Since:
- 2025.1.0
-
anyLabel
Creates a dynamic label expression matching any label to whichexpressionresolves.- Parameters:
expression- the expression that must resolve to a string or a list of strings- Returns:
- a dynamic label expression
- Since:
- 2025.1.0
-
node
Deprecated, for removal: This API element is subject to removal in a future version.usenode(Labels)Creates a new Node object.- Parameters:
labelExpression- required expression- Returns:
- a node matching a label expression
- Since:
- 2023.0.2
-
node
Creates a new Node object.- Parameters:
labels- required expression- Returns:
- a node matching the given labels
- Since:
- 2025.1.0
-
asterisk
Returns the '*' wildcard literal.- Returns:
- the '*' wildcard literal
-
anyNode
Creates a new unlabeled Node object.- Parameters:
symbolicName- the new symbolic name- Returns:
- a node matching any node with the symbolic the given
symbolicName.
-
anyNode
Creates a new unlabeled Node object.- Parameters:
symbolicName- the new symbolic name- Returns:
- a node matching any node with the symbolic the given
symbolicName.
-
property
Dereferences a property for a symbolic name, most likely pointing to a property container like a node or a relationship.- Parameters:
containerName- the symbolic name of a property containernames- the names of the properties to dereference. More than one name does create a nested property likecontainerName.name1.name2.- Returns:
- a new property
-
property
Dereferences a property for a symbolic name, most likely pointing to a property container like a node or a relationship.- Parameters:
containerName- the symbolic name of a property containernames- the names of the properties to dereference. More than one name does create a nested property likecontainerName.name1.name2.- Returns:
- a new property
- Since:
- 2021.2.2
-
property
Dereferences a property on an arbitrary expression.- Parameters:
expression- the expression that describes some sort of accessible mapnames- the names of the properties to dereference. More than one name does create a nested property likeexpression.name1.name2.- Returns:
- a new property.
-
property
Dereferences a property on a arbitrary expression.- Parameters:
expression- the expression that describes some sort of accessible mapnames- the names of the properties to dereference. More than one name does create a nested property likeexpression.name1.name2.- Returns:
- a new property.
- Since:
- 2021.2.2
-
property
Creates a dynamic lookup of a property for a symbolic name, most likely pointing to a property container like a node or a relationship. A dynamic property will be rendered asp[expression].- Parameters:
containerName- the symbolic name of a property containerlookup- an expression to use as a dynamic lookup for properties of the container with the given name- Returns:
- a new property
- Since:
- 2021.0.0
-
property
Creates a dynamic lookup of a property on an arbitrary expression. A dynamic property will be rendered asp[expression].- Parameters:
expression- the expression that describes some sort of accessible maplookup- an expression to use as a dynamic lookup for properties of the container the expression resolved to- Returns:
- a new property.
- Since:
- 2021.0.0
-
path
Starts defining a named path by indicating a name.- Parameters:
name- the name of the new path- Returns:
- an ongoing definition of a named path
- Since:
- 1.1
-
path
Starts defining a named path by indicating a name.- Parameters:
name- the name of the new path- Returns:
- an ongoing definition of a named path
- Since:
- 1.1
-
shortestK
Returns an ongoing definition of a named path, returning the k shortest paths.- Parameters:
k- the number of shortest groups to return- Returns:
- an ongoing definition of a named path, returning the k shortest paths.
- Since:
- 2024.7.0
-
shortestKGroups
Returns an ongoing definition of a named path, returning the k shortest groups of points.- Parameters:
k- the number of shortest groups to return- Returns:
- an ongoing definition of a named path, returning the k shortest groups of paths.
- Since:
- 2024.7.0
-
anyShortest
Returns an ongoing definition of a named path, returning any shortest path.- Returns:
- an ongoing definition of a named path, returning any shortest path
- Since:
- 2024.7.0
-
allShortest
Returns an ongoing definition of a named path, returning all shortest paths.- Returns:
- an ongoing definition of a named path, returning all shortest paths
- Since:
- 2024.7.0
-
name
Creates a new symbolic name.- Parameters:
value- the value of the symbolic name- Returns:
- a new symbolic name
-
parameter
Creates a new parameter placeholder. Existing $-signs will be removed.- Parameters:
name- the name of the parameter, must not be null- Returns:
- the new parameter
-
parameter
Creates a new parameter with the givennameand a value bound to it. The value can be retrieved from the final statement build.- Type Parameters:
T- type of the new parameter- Parameters:
name- the name of the parameter, must not be nullvalue- the value of the parameter.- Returns:
- the new parameter
- Since:
- 2021.0.0
-
anonParameter
Creates a new anonymous parameter with a value bound to it. The value can be retrieved from the final statement build. The name will be available as soon as the statement has been rendered.- Type Parameters:
T- type of the new parameter- Parameters:
value- the value of the parameter.- Returns:
- the new parameter
- Since:
- 2021.1.0
-
optionalMatch
Prepares an optional match statement.- Parameters:
pattern- the patterns to match- Returns:
- an ongoing match that is used to specify an optional where and a required return clause
-
optionalMatch
public static StatementBuilder.OngoingReadingWithoutWhere optionalMatch(Collection<? extends PatternElement> pattern) Prepares an optional match statement.- Parameters:
pattern- the patterns to match- Returns:
- an ongoing match that is used to specify an optional where and a required return clause
- Since:
- 2021.2.2
-
match
Starts building a statement based on a match clause. Usenode(String, String...)and related to retrieve a node or a relationship, which both are pattern elements.- Parameters:
pattern- the patterns to match- Returns:
- an ongoing match that is used to specify an optional where and a required return clause
-
match
public static StatementBuilder.OngoingReadingWithoutWhere match(Collection<? extends PatternElement> pattern) Starts building a statement based on a match clause. Usenode(String, String...)and related to retrieve a node or a relationship, which both are pattern elements.- Parameters:
pattern- the patterns to match- Returns:
- an ongoing match that is used to specify an optional where and a required return clause
- Since:
- 2021.2.2
-
match
public static StatementBuilder.OngoingReadingWithoutWhere match(boolean optional, PatternElement... pattern) Starts building a statement based on a match clause. Usenode(String, String...)and related to retrieve a node or a relationship, which both are pattern elements.- Parameters:
optional- a flag whether theMATCHclause includes theOPTIONALkeyword.pattern- the patterns to match- Returns:
- an ongoing match that is used to specify an optional where and a required return clause
- Since:
- 2020.1.3
-
match
public static StatementBuilder.OngoingReadingWithoutWhere match(boolean optional, Collection<? extends PatternElement> pattern) Starts building a statement based on a match clause. Usenode(String, String...)and related to retrieve a node or a relationship, which both are pattern elements.- Parameters:
optional- a flag whether theMATCHclause includes theOPTIONALkeyword.pattern- the patterns to match- Returns:
- an ongoing match that is used to specify an optional where and a required return clause
- Since:
- 2021.2.2
-
create
Starts building a statement based on aCREATEclause.- Parameters:
pattern- the patterns to create- Returns:
- an ongoing
CREATEthat can be used to specifyWITHandRETURNINGetc.
-
create
Starts building a statement based on aCREATEclause.- Parameters:
pattern- the patterns to create- Returns:
- an ongoing
CREATEthat can be used to specifyWITHandRETURNINGetc. - Since:
- 2021.2.2
-
with
Starts a statement with a leadingWITH. Those are useful for passing on lists of various type that can be unwound later on etc. A leadingWITHobviously cannot be used with patterns and needs its arguments to have an alias.- Parameters:
variables- one ore more variables.- Returns:
- an ongoing with clause.
- Since:
- 2020.1.2
-
with
public static StatementBuilder.OrderableOngoingReadingAndWithWithoutWhere with(IdentifiableElement... elements) Starts a statement with a leadingWITH. Those are useful for passing on lists of various type that can be unwound later on etc. A leadingWITHcannot be used with patterns obviously and needs its arguments to have an alias.- Parameters:
elements- one ore more variables.- Returns:
- an ongoing with clause.
- Since:
- 2020.1.2
-
subqueryWith
Start building a new sub-query expression by importing variables into the scope with a WITH clause.- Parameters:
identifiableElements- the identifiable elements to import- Returns:
- a builder for creating the concrete sub-query
- Since:
- 2023.9.0
-
subqueryWith
Start building a new sub-query expression by importing variables into the scope with a WITH clause.- Parameters:
identifiableElements- the identifiable elements to import- Returns:
- a builder for creating the concrete sub-query
- Since:
- 2023.9.0
-
with
public static StatementBuilder.OrderableOngoingReadingAndWithWithoutWhere with(Collection<IdentifiableElement> elements) Starts a statement with a leadingWITH. Those are useful for passing on lists of various type that can be unwound later on etc. A leadingWITHcannot be used with patterns obviously and needs its arguments to have an alias.This method takes both aliased and non-aliased expression. The later will produce only valid Cypher when used in combination with a correlated subquery via
call(Statement).- Parameters:
elements- one ore more expressions.- Returns:
- an ongoing with clause.
- Since:
- 2021.2.2
-
merge
Starts building a statement based on aMERGEclause.- Parameters:
pattern- the patterns to merge- Returns:
- an ongoing
MERGEthat can be used to specifyWITHandRETURNINGetc.
-
merge
Starts building a statement based on aMERGEclause.- Parameters:
pattern- the patterns to merge- Returns:
- an ongoing
MERGEthat can be used to specifyWITHandRETURNINGetc. - Since:
- 2021.2.2
-
unwind
Starts building a statement starting with anUNWINDclause. The expression needs to be an expression evaluating to a list, otherwise the query will fail.- Parameters:
expression- the expression to unwind- Returns:
- an ongoing
UNWIND.
-
unwind
Starts building a statement starting with anUNWINDclause. The expressions passed will be turned into a list expression- Parameters:
expressions- expressions to unwind- Returns:
- a new instance of
StatementBuilder.OngoingUnwind
-
unwind
Starts building a statement starting with anUNWINDclause. The expressions passed will be turned into a list expression- Parameters:
expressions- expressions to unwind- Returns:
- a new instance of
StatementBuilder.OngoingUnwind - Since:
- 2021.2.2
-
sort
- Parameters:
expression- the expression by which things should be sorted- Returns:
- a sort item, providing means to specify ascending or descending order
-
sort
- Parameters:
expression- the expression by which things should be sorteddirection- the direction to sort by. Defaults toSortItem.Direction.UNDEFINED.- Returns:
- a sort item
- Since:
- 2021.1.0
-
mapOf
Creates a map of expression from a list of key/value pairs.- Parameters:
keysAndValues- a list of key and values. Must be an even number, with alternatingStringandExpression- Returns:
- a new map expression.
-
sortedMapOf
Creates an alphabetically sorted map of expression from a list of key/value pairs.- Parameters:
keysAndValues- a list of key and values. Must be an even number, with alternatingStringandExpression- Returns:
- a new map expression.
-
asExpression
Creates a map of expression from a Java Map.- Parameters:
map- a map to be turned into a MapExpression- Returns:
- a new map expression.
- Since:
- 2021.1.0
-
listOf
Creates alist-expressionfrom several expressions.- Parameters:
expressions- expressions to get combined into a list- Returns:
- a new instance of
ListExpression
-
listOf
Creates alist-expressionfrom several expressions.- Parameters:
expressions- expressions to get combined into a list- Returns:
- a new instance of
ListExpression - Since:
- 2021.2.2
-
literalOf
Creates a newLiteral<?>from the givenobject.- Type Parameters:
T- the type of the literal returned- Parameters:
object- the object to represent.- Returns:
- a new
Literal<?>. - Throws:
Literal.UnsupportedLiteralException- when the object cannot be represented as a literal
-
literalTrue
Returns the `TRUE` literal.- Returns:
- the `TRUE` literal
-
literalFalse
Returns the `FALSE` literal.- Returns:
- the `FALSE` literal
-
literalNull
Returns the `NULL` literal.- Returns:
- the `NULL` literal
-
union
Creates aUNIONstatement from several other statements. No checks are applied for matching return types.- Parameters:
statements- the statements to union.- Returns:
- a union statement.
-
union
Creates aUNIONstatement from several other statements. No checks are applied for matching return types.- Parameters:
statements- the statements to union.- Returns:
- a union statement.
- Since:
- 2021.2.2
-
unionAll
Creates aUNION ALLstatement from several other statements. No checks are applied for matching return types.- Parameters:
statements- the statements to union.- Returns:
- a union statement.
-
unionAll
Creates aUNION ALLstatement from several other statements. No checks are applied for matching return types.- Parameters:
statements- the statements to union.- Returns:
- a union statement.
- Since:
- 2021.2.2
-
returning
A RETURN statement without a previous match.- Parameters:
expressions- the elements to return- Returns:
- a buildable statement
- Since:
- 1.0.1
-
returning
public static StatementBuilder.OngoingReadingAndReturn returning(Collection<? extends Expression> expressions) A RETURN statement without a previous match.- Parameters:
expressions- the expressions to return- Returns:
- a buildable statement
- Since:
- 2021.2.2
-
listBasedOn
public static PatternComprehension.OngoingDefinitionWithPattern listBasedOn(RelationshipPattern relationshipPattern) Creates a list comprehension starting with aRelationshipor achain of relationships.- Parameters:
relationshipPattern- the relationship pattern on which the new list comprehension is based on.- Returns:
- an ongoing definition.
- Since:
- 2020.0.0
-
listBasedOn
Creates a list comprehension starting with anamed path.- Parameters:
namedPath- the named path on which the new list comprehension is based on.- Returns:
- an ongoing definition.
- Since:
- 2020.1.1
-
listWith
Starts defining alist comprehension.- Parameters:
variable- the variable to which each element of the list is assigned.- Returns:
- an ongoing definition of a list comprehension
- Since:
- 1.0.1
-
quote
Escapes and quotes theunquotedStringfor safe usage in Neo4j-Browser and Shell.- Parameters:
unquotedString- an unquoted string- Returns:
- a quoted string with special chars escaped.
-
caseExpression
Returns generic case expression start.- Returns:
- generic case expression start
-
caseExpression
Starts building a CASE expression.- Parameters:
expression- initial expression for the simple case statement- Returns:
- simple case expression start
-
call
Starts defining a procedure call of the procedure with the given procedureName. That procedure name might be fully qualified - that is, including a namespace - or just a simple name.- Parameters:
procedureName- the procedure name of the procedure to call. Might be fully qualified.- Returns:
- an ongoing definition of a call
-
call
public static StatementBuilder.OngoingStandaloneCallWithoutArguments call(String... namespaceAndProcedure) Starts defining a procedure call of the procedure with the given qualified name.- Parameters:
namespaceAndProcedure- the procedure name of the procedure to call.- Returns:
- an ongoing definition of a call
-
call
public static StatementBuilder.OngoingStandaloneCallWithoutArguments call(Collection<String> namespaceAndProcedure) Starts defining a procedure call of the procedure with the given qualified name.- Parameters:
namespaceAndProcedure- the procedure name of the procedure to call.- Returns:
- an ongoing definition of a call
- Since:
- 2021.2.2
-
call
@Neo4jVersion(minimum="4.0.0") public static StatementBuilder.OngoingReadingWithoutWhere call(Statement subquery) Starts building a statement based on one subquery.- Parameters:
subquery- the statement representing the subquery- Returns:
- a new ongoing read without any further conditions or returns.
- Since:
- 2020.1.2
- See Also:
- Neo4j version required
- 4.0.0
-
subList
Creates a closed range with given boundaries.- Parameters:
targetExpression- the target expression for the rangestart- the inclusive startend- the exclusive end- Returns:
- a range literal.
- Since:
- 2020.1.0
-
subList
Creates a closed range with given boundaries.- Parameters:
targetExpression- the target expression for the rangestart- the inclusive startend- the exclusive end- Returns:
- a range literal.
- Since:
- 2020.1.0
-
subListFrom
Creates an open range starting atstart.- Parameters:
targetExpression- the target expression for the rangestart- the inclusive start- Returns:
- a range literal.
- Since:
- 2020.1.0
-
subListFrom
Creates an open range starting atstart.- Parameters:
targetExpression- the target expression for the rangestart- the inclusive start- Returns:
- a range literal.
- Since:
- 2020.1.0
-
subListUntil
Creates an open range starting atstart.- Parameters:
targetExpression- the target expression for the rangeend- the exclusive end- Returns:
- a range literal.
- Since:
- 2020.1.0
-
subListUntil
Creates an open range starting atstart.- Parameters:
targetExpression- the target expression for the rangeend- the exclusive end- Returns:
- a range literal.
- Since:
- 2020.1.0
-
valueAt
Creates a single valued range atindex.- Parameters:
targetExpression- the target expression for the rangeindex- the index of the range- Returns:
- a range literal.
- Since:
- 2020.1.0
-
valueAt
Creates a single valued range atindex.- Parameters:
targetExpression- the target expression for the rangeindex- the index of the range- Returns:
- a range literal.
- Since:
- 2020.1.0
-
raw
Creates an expression from a raw string fragment. No validation is performed on it. If it is used as expression, you must make sure to define something that works as expression.This method expects exactly one placeholder in the form of $E for any argument passed with
mixedArgs.To use exactly the term $E escape it like this: \$E
- Parameters:
format- a raw Cypher stringmixedArgs- args to the Cypher string- Returns:
- an expression to reuse with the builder.
- Since:
- 2021.0.2
-
callRawCypher
Starts building a statement from a raw Cypher string that might also have arguments as supported throughraw(String, Object...). Use this method as your own risk and be aware that no checks are done on the Cypher.- Parameters:
rawCypher- the raw Cypher statement to callargs- optional args that replace placeholders in therawCypher- Returns:
- ongoing sub-query definition based on the raw Cypher statement.
- Since:
- 2024.2.0
-
returningRaw
Creates aRETURNclause from a raw Cypher expression created viaraw(String, Object...). The expression maybe aliased but it must resolve to a raw element- Parameters:
rawExpression- must be a plain raw or an aliased raw expression. To eventually render as valid Cypher, it must contain theRETURNkeyword.- Returns:
- a match that can be build now
- Since:
- 2021.2.1
-
adapt
Provides access to the foreign DSL adapter. Please make sure you have the necessary runtime dependencies on the class path, otherwise you will see some kind ofClassNotFoundExceptionalong various classes related to the foreign DSL.- Type Parameters:
FE- the type of the expression- Parameters:
expression- the expression that should be adapted- Returns:
- a foreign adapter
- Throws:
IllegalArgumentException- in case the object cannot be adapter- Since:
- 2021.1.0
-
usingPeriodicCommit
Starts building aLOAD CSVclause by using a periodic commit. The default rate of the database will be used.- Returns:
- an ongoing definition of a
LOAD CSVclause - Since:
- 2021.2.1
-
usingPeriodicCommit
Starts building aLOAD CSVclause by using a periodic commit.- Parameters:
rate- the rate to be used. No checks are done on the rate, the database will verify valid values.- Returns:
- an ongoing definition of a
LOAD CSVclause - Since:
- 2021.2.1
-
loadCSV
Starts building aLOAD CSV. No headers are assumed.- Parameters:
from- the URI to load data from. Any uri that is resolvable by the database itself is valid.- Returns:
- an ongoing definition of a
LOAD CSVclause - Since:
- 2021.2.1
-
loadCSV
Starts building aLOAD CSV.- Parameters:
from- the URI to load data from. Any uri that is resolvable by the database itself is valid.withHeaders- set to true if the csv file contains header- Returns:
- an ongoing definition of a
LOAD CSVclause
-
format
Tries to format this expression into something human-readable. Not all expressions are supported- Parameters:
expression- an expression to format- Returns:
- a human-readable string
- Throws:
IllegalArgumentException- when the expression cannot be formatted- Since:
- 2021.3.2
-
use
Decorates the given statement by prepending a static USE clause.- Parameters:
target- the target. This might be a single database or a constituent of a composite database. This value will be escaped if necessary. If it contains a ., both the first and second part will be escaped individually.statement- the statement to decorate- Returns:
- the new buildable statement
- Since:
- 2023.0.0
-
use
Decorates the given statement by prepending a dynamic USE clause. A dynamic USE clause will utilizegraph.byNameto resolve the target database.- Parameters:
target- a parameter that must resolve to a Cypher string.statement- the statement to decorate- Returns:
- the new buildable statement
- Since:
- 2023.0.0
-
use
Decorates the given statement by prepending a dynamic USE clause. A dynamic USE clause will utilizegraph.byNameto resolve the target database.- Parameters:
target- a string expressionstatement- the statement to decorate- Returns:
- the new buildable statement
- Since:
- 2023.0.0
-
use
Decorates the given statement by prepending a dynamic USE clause. A dynamic USE clause will utilizegraph.byNameto resolve the target database unlessgraphByName(Expression)has already been used.- Parameters:
target- the name of a variable pointing to the graph or constituentstatement- the statement to decorate- Returns:
- the new buildable statement
- Since:
- 2023.4.0
-
includesAll
Creates a condition that checks whether thelhsincludes all elements present inrhs.- Parameters:
lhs- argument that is tested whether it contains all values inrhsor notrhs- the reference collection- Returns:
- an "includesAll" comparison
- Since:
- 2023.9.0
-
includesAny
Creates a condition that checks whether thelhsincludes any element present inrhs.- Parameters:
lhs- argument that is tested whether it contains any values inrhsor notrhs- the reference collection- Returns:
- a "not_includes" comparison
- Since:
- 2023.9.0
-
matching
A condition testing if the given relationship pattern matches.- Parameters:
relationshipPattern- the pattern being evaluated in a condition- Returns:
- a new condition matching the given pattern
- Since:
- 2023.9.0
-
matches
Creates a condition that matches if the right hand side is a regular expression that matches the left hand side via=~.- Parameters:
lhs- the left hand side of the comparisonrhs- the right hand side of the comparison- Returns:
- a "matches" comparison
- Since:
- 2023.9.0
-
isEqualTo
Creates a condition that matches if both expressions are equals according to=.- Parameters:
lhs- the left hand side of the comparisonrhs- the right hand side of the comparison- Returns:
- an "equals" comparison
- Since:
- 2023.9.0
-
isNotEqualTo
Creates a condition that matches if both expressions are equals according to<>.- Parameters:
lhs- the left hand side of the comparisonrhs- the right hand side of the comparison- Returns:
- a "not equals" comparison
- Since:
- 2023.9.0
-
lt
Creates a condition that matches if the left hand side is less than the right hand side.- Parameters:
lhs- the left hand side of the comparisonrhs- the right hand side of the comparison- Returns:
- a "less than" comparison
- Since:
- 2023.9.0
-
lte
Creates a condition that matches if the left hand side is less than or equal the right hand side.- Parameters:
lhs- the left hand side of the comparisonrhs- the right hand side of the comparison- Returns:
- a "less than or equal" comparison
- Since:
- 2023.9.0
-
gte
Creates a condition that matches if the left hand side is greater than or equal the right hand side.- Parameters:
lhs- the left hand side of the comparisonrhs- the right hand side of the comparison- Returns:
- a "greater than or equal" comparison
- Since:
- 2023.9.0
-
gt
Creates a condition that matches if the left hand side is greater than the right hand side.- Parameters:
lhs- the left hand side of the comparisonrhs- the right hand side of the comparison- Returns:
- a "greater than" comparison
- Since:
- 2023.9.0
-
not
Negates the given condition.- Parameters:
condition- the condition to negate. Must not be null.- Returns:
- the negated condition.
- Since:
- 2023.9.0
-
not
Negates the given pattern element: The pattern must not matche to be included in the result.- Parameters:
pattern- the pattern to negate. Must not be null.- Returns:
- a condition that evaluates to true when the pattern does not match.
- Since:
- 2023.9.0
-
startsWith
Creates a condition that checks whether thelhsstarts with therhs.- Parameters:
lhs- the left hand side of the comparisonrhs- the right hand side of the comparison- Returns:
- a new condition.
- Since:
- 2023.9.0
-
contains
Creates a condition that checks whether thelhscontains with therhs.- Parameters:
lhs- the left hand side of the comparisonrhs- the right hand side of the comparison- Returns:
- a new condition.
- Since:
- 2023.9.0
-
endsWith
Creates a condition that checks whether thelhsends with therhs.- Parameters:
lhs- the left hand side of the comparisonrhs- the right hand side of the comparison- Returns:
- a new condition.
- Since:
- 2023.9.0
-
noCondition
Creates a placeholder condition which is not rendered in the final statement but is useful while chaining conditions together.- Returns:
- a placeholder condition.
- Since:
- 2023.9.0
-
isNull
Creates a condition that checks whether theexpressionis null.- Parameters:
expression- the expression to check for null- Returns:
- a new condition.
- Since:
- 2023.9.0
-
isNotNull
Creates a condition that checks whether theexpressionis not null.- Parameters:
expression- the expression to check for null- Returns:
- a new condition.
- Since:
- 2023.9.0
-
isEmpty
Creates a new condition based on a function invocation for theisEmpty()function. See isEmpty.The argument
emust refer to an expression that evaluates to a list forisEmpty()to work- Parameters:
expression- an expression referring to a list- Returns:
- a function call for
isEmpty()for a list - Since:
- 2023.9.0
-
isTrue
Creates a |true condition.- Returns:
- a condition that is always true.
- Since:
- 2023.9.0
-
isFalse
Creates a |false condition.- Returns:
- a condition that is always false.
- Since:
- 2023.9.0
-
hasLabelsOrType
Checks if a given object has the given labels or types.- Parameters:
symbolicName- reference to the entity that should be checked for labels or typeslabelsOrTypes- the list of labels or types to check for- Returns:
- a condition that checks whether a node has a set of given labels or a relationship a set of given types.
- Since:
- 2023.9.0
-
hasLabelsOrType
Checks if a given object has the given labels or types.- Parameters:
symbolicName- reference to the entity that should be checked for labels or typeslabels- the expression of labels or types to check for- Returns:
- a condition that checks whether a node has a set of given labels or a relationship a set of given types.
- Since:
- 2025.1.0
-
count
public static 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 - Since:
- 2023.9.0
-
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.9.0
-
count
Creates a COUNT from a full statement, including its filters and conditions. The statement may or may not have a RETURN clause. It must however not contain any updates. While it would render syntactically correct Cypher, Neo4j does not support updates inside counting sub-queries.- Parameters:
statement- the statement to be passed tocount{}imports- optional imports to be used in the statement (will be imported with WITH)- Returns:
- a counting sub-query.
- Since:
- 2023.9.0
-
count
Creates a COUNT expression based on a list of pattern.- Parameters:
pattern- the list of patterns that shall be countedwhere- an optional where-clause- Returns:
- a count expression.
- Since:
- 2023.9.0
-
collect
Creates a COLLECT subquery from a statement, including its filters and conditions. The statement must return exactly one column. It must however not contain any updates. While it would render syntactically correct Cypher, Neo4j does not support updates inside counting sub-queries.- Parameters:
statement- the statement to be passed toCOLLECT{}- Returns:
- a collecting sub-query.
- Since:
- 2023.9.0
-
nameOrExpression
Returns the name of the given expression or the expression itself if it isn't named.- Type Parameters:
T- the tyoe of the expression- Parameters:
expression- possibly named with a non-empty symbolic name.- Returns:
- the name of the expression if the expression is named or the expression itself.
- Since:
- 2023.9.0
-
createSymbolicNames
-
createSymbolicNames
-
elementId
Creates a function invocation forelementId{}.- Parameters:
node- the node for which the element id should be retrieved- Returns:
- a function call for
elementId()on a node. - Since:
- 2023.9.0
-
elementId
@Neo4jVersion(minimum="5.0.0") public static FunctionInvocation elementId(Relationship relationship) Creates a function invocation forelementId{}.- Parameters:
relationship- the relationship for which the element id should be retrieved- Returns:
- a function call for
elementId()on a relationship. - Since:
- 2023.9.0
-
keys
Creates a function invocation forkeys{}. See keys.- Parameters:
node- the node which keys should be returned.- Returns:
- a function call for
keys()on an expression. - Since:
- 2023.9.0
-
keys
Creates a function invocation forkeys{}. See keys.- Parameters:
relationship- the relationship which keys should be returned.- Returns:
- a function call for
keys()on an expression. - Since:
- 2023.9.0
-
keys
Creates a function invocation forkeys{}. See keys.- Parameters:
expression- the expressions which keys should be returned. Must resolve to a node, relationship or map.- Returns:
- a function call for
keys()on an expression. - Since:
- 2023.9.0
-
labels
Creates a function invocation forlabels{}. See labels.- Parameters:
node- the node for which the labels should be retrieved- Returns:
- a function call for
labels()on a node. - Since:
- 2023.9.0
-
labels
Creates a function invocation forlabels{}. Thesymbolic namenodemust point to a node. This can't be checked during compile time, so please make sure of that.See labels.
- Parameters:
node- the node for which the labels should be retrieved- Returns:
- a function call for
labels()on a node. - Since:
- 2023.9.0
-
type
Creates a function invocation fortype{}. See type.- Parameters:
relationship- the relationship for which the type should be retrieved- Returns:
- a function call for
type()on a relationship. - Since:
- 2023.9.0
-
type
Creates a function invocation fortype{}. Thesymbolic namerelationshipmust point to a relationship. This can't be checked during compile time, so please make sure of that.See type.
- Parameters:
relationship- the relationship for which the type should be retrieved- Returns:
- a function call for
type()on a relationship. - Since:
- 2023.9.0
-
count
Creates an instance of thecountfunction.- Parameters:
node- the named node to be counted- Returns:
- a function call for
count()for one named node - Since:
- 2023.9.0
- See Also:
-
count
Creates a function invocation for thecount()function. See count.- Parameters:
expression- an expression describing the things to count.- Returns:
- a function call for
count()for an expression likeasterisk()etc. - Since:
- 2023.9.0
-
countDistinct
Creates a function invocation for acount()function withDISTINCTadded.- Parameters:
node- the named node to be counted- Returns:
- a function call for
count()for one named node - Since:
- 2023.9.0
- See Also:
-
countDistinct
- Parameters:
expression- an expression describing the things to count.- Returns:
- a function call for
count()for an expression likeasterisk()etc. - Since:
- 2023.9.0
-
properties
Creates a function invocation forproperties())on nodes.- Parameters:
node- the node who's properties should be returned.- Returns:
- a function call for
properties()) - Since:
- 2023.9.0
-
properties
Creates a function invocation forproperties())on relationships.- Parameters:
relationship- the relationship who's properties should be returned.- Returns:
- a function call for
properties()) - Since:
- 2023.9.0
-
properties
Creates a function invocation forproperties())on maps.- Parameters:
map- the map whose properties should be returned.- Returns:
- a function call for
properties()) - Since:
- 2023.9.0
-
coalesce
Creates a function invocation for thecoalesce()function. See coalesce.- Parameters:
expressions- one or more expressions to be coalesced- Returns:
- a function call for
coalesce. - Since:
- 2023.9.0
-
left
Creates a function invocation for theleft()function. See left.- Parameters:
expression- an expression resolving to a stringlength- desired length- Returns:
- a function call for
left() - Since:
- 2023.9.0
-
ltrim
Creates a function invocation for theltrim()function. See ltrim.- Parameters:
expression- an expression resolving to a string- Returns:
- a function call for
ltrim() - Since:
- 2023.9.0
-
replace
public static FunctionInvocation replace(Expression original, Expression search, Expression replace) Creates a function invocation for thereplace()function. See replace.- Parameters:
original- an expression that returns a stringsearch- an expression that specifies the string to be replaced inoriginal.replace- an expression that specifies the replacement string.- Returns:
- a function call for
replace() - Since:
- 2023.9.0
-
reverse
Creates a function invocation for thereverse()function. See reverse.- Parameters:
original- an expression that returns a string- Returns:
- a function call for
reverse() - Since:
- 2023.9.0
-
right
Creates a function invocation for theright()function. See right.- Parameters:
expression- an expression resolving to a stringlength- desired length- Returns:
- a function call for
right() - Since:
- 2023.9.0
-
rtrim
Creates a function invocation for thertrim()function. See rtrim.- Parameters:
expression- an expression resolving to a string- Returns:
- a function call for
rtrim() - Since:
- 2023.9.0
-
substring
public static FunctionInvocation substring(Expression original, Expression start, Expression length) Creates a function invocation for thesubstring()function. See rtrim.- Parameters:
original- an expression resolving to a stringstart- an expression that returns a positive integer, denoting the position at which the substring will begin.length- an expression that returns a positive integer, denoting how many characters of original will be returned.- Returns:
- a function call for
substring() - Since:
- 2023.9.0
-
toLower
Creates a function invocation for thetoLower()function. See toLower.- Parameters:
expression- an expression resolving to a string- Returns:
- a function call for
toLower()for one expression - Since:
- 2023.9.0
-
toUpper
Creates a function invocation for thetoUpper()function. See toUpper.- Parameters:
expression- an expression resolving to a string- Returns:
- a function call for
toLower()for one expression - Since:
- 2023.9.0
-
trim
Creates a function invocation for thetrim()function. See trim.- Parameters:
expression- an expression resolving to a string- Returns:
- a function call for
trim()for one expression - Since:
- 2023.9.0
-
split
Creates a function invocation for thesplit()function. See split.- Parameters:
expression- an expression resolving to a string that should be splitdelimiter- the delimiter on which to split- Returns:
- a function call for
split() - Since:
- 2023.9.0
-
split
Creates a function invocation for thesplit()function. See split.- Parameters:
expression- an expression resolving to a string that should be splitdelimiter- the delimiter on which to split- Returns:
- a function call for
split() - Since:
- 2023.9.0
-
size
- Parameters:
expression- the expression who's size is to be returned- Returns:
- a function call for
size()for one expression - Since:
- 2023.9.0
-
size
Creates a function invocation for thesize()function.sizecan be applied to- Parameters:
pattern- the pattern for whichsize()should be invoked.- Returns:
- a function call for
size()for a pattern - Since:
- 2023.9.0
-
exists
Creates a function invocation for theexists()function. See exists.- Parameters:
expression- the expression whose existence is to be evaluated- Returns:
- a function call for
exists()for one expression - Since:
- 2023.9.0
-
distance
Creates a function invocation for thedistance()function. See exists. Both points need to be in the same coordinate system.- Parameters:
point1- point 1point2- point 2- Returns:
- a function call for
distance() - Since:
- 2023.9.0
-
point
Creates a function invocation for thepoint()function. See point.- Parameters:
parameterMap- the map of parameters forpoint()- Returns:
- a function call for
point() - Since:
- 2023.9.0
-
point
Creates a function invocation for thepoint()function. See point.This generic expression variant is useful for referencing a point inside a parameter or another map.
- Parameters:
expression- an expression resolving to a valid map of parameters forpoint()- Returns:
- a function call for
point() - Since:
- 2023.9.0
-
point
Creates a function invocation for thepoint()function. See point.- Parameters:
parameter- a parameter referencing apoint()- Returns:
- a function call for
point() - Since:
- 2023.9.0
-
cartesian
Convenience method for creating a 2d cartesian point.- Parameters:
x- the x coordinatey- the y coordinate- Returns:
- a function call for
point() - Since:
- 2023.9.0
-
coordinate
Convenience method for creating a 2d coordinate in the WGS 84 coordinate system.- Parameters:
longitude- the longitudelatitude- the latitude- Returns:
- a function call for
point() - Since:
- 2023.9.0
-
withinBBox
public static FunctionInvocation withinBBox(Expression point, Expression lowerLeft, Expression upperRight) Creates a function invocation for thepoint.withinBBoxfunction. See point.withinBBox.- Parameters:
point- the point to checklowerLeft- the lower left point of the bounding box (south-west coordinate)upperRight- the upper right point of the bounding box (north-east coordinate)- Returns:
- a function call for
point.withinBBox - Since:
- 2023.9.0
-
avg
Creates a function invocation for theavg()function. See avg.- Parameters:
expression- the things to average- Returns:
- a function call for
avg() - Since:
- 2023.9.0
-
avgDistinct
- Parameters:
expression- the things to average- Returns:
- a function call for
avg() - Since:
- 2023.9.0
-
collect
Creates a function invocation for thecollect()function.- Parameters:
variable- the named thing to collect- Returns:
- a function call for
collect() - Since:
- 2023.9.0
- See Also:
-
collectDistinct
Creates a function invocation for thecollect()function withDISTINCTadded.- Parameters:
variable- the named thing to collect- Returns:
- a function call for
collect() - Since:
- 2023.9.0
- See Also:
-
collect
Creates a function invocation for thecollect()function. See collect.- Parameters:
expression- the things to collect- Returns:
- a function call for
collect() - Since:
- 2023.9.0
-
collectDistinct
- Parameters:
expression- the things to collect- Returns:
- a function call for
collect() - Since:
- 2023.9.0
-
max
Creates a function invocation for themax()function. See max.- Parameters:
expression- a list from which the maximum element value is returned- Returns:
- a function call for
max() - Since:
- 2023.9.0
-
maxDistinct
- Parameters:
expression- a list from which the maximum element value is returned- Returns:
- a function call for
max() - Since:
- 2023.9.0
-
min
Creates a function invocation for themin()function. See min.- Parameters:
expression- a list from which the minimum element value is returned- Returns:
- a function call for
min() - Since:
- 2023.9.0
-
minDistinct
- Parameters:
expression- a list from which the minimum element value is returned- Returns:
- a function call for
min() - Since:
- 2023.9.0
-
percentileCont
Creates a function invocation for thepercentileCont()function. See percentileCont.- Parameters:
expression- a numeric expressionpercentile- a numeric value between 0.0 and 1.0- Returns:
- a function call for
percentileCont() - Since:
- 2023.9.0
-
percentileContDistinct
Creates a function invocation for thepercentileCont()function withDISTINCTadded. See percentileCont.- Parameters:
expression- a numeric expressionpercentile- a numeric value between 0.0 and 1.0- Returns:
- a function call for
percentileCont() - Since:
- 2023.9.0
-
percentileDisc
Creates a function invocation for thepercentileDisc()function. See percentileDisc.- Parameters:
expression- a numeric expressionpercentile- a numeric value between 0.0 and 1.0- Returns:
- a function call for
percentileDisc() - Since:
- 2023.9.0
-
percentileDiscDistinct
Creates a function invocation for thepercentileDisc()function withDISTINCTadded. See percentileDisc.- Parameters:
expression- a numeric expressionpercentile- a numeric value between 0.0 and 1.0- Returns:
- a function call for
percentileDisc() - Since:
- 2023.9.0
-
stDev
Creates a function invocation for thestDev()function. See stDev.- Parameters:
expression- a numeric expression- Returns:
- a function call for
stDev() - Since:
- 2023.9.0
-
stDevDistinct
- Parameters:
expression- a numeric expression- Returns:
- a function call for
stDev() - Since:
- 2023.9.0
-
stDevP
Creates a function invocation for thestDevP()function. See stDevP.- Parameters:
expression- a numeric expression- Returns:
- a function call for
stDevP() - Since:
- 2023.9.0
-
stDevPDistinct
- Parameters:
expression- a numeric expression- Returns:
- a function call for
stDevP() - Since:
- 2023.9.0
-
sum
Creates a function invocation for thesum()function. See sum.- Parameters:
expression- an expression returning a set of numeric values- Returns:
- a function call for
sum() - Since:
- 2023.9.0
-
sumDistinct
- Parameters:
expression- an expression returning a set of numeric values- Returns:
- a function call for
sum() - Since:
- 2023.9.0
-
range
Creates a function invocation for therange()function.- Parameters:
start- the range's startend- the range's end- Returns:
- a function call for
range() - Since:
- 2023.9.0
- See Also:
-
range
Creates a function invocation for therange()function.- Parameters:
start- the range's startend- the range's end- Returns:
- a function call for
range() - Since:
- 2023.9.0
- See Also:
-
range
Creates a function invocation for therange()function. See range.- Parameters:
start- the range's startend- the range's endstep- the range's step- Returns:
- a function call for
range() - Since:
- 2023.9.0
- See Also:
-
range
Creates a function invocation for therange()function. See range.- Parameters:
start- the range's startend- the range's endstep- the range's step- Returns:
- a function call for
range() - Since:
- 2023.9.0
-
head
Creates a function invocation for thehead()function. See head.- Parameters:
expression- a list from which the head element is returned- Returns:
- a function call for
head() - Since:
- 2023.9.0
-
last
Creates a function invocation for thelast()function. See last.- Parameters:
expression- a list from which the last element is returned- Returns:
- a function call for
last() - Since:
- 2023.9.0
-
nodes
Creates a function invocation fornodes{}. See nodes.- Parameters:
path- the path for which the number of nodes should be retrieved- Returns:
- a function call for
nodes()on a path. - Since:
- 2023.9.0
-
nodes
Creates a function invocation fornodes{}. See nodes.- Parameters:
symbolicName- the symbolic name of a path for which the number of nodes should be retrieved- Returns:
- a function call for
nodes{}on a path represented by a symbolic name. - Since:
- 2023.9.0
-
relationships
Creates a function invocation forrelationships{}. See relationships.- Parameters:
path- the path for which the relationships should be retrieved- Returns:
- a function call for
relationships()on a path. - Since:
- 2023.9.0
-
relationships
Creates a function invocation forrelationships{}. See relationships.- Parameters:
symbolicName- the symbolic name of a path for which the relationships should be retrieved- Returns:
- a function call for
relationships()on a path represented by a symbolic name. - Since:
- 2023.9.0
-
startNode
Creates a function invocation forstartNode{}. See startNode.- Parameters:
relationship- the relationship for which the start node be retrieved- Returns:
- a function call for
startNode()on a path. - Since:
- 2023.9.0
-
endNode
Creates a function invocation forendNode{}. See endNode.- Parameters:
relationship- the relationship for which the end node be retrieved- Returns:
- a function call for
endNode()on a path. - Since:
- 2023.9.0
-
date
Creates a function invocation fordate(). See date. This is the most simple form.- Returns:
- a function call for
date(). - Since:
- 2023.9.0
-
calendarDate
Creates a function invocation fordate({}). See date.- Parameters:
year- the yearmonth- the monthday- the day- Returns:
- a function call for
date({}). - Since:
- 2023.9.0
-
weekDate
Creates a function invocation fordate({}). See date.- Parameters:
year- the yearweek- the optional weekdayOfWeek- the optional day of the week- Returns:
- a function call for
date({}). - Since:
- 2023.9.0
-
quarterDate
Creates a function invocation fordate({}). See date.- Parameters:
year- the yearquarter- the optional weekdayOfQuarter- the optional day of the week- Returns:
- a function call for
date({}). - Since:
- 2023.9.0
-
ordinalDate
Creates a function invocation fordate({}). See date.- Parameters:
year- the yearordinalDay- the ordinal day of the year.- Returns:
- a function call for
date({}). - Since:
- 2023.9.0
-
date
Creates a function invocation fordate({}). See date. This is the most generic form.- Parameters:
components- the map to pass todate({})- Returns:
- a function call for
date({}). - Since:
- 2023.9.0
-
date
Creates a function invocation fordate({}). See date. This creates a date from a string.- Parameters:
temporalValue- a string representing a temporal value.- Returns:
- a function call for
date({}). - Since:
- 2023.9.0
-
date
Creates a function invocation fordate({}). See date. This creates a date from a string.- Parameters:
temporalValue- an expression representing a temporal value.- Returns:
- a function call for
date({}). - Since:
- 2023.9.0
-
datetime
Creates a function invocation fordatetime({}). See datetime.- Returns:
- a function call for
datetime({}). - Since:
- 2023.9.0
-
datetime
Creates a function invocation fordatetime({}). See datetime.- Parameters:
timeZone- the timezone to use when creating the temporal instance- Returns:
- a function call for
datetime({}). - Since:
- 2023.9.0
-
datetime
Creates a function invocation fordatetime({}). See datetime. This is the most generic form.- Parameters:
components- the map to pass todatetime({})- Returns:
- a function call for
datetime({}). - Since:
- 2023.9.0
-
datetime
Creates a function invocation fordatetime({}). See datetime. This creates a datetime from a string.- Parameters:
temporalValue- a string representing a temporal value.- Returns:
- a function call for
datetime({}). - Since:
- 2023.9.0
-
datetime
Creates a function invocation fordatetime({}). See datetime. This creates a datetime from a string.- Parameters:
temporalValue- an expression representing a temporal value.- Returns:
- a function call for
date({}). - Since:
- 2023.9.0
-
localdatetime
Creates a function invocation forlocaldatetime({}). See localdatetime.- Returns:
- a function call for
localdatetime({}). - Since:
- 2023.9.0
-
localdatetime
Creates a function invocation forlocaldatetime({}). See localdatetime.- Parameters:
timeZone- the timezone to use when creating the temporal instance- Returns:
- a function call for
localdatetime({}). - Since:
- 2023.9.0
-
localdatetime
Creates a function invocation forlocaldatetime({}). See localdatetime. This is the most generic form.- Parameters:
components- the map to pass tolocaldatetime({})- Returns:
- a function call for
localdatetime({}). - Since:
- 2023.9.0
-
localdatetime
Creates a function invocation forlocaldatetime({}). See localdatetime. This creates a localdatetime from a string.- Parameters:
temporalValue- a string representing a temporal value.- Returns:
- a function call for
localdatetime({}). - Since:
- 2023.9.0
-
localdatetime
Creates a function invocation forlocaldatetime({}). See localdatetime. This creates a localdatetime from a string.- Parameters:
temporalValue- an expression representing a temporal value.- Returns:
- a function call for
localdatetime({}). - Since:
- 2023.9.0
-
localtime
Creates a function invocation forlocaltime({}). See localtime.- Returns:
- a function call for
localtime({}). - Since:
- 2023.9.0
-
localtime
Creates a function invocation forlocaltime({}). See localtime.- Parameters:
timeZone- the timezone to use when creating the temporal instance- Returns:
- a function call for
localtime({}). - Since:
- 2023.9.0
-
localtime
Creates a function invocation forlocaltime({}). See localtime. This is the most generic form.- Parameters:
components- the map to pass tolocaltime({})- Returns:
- a function call for
localtime({}). - Since:
- 2023.9.0
-
localtime
Creates a function invocation forlocaltime({}). See localtime. This creates a localtime from a string.- Parameters:
temporalValue- a string representing a temporal value.- Returns:
- a function call for
localtime({}). - Since:
- 2023.9.0
-
localtime
Creates a function invocation forlocaltime({}). See localtime. This creates a localtime from a string.- Parameters:
temporalValue- an expression representing a temporal value.- Returns:
- a function call for
localtime({}). - Since:
- 2023.9.0
-
time
Creates a function invocation fortime({}). See time.- Returns:
- a function call for
time({}). - Since:
- 2023.9.0
-
time
Creates a function invocation fortime({}). See time.- Parameters:
timeZone- the timezone to use when creating the temporal instance- Returns:
- a function call for
time({}). - Since:
- 2023.9.0
-
time
Creates a function invocation fortime({}). See time. This is the most generic form.- Parameters:
components- the map to pass totime({})- Returns:
- a function call for
time({}). - Since:
- 2023.9.0
-
time
Creates a function invocation fortime({}). See time. This creates a time from a string.- Parameters:
temporalValue- a string representing a temporal value.- Returns:
- a function call for
time({}). - Since:
- 2023.9.0
-
time
Creates a function invocation fortime({}). See time. This creates a time from a string.- Parameters:
temporalValue- an expression representing a temporal value.- Returns:
- a function call for
time({}). - Since:
- 2023.9.0
-
duration
Creates a function invocation forduration({}). See duration. This is the most generic form.- Parameters:
components- the map to pass toduration({})- Returns:
- a function call for
duration({}). - Since:
- 2023.9.0
-
duration
Creates a function invocation forduration({}). See duration. This creates a duration from a string.- Parameters:
temporalAmount- a string representing a temporal amount.- Returns:
- a function call for
duration({}). - Since:
- 2023.9.0
-
duration
Creates a function invocation forduration({}). See duration. This creates a duration from a string.- Parameters:
temporalAmount- an expression representing a temporal amount.- Returns:
- a function call for
duration({}). - Since:
- 2023.9.0
-
reduce
Starts building a function invocation forreduce({}).- Parameters:
variable- the closure will have a variable introduced in its context. We decide here which variable to use.- Returns:
- an ongoing definition for a function call to
reduce({}). - Since:
- 2023.9.0
-
abs
Creates a function invocation forabs({}). See abs.- Parameters:
expression- the value to pass to the function.- Returns:
- a function call for
abs({}). - Since:
- 2023.9.0
-
ceil
Creates a function invocation forceil({}). See ceil.- Parameters:
expression- the value to pass to the function.- Returns:
- a function call for
ceil({}). - Since:
- 2023.9.0
-
floor
Creates a function invocation forfloor({}). See floor.- Parameters:
expression- the value to pass to the function.- Returns:
- a function call for
floor({}). - Since:
- 2023.9.0
-
rand
Creates a function invocation forrand({}). See rand.- Returns:
- a function call for
rand({}). - Since:
- 2023.9.0
-
round
Creates a function invocation forround({}). See round.- Parameters:
value- the value to roundexpression- additional parameters, length must be 0, 1 or 2: First entry is the precision, second is the rounding mode- Returns:
- a function call for
round({}). - Since:
- 2023.9.0
-
sign
Creates a function invocation forsign({}). See sign.- Parameters:
expression- the value to pass to the function.- Returns:
- a function call for
sign({}). - Since:
- 2023.9.0
-
e
Creates a function invocation fore({}). See e.- Returns:
- a function call for
e({}). - Since:
- 2023.9.0
-
exp
Creates a function invocation forexp({}). See exp.- Parameters:
expression- the value to pass to the function.- Returns:
- a function call for
exp({}). - Since:
- 2023.9.0
-
log
Creates a function invocation forlog({}). See log.- Parameters:
expression- the value to pass to the function.- Returns:
- a function call for
log({}). - Since:
- 2023.9.0
-
log10
Creates a function invocation forlog10({}). See log10.- Parameters:
expression- the value to pass to the function.- Returns:
- a function call for
log10({}). - Since:
- 2023.9.0
-
sqrt
Creates a function invocation forsqrt({}). See sqrt.- Parameters:
expression- the value to pass to the function.- Returns:
- a function call for
sqrt({}). - Since:
- 2023.9.0
-
acos
Creates a function invocation foracos({}). See acos.- Parameters:
expression- the value to pass to the function.- Returns:
- a function call for
acos({}). - Since:
- 2023.9.0
-
asin
Creates a function invocation forasin({}). See asin.- Parameters:
expression- the value to pass to the function.- Returns:
- a function call for
asin({}). - Since:
- 2023.9.0
-
atan
Creates a function invocation foratan({}). See atan.- Parameters:
expression- the value to pass to the function.- Returns:
- a function call for
atan({}). - Since:
- 2023.9.0
-
atan2
Creates a function invocation foratan2({}). See atan2.- Parameters:
y- the y value of a pointx- the x value of a point- Returns:
- a function call for
atan2({}). - Since:
- 2023.9.0
-
cos
Creates a function invocation forcos({}). See cos.- Parameters:
expression- the value to pass to the function.- Returns:
- a function call for
cos({}). - Since:
- 2023.9.0
-
cot
Creates a function invocation forcot({}). See cot.- Parameters:
expression- the value to pass to the function.- Returns:
- a function call for
cot({}). - Since:
- 2023.9.0
-
degrees
Creates a function invocation fordegrees({}). See degrees.- Parameters:
expression- the value to pass to the function.- Returns:
- a function call for
degrees({}). - Since:
- 2023.9.0
-
haversin
Creates a function invocation forhaversin({}). See haversin.- Parameters:
expression- the value to pass to the function.- Returns:
- a function call for
haversin({}). - Since:
- 2023.9.0
-
pi
Creates a function invocation forpi({}). See pi.- Returns:
- a function call for
pi({}). - Since:
- 2023.9.0
-
radians
Creates a function invocation forradians({}). See radians.- Parameters:
expression- the value to pass to the function.- Returns:
- a function call for
radians({}). - Since:
- 2023.9.0
-
sin
Creates a function invocation forsin({}). See sin.- Parameters:
expression- the value to pass to the function.- Returns:
- a function call for
sin({}). - Since:
- 2023.9.0
-
tan
Creates a function invocation fortan({}). See tan.- Parameters:
expression- the value to pass to the function.- Returns:
- a function call for
tan({}). - Since:
- 2023.9.0
-
toInteger
Creates a function invocation fortoInteger({}). See toInteger.- Parameters:
expression- the value to pass to the function.- Returns:
- a function call for
toInteger({}). - Since:
- 2023.9.0
-
toString
Creates a function invocation fortoString({}). See toString.- Parameters:
expression- the value to pass to the function.- Returns:
- a function call for
toString({}). - Since:
- 2023.9.0
-
toStringOrNull
Creates a function invocation fortoStringOrNull({}). See toStringOrNull.- Parameters:
expression- the value to pass to the function.- Returns:
- a function call for
toStringOrNull({}). - Since:
- 2023.9.0
-
toFloat
Creates a function invocation fortoFloat({}). See toFloat.- Parameters:
expression- the value to pass to the function.- Returns:
- a function call for
toFloat({}). - Since:
- 2023.9.0
-
toBoolean
Creates a function invocation fortoBoolean({}). See toBoolean.- Parameters:
expression- the value to pass to the function.- Returns:
- a function call for
toBoolean({}). - Since:
- 2023.9.0
-
linenumber
Creates a function invocation forlinenumber({}). Only applicable inside anLOAD CSVclause.- Returns:
- a function call for
linenumber({}). - Since:
- 2023.9.0
-
file
Creates a function invocation forfile({}). Only applicable inside anLOAD CSVclause.- Returns:
- a function call for
file({}). - Since:
- 2023.9.0
-
randomUUID
Creates a function invocation forrandomUUID({}). Only applicable inside anLOAD CSVclause.- Returns:
- a function call for
randomUUID({}). - Since:
- 2023.9.0
-
length
Creates a function invocation forlength(). See length.- Parameters:
path- the path for which the length should be retrieved- Returns:
- a function call for
length()on a path. - Since:
- 2023.9.0
-
graphNames
Creates a function invocation forgraph.names(). See graph.names.- Returns:
- a function call for
graph.names(). - Since:
- 2023.9.0
-
graphPropertiesByName
@Neo4jVersion(minimum="5.0.0") public static FunctionInvocation graphPropertiesByName(Expression name) Creates a function invocation forgraph.propertiesByName(). See graph.propertiesByName.- Parameters:
name- the name of the graph- Returns:
- a function call for
graph.propertiesByName(). - Since:
- 2023.9.0
-
graphByName
Creates a function invocation forgraph.byName(). See graph.byName.- Parameters:
name- the name of the graph- Returns:
- a function call for
graph.byName(). - Since:
- 2023.9.0
-
createProjection
Create a new map projection with the given, mixed content.- Parameters:
name- the symbolic name of this projectcontent- the projected content- Returns:
- a new map projection
- Since:
- 2023.9.0
-
minus
Creates an unary minus operation.- Parameters:
e- the expression to which the unary minus should be applied. We don't check if it's a numeric expression, but in hindsight to generate semantically correct Cypher, it's recommended that is one.- Returns:
- an unary minus operation.
- Since:
- 2023.9.0
-
plus
Creates an unary plus operation.- Parameters:
e- the expression to which the unary plus should be applied. We don't check if it's a numeric expression, but in hindsight to generate semantically correct Cypher, it's recommended that is one.- Returns:
- an unary plus operation.
- Since:
- 2023.9.0
-
concat
-
add
-
subtract
-
multiply
-
divide
-
remainder
-
pow
-
set
Creates a=operation. The left hand side should resolve to a property or to something which has labels or types to modify and the right hand side should either be new properties or labels.- Parameters:
target- the target that should be modifiedvalue- the new value of the target- Returns:
- a new operation.
- Since:
- 2023.9.0
-
mutate
Creates a+=operation. The left hand side must resolve to a container (either a node or a relationship) of properties and the right hand side must be a map of new or updated properties- Parameters:
target- the target container that should be modifiedvalue- the new properties- Returns:
- a new operation.
- Since:
- 2023.9.0
-
mutate
Creates a+=operation. The left hand side must resolve to a container (either a node or a relationship) of properties and the right hand side must be a map of new or updated properties- Parameters:
target- the target container that should be modifiedvalue- the new properties- Returns:
- a new operation.
- Since:
- 2023.9.0
-
setLabel
Creates an operation adding one or more labels to a givennode.- Parameters:
target- the target of the new labelslabel- the labels to be added- Returns:
- a set operation
- Since:
- 2023.9.0
-
setLabel
Creates an operation adding dynamic labels to anode.- Parameters:
target- the target of the new labelslabel- the labels to be added- Returns:
- a set operation
- Since:
- 2025.1.0
-
removeLabel
Creates an operation removing one or more labels from a givennode.- Parameters:
target- the target of the remove operationlabel- the labels to be removed- Returns:
- a remove operation
- Since:
- 2023.9.0
-
exists
Creates a new condition based on a function invocation for theexists()function. See exists.- Parameters:
property- the property to be passed toexists()- Returns:
- a function call for
exists()for one property - Since:
- 2023.9.0
-
exists
Creates a new condition based on a function invocation for theexists()function. See exists.- Parameters:
pattern- the pattern to be passed toexists()- Returns:
- a function call for
exists()for one pattern - Since:
- 2023.9.0
-
exists
Creates a new condition via an existential sub-query. The statement may or may not have a RETURN clause. It must however not contain any updates. While it would render syntactically correct Cypher, Neo4j does not support updates inside existential sub-queries.- Parameters:
statement- the statement to be passed toexists{}imports- optional imports to be used in the statement (will be imported with WITH)- Returns:
- an existential sub-query.
- Since:
- 2023.9.0
-
exists
Creates a new condition via an existential sub-query based on the list of patterns.- Parameters:
pattern- the pattern that must exists- Returns:
- an existential sub-query.
- Since:
- 2023.9.0
-
exists
Creates a new condition via an existential sub-query based on the list of patterns.- Parameters:
pattern- the list of patterns that must exists- Returns:
- an existential sub-query.
- Since:
- 2023.9.0
-
exists
Creates a new condition via an existential sub-query based on the list of patterns and an optionalwhere-clause.- Parameters:
pattern- the list of patterns that must existswhere- an optional where-clause- Returns:
- an existential sub-query.
- Since:
- 2023.9.0
-
all
Starts building an ALL predicate.- Parameters:
variable- the variable referring to elements of a list- Returns:
- a builder for the
all()predicate function - Since:
- 2023.9.0
- See Also:
-
all
Starts building a new condition based on a function invocation for theall()function. See exists.- Parameters:
variable- the variable referring to elements of a list- Returns:
- a builder for the
all()predicate function - Since:
- 2023.9.0
-
any
Starts building a ANY predicate.- Parameters:
variable- the variable referring to elements of a list- Returns:
- a builder for the
any()predicate function - Since:
- 2023.9.0
- See Also:
-
any
Starts building a new condition based on a function invocation for theany()function. See exists.- Parameters:
variable- the variable referring to elements of a list- Returns:
- a builder for the
any()predicate function - Since:
- 2023.9.0
-
none
Starts building a NONE predicate.- Parameters:
variable- the variable referring to elements of a list- Returns:
- a builder for the
none()predicate function - Since:
- 2023.9.0
- See Also:
-
none
Starts building a new condition based on a function invocation for thenone()function. See exists.- Parameters:
variable- the variable referring to elements of a list- Returns:
- a builder for the
none()predicate function - Since:
- 2023.9.0
-
single
Starts building a SINGLE predicate.- Parameters:
variable- the variable referring to elements of a list- Returns:
- a builder for the
single()predicate function - Since:
- 2023.9.0
- See Also:
-
single
Starts building a new condition based on a function invocation for thesingle()function. See single.- Parameters:
variable- the variable referring to elements of a list- Returns:
- a builder for the
single()predicate function - Since:
- 2023.9.0
-
node(Labels)