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 @NotNull FunctionInvocationabs(@NotNull Expression expression) Creates a function invocation forabs({}).static @NotNull FunctionInvocationacos(@NotNull Expression expression) Creates a function invocation foracos({}).static <FE> @NotNull ForeignAdapter<FE>adapt(FE expression) Provides access to the foreign DSL adapter.static Operationadd(Expression op1, Expression op2) static @NotNull OngoingListBasedPredicateFunctionstatic @NotNull OngoingListBasedPredicateFunctionall(SymbolicName variable) Starts building a new condition based on a function invocation for theall()function.static <T> @NotNull Parameter<T>anonParameter(T value) Creates a new anonymous parameter with a value bound to it.static @NotNull OngoingListBasedPredicateFunctionstatic @NotNull OngoingListBasedPredicateFunctionany(SymbolicName variable) Starts building a new condition based on a function invocation for theany()function.static @NotNull NodeanyNode()static @NotNull Nodestatic @NotNull NodeanyNode(SymbolicName symbolicName) static @NotNull MapExpressionasExpression(Map<String, Object> map) Creates a map of expression from a Java Map.static @NotNull FunctionInvocationasin(@NotNull Expression expression) Creates a function invocation forasin({}).static @NotNull Asteriskasterisk()static @NotNull FunctionInvocationatan(@NotNull Expression expression) Creates a function invocation foratan({}).static @NotNull FunctionInvocationatan2(@NotNull Expression y, @NotNull Expression x) Creates a function invocation foratan2({}).static @NotNull FunctionInvocationavg(Expression expression) Creates a function invocation for theavg()function.static @NotNull FunctionInvocationavgDistinct(Expression expression) Creates a function invocation for theavg()function withDISTINCTadded.static @NotNull FunctionInvocationcalendarDate(Integer year, Integer month, Integer day) Creates a function invocation fordate({}).static @NotNull StatementBuilder.OngoingStandaloneCallWithoutArgumentsStarts defining a procedure call of the procedure with the given procedureName.static @NotNull StatementBuilder.OngoingStandaloneCallWithoutArgumentsStarts defining a procedure call of the procedure with the given qualified name.static @NotNull StatementBuilder.OngoingStandaloneCallWithoutArgumentscall(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 @NotNull FunctionInvocationcartesian(double x, double y) Convenience method for creating a 2d cartesian pointstatic @NotNull Casestatic @NotNull CasecaseExpression(@Nullable Expression expression) static @NotNull FunctionInvocationceil(@NotNull Expression expression) Creates a function invocation forceil({}).static @NotNull FunctionInvocationcoalesce(Expression... expressions) Creates a function invocation for thecoalesce()function.static @NotNull FunctionInvocationCreates a function invocation for thecollect()function.static @NotNull FunctionInvocationcollect(Expression expression) Creates a function invocation for thecollect()function.static @NotNull ExpressionCreates a COLLECT subquery from a statement, including its filters and conditions.static @NotNull FunctionInvocationcollectDistinct(@NotNull Named variable) Creates a function invocation for thecollect()function withDISTINCTadded.static @NotNull FunctionInvocationcollectDistinct(Expression expression) 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 @NotNull FunctionInvocationcoordinate(double longitude, double latitude) Convenience method for creating a 2d coordinate in the WGS 84 coordinate systemstatic @NotNull FunctionInvocationcos(@NotNull Expression expression) Creates a function invocation forcos({}).static @NotNull FunctionInvocationcot(@NotNull Expression expression) Creates a function invocation forcot({}).static @NotNull FunctionInvocationstatic CountExpressioncount(List<PatternElement> pattern, @Nullable Where where) Creates a COUNT expression based on a list of patternstatic @NotNull FunctionInvocationcount(Expression expression) Creates a function invocation for thecount()function.static @NotNull CountExpressioncount(PatternElement requiredPattern, PatternElement... patternElement) Creates a COUNT sub-query expressions from at least one pattern.static @NotNull CountExpressioncount(Statement.UnionQuery union) Creates a COUNT with an inner UNION sub-query.static @NotNull CountExpressioncount(Statement statement, IdentifiableElement... imports) Creates a COUNT from a full statement, including its filters and conditions.static @NotNull FunctionInvocationcountDistinct(@NotNull Node node) Creates a function invocation for acount()function withDISTINCTadded.static @NotNull FunctionInvocationcountDistinct(Expression expression) 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 contentstatic SymbolicName[]createSymbolicNames(String[] variables) static SymbolicName[]createSymbolicNames(Named[] variables) static @NotNull FunctionInvocationdate()Creates a function invocation fordate().static @NotNull FunctionInvocationCreates a function invocation fordate({}).static @NotNull FunctionInvocationdate(@NotNull Expression temporalValue) Creates a function invocation fordate({}).static @NotNull FunctionInvocationdate(@NotNull MapExpression components) Creates a function invocation fordate({}).static @NotNull FunctionInvocationdatetime()Creates a function invocation fordatetime({}).static @NotNull FunctionInvocationCreates a function invocation fordatetime({}).static @NotNull FunctionInvocationCreates a function invocation fordatetime({}).static @NotNull FunctionInvocationdatetime(@NotNull Expression temporalValue) Creates a function invocation fordatetime({}).static @NotNull FunctionInvocationdatetime(@NotNull MapExpression components) Creates a function invocation fordatetime({}).static @NotNull FunctionInvocationdegrees(@NotNull Expression expression) Creates a function invocation fordegrees({}).static @NotNull FunctionInvocationdistance(@NotNull Expression point1, @NotNull Expression point2) Creates a function invocation for thedistance()function.static Operationdivide(Expression op1, Expression op2) static @NotNull FunctionInvocationCreates a function invocation forduration({}).static @NotNull FunctionInvocationduration(@NotNull Expression temporalAmount) Creates a function invocation forduration({}).static @NotNull FunctionInvocationduration(@NotNull MapExpression components) Creates a function invocation forduration({}).static @NotNull FunctionInvocatione()Creates a function invocation fore({}).static @NotNull FunctionInvocationCreates a function invocation forelementId{}.static @NotNull FunctionInvocationelementId(@NotNull Relationship relationship) Creates a function invocation forelementId{}.static @NotNull FunctionInvocationendNode(@NotNull Relationship relationship) Creates a function invocation forendNode{}.static ConditionendsWith(Expression lhs, Expression rhs) Creates a condition that checks whether thelhsends with therhs.static Conditionexists(List<PatternElement> pattern) Creates a new condition via an existential sub-query based on the list of patternsstatic Conditionexists(List<PatternElement> pattern, @Nullable Where where) Creates a new condition via an existential sub-query based on the list of patterns and an optionalwhere-clause.static @NotNull 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 patternsstatic @NotNull ConditionCreates a new condition based on a function invocation for theexists()function.static @NotNull 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 @NotNull FunctionInvocationexp(@NotNull Expression expression) Creates a function invocation forexp({}).static @NotNull FunctionInvocationfile()Creates a function invocation forfile({}).static @NotNull FunctionInvocationfloor(@NotNull Expression expression) Creates a function invocation forfloor({}).static Stringformat(Expression expression) Tries to format this expression into something human-readable.static @NotNull FunctionInvocationgraphByName(Expression name) Creates a function invocation forgraph.byName().static @NotNull FunctionInvocationCreates a function invocation forgraph.names().static @NotNull 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) static @NotNull FunctionInvocationhaversin(@NotNull Expression expression) Creates a function invocation forhaversin({}).static @NotNull 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()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()static @NotNull FunctionInvocationkeys(@NotNull Expression expression) Creates a function invocation forkeys{}.static @NotNull FunctionInvocationCreates a function invocation forkeys{}.static @NotNull FunctionInvocationkeys(@NotNull Relationship relationship) Creates a function invocation forkeys{}.static @NotNull FunctionInvocationCreates a function invocation forlabels{}.static @NotNull FunctionInvocationlabels(@NotNull SymbolicName node) Creates a function invocation forlabels{}.static @NotNull FunctionInvocationlast(Expression expression) Creates a function invocation for thelast()function.static @NotNull FunctionInvocationleft(Expression expression, Expression length) Creates a function invocation for theleft()function.static @NotNull FunctionInvocationCreates a function invocation forlength().static @NotNull FunctionInvocationCreates a function invocation forlinenumber({}).static @NotNull PatternComprehension.OngoingDefinitionWithPatternlistBasedOn(NamedPath namedPath) Creates a list comprehension starting with anamed path.static @NotNull PatternComprehension.OngoingDefinitionWithPatternlistBasedOn(RelationshipPattern relationshipPattern) Creates a list comprehension starting with aRelationshipor achain of relationships.static @NotNull ListExpressionlistOf(Collection<? extends Expression> expressions) Creates alist-expressionfrom several expressions.static @NotNull ListExpressionlistOf(Expression... expressions) Creates alist-expressionfrom several expressions.static @NotNull ListComprehension.OngoingDefinitionWithVariablelistWith(SymbolicName variable) Starts defining alist comprehension.static <T> @NotNull Literal<T>Creates a newLiteral<?>from the givenobject.Starts building aLOAD CSV.Starts building aLOAD CSV.static @NotNull FunctionInvocationCreates a function invocation forlocaldatetime({}).static @NotNull FunctionInvocationlocaldatetime(@NotNull String temporalValue) Creates a function invocation forlocaldatetime({}).static @NotNull FunctionInvocationlocaldatetime(@NotNull TimeZone timeZone) Creates a function invocation forlocaldatetime({}).static @NotNull FunctionInvocationlocaldatetime(@NotNull Expression temporalValue) Creates a function invocation forlocaldatetime({}).static @NotNull FunctionInvocationlocaldatetime(@NotNull MapExpression components) Creates a function invocation forlocaldatetime({}).static @NotNull FunctionInvocationCreates a function invocation forlocaltime({}).static @NotNull FunctionInvocationCreates a function invocation forlocaltime({}).static @NotNull FunctionInvocationCreates a function invocation forlocaltime({}).static @NotNull FunctionInvocationlocaltime(@NotNull Expression temporalValue) Creates a function invocation forlocaltime({}).static @NotNull FunctionInvocationlocaltime(@NotNull MapExpression components) Creates a function invocation forlocaltime({}).static @NotNull FunctionInvocationlog(@NotNull Expression expression) Creates a function invocation forlog({}).static @NotNull FunctionInvocationlog10(@NotNull 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 @NotNull FunctionInvocationltrim(@NotNull Expression expression) Creates a function invocation for theltrim()function.static @NotNull 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 the left hand side via=~.static Conditionmatching(RelationshipPattern relationshipPattern) static @NotNull FunctionInvocationmax(Expression expression) Creates a function invocation for themax()function.static @NotNull 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 @NotNull FunctionInvocationmin(Expression expression) Creates a function invocation for themin()function.static @NotNull 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 @NotNull SymbolicNameCreates a new symbolic name.static <T extends Expression>
ExpressionnameOrExpression(T expression) static @NotNull ConditionCreates a placeholder condition which is not rendered in the final statement but is useful while chaining conditions together.static @NotNull NodeCreate a new Node representation with at least one label, the "primary" label.static @NotNull NodeCreate a new Node representation with at least one label, the "primary" label.static @NotNull Nodenode(String primaryLabel, MapExpression properties, String... additionalLabels) Create a new Node representation with at least one label, the "primary" label.static @NotNull Nodenode(String primaryLabel, MapExpression properties, Collection<String> additionalLabels) Create a new Node representation with at least one label, the "primary" label.static @NotNull Nodenode(LabelExpression labelExpression) static @NotNull FunctionInvocationCreates a function invocation fornodes{}.static @NotNull FunctionInvocationnodes(@NotNull SymbolicName symbolicName) Creates a function invocation fornodes{}.static @NotNull OngoingListBasedPredicateFunctionstatic @NotNull OngoingListBasedPredicateFunctionnone(SymbolicName variable) Starts building a new condition based on a function invocation for thenone()function.static @NotNull ConditionNegates the given condition.static @NotNull Conditionnot(@NotNull RelationshipPattern pattern) Negates the given pattern element: The pattern must not matched 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 @NotNull FunctionInvocationordinalDate(Integer year, Integer ordinalDay) Creates a function invocation fordate({}).Creates a new parameter placeholder.static <T> @NotNull 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 @NotNull FunctionInvocationpercentileCont(Expression expression, Number percentile) Creates a function invocation for thepercentileCont()function.static @NotNull FunctionInvocationpercentileContDistinct(Expression expression, Number percentile) Creates a function invocation for thepercentileCont()function withDISTINCTadded.static @NotNull FunctionInvocationpercentileDisc(Expression expression, Number percentile) Creates a function invocation for thepercentileDisc()function.static @NotNull FunctionInvocationpercentileDiscDistinct(Expression expression, Number percentile) Creates a function invocation for thepercentileDisc()function withDISTINCTadded.static @NotNull FunctionInvocationpi()Creates a function invocation forpi({}).static Expressionplus(Expression e) Creates an unary plus operation.static @NotNull FunctionInvocationpoint(Expression expression) Creates a function invocation for thepoint()function.static @NotNull FunctionInvocationpoint(MapExpression parameterMap) Creates a function invocation for thepoint()function.static @NotNull FunctionInvocationCreates a function invocation for thepoint()function.static Operationpow(Expression op1, Expression op2) static @NotNull FunctionInvocationproperties(MapExpression map) Creates a function invocation forproperties())on maps.static @NotNull FunctionInvocationproperties(Node node) Creates a function invocation forproperties())on nodes.static @NotNull FunctionInvocationproperties(Relationship relationship) Creates a function invocation forproperties())on relationships.static @NotNull PropertyDereferences a property for a symbolic name, most likely pointing to a property container like a node or a relationship.static @NotNull 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 @NotNull 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 @NotNull Propertyproperty(Expression expression, String... names) Dereferences a property on a arbitrary expression.static @NotNull Propertyproperty(Expression expression, Collection<String> names) Dereferences a property on a arbitrary expression.static @NotNull Propertyproperty(Expression expression, Expression lookup) Creates a dynamic lookup of a property on a arbitrary expression.static @NotNull FunctionInvocationquarterDate(Integer year, Integer quarter, Integer dayOfQuarter) Creates a function invocation fordate({}).static @NotNull StringEscapes and quotes theunquotedStringfor safe usage in Neo4j-Browser and Shell.static @NotNull FunctionInvocationradians(@NotNull Expression expression) Creates a function invocation forradians({}).static @NotNull FunctionInvocationrand()Creates a function invocation forrand({}).static FunctionInvocationCreates a function invocation forrandomUUID({}).static @NotNull FunctionInvocationCreates a function invocation for therange()function.static @NotNull FunctionInvocationrange(@NotNull Expression start, @NotNull Expression end) static @NotNull FunctionInvocationrange(@NotNull Expression start, @NotNull Expression end, Expression step) Creates a function invocation for therange()function.static @NotNull FunctionInvocationstatic @NotNull ExpressionCreates an expression from a raw string fragment.reduce(@NotNull SymbolicName variable) Starts building a function invocation forreduce({}).static @NotNull FunctionInvocationrelationships(@NotNull NamedPath path) Creates a function invocation forrelationships{}.static @NotNull FunctionInvocationrelationships(@NotNull 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 @NotNull 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 @NotNull FunctionInvocationreverse(@NotNull Expression original) Creates a function invocation for thereverse()function.static @NotNull FunctionInvocationright(Expression expression, Expression length) Creates a function invocation for theright()function.static @NotNull FunctionInvocationround(Expression value, Expression... expression) Creates a function invocation forround({}).static @NotNull FunctionInvocationrtrim(@NotNull 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 from a givennode.shortestPath(String name) Starts defining a named path defined by theshortestPathbetween a relationship by indicating a name.static @NotNull FunctionInvocationshortestPath(Relationship relationship) Creates a function invocation forshortestPath({}).shortestPath(SymbolicName name) Starts defining a named path defined by theshortestPathbetween a relationship by indicating a name.static @NotNull FunctionInvocationsign(@NotNull Expression expression) Creates a function invocation forsign({}).static @NotNull FunctionInvocationsin(@NotNull Expression expression) Creates a function invocation forsin({}).static @NotNull OngoingListBasedPredicateFunctionstatic @NotNull OngoingListBasedPredicateFunctionsingle(SymbolicName variable) Starts building a new condition based on a function invocation for thesingle()function.static @NotNull FunctionInvocationsize(Expression expression) Creates a function invocation for thesize()function.static @NotNull FunctionInvocationsize(RelationshipPattern pattern) Creates a function invocation for thesize()function.static @NotNull SortItemsort(Expression expression) static @NotNull SortItemsort(Expression expression, SortItem.Direction direction) static @NotNull MapExpressionsortedMapOf(Object... keysAndValues) Creates an alphabetically sorted map of expression from a list of key/value pairs.static @NotNull FunctionInvocationsplit(@NotNull Expression expression, @NotNull String delimiter) Creates a function invocation for thesplit()function.static @NotNull FunctionInvocationsplit(@NotNull Expression expression, @NotNull Expression delimiter) Creates a function invocation for thesplit()function.static @NotNull FunctionInvocationsqrt(@NotNull Expression expression) Creates a function invocation forsqrt({}).static @NotNull FunctionInvocationstartNode(@NotNull Relationship relationship) Creates a function invocation forstartNode{}.static ConditionstartsWith(Expression lhs, Expression rhs) Creates a condition that checks whether thelhsstarts with therhs.static @NotNull FunctionInvocationstDev(Expression expression) Creates a function invocation for thestDev()function.static @NotNull FunctionInvocationstDevDistinct(Expression expression) Creates a function invocation for thestDev()function withDISTINCTadded.static @NotNull FunctionInvocationstDevP(Expression expression) Creates a function invocation for thestDevP()function.static @NotNull FunctionInvocationstDevPDistinct(Expression expression) Creates a function invocation for thestDevP()function withDISTINCTadded.static @NotNull ExpressionsubList(Expression targetExpression, Integer start, Integer end) Creates a closed range with given boundaries.static @NotNull ExpressionsubList(Expression targetExpression, Expression start, Expression end) Creates a closed range with given boundaries.static @NotNull ExpressionsubListFrom(Expression targetExpression, Integer start) Creates an open range starting atstart.static @NotNull ExpressionsubListFrom(Expression targetExpression, Expression start) Creates an open range starting atstart.static @NotNull ExpressionsubListUntil(Expression targetExpression, Integer end) Creates an open range starting atstart.static @NotNull 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 @NotNull FunctionInvocationsubstring(Expression original, Expression start, Expression length) Creates a function invocation for thesubstring()function.static Operationsubtract(Expression op1, Expression op2) static @NotNull FunctionInvocationsum(Expression expression) Creates a function invocation for thesum()function.static @NotNull FunctionInvocationsumDistinct(Expression expression) Creates a function invocation for thesum()function withDISTINCTadded.static @NotNull FunctionInvocationtan(@NotNull Expression expression) Creates a function invocation fortan({}).static @NotNull FunctionInvocationtime()Creates a function invocation fortime({}).static @NotNull FunctionInvocationCreates a function invocation fortime({}).static @NotNull FunctionInvocationCreates a function invocation fortime({}).static @NotNull FunctionInvocationtime(@NotNull Expression temporalValue) Creates a function invocation fortime({}).static @NotNull FunctionInvocationtime(@NotNull MapExpression components) Creates a function invocation fortime({}).static @NotNull FunctionInvocationtoBoolean(@NotNull Expression expression) Creates a function invocation fortoBoolean({}).static @NotNull FunctionInvocationtoFloat(@NotNull Expression expression) Creates a function invocation fortoFloat({}).static @NotNull FunctionInvocationtoInteger(@NotNull Expression expression) Creates a function invocation fortoInteger({}).static @NotNull FunctionInvocationtoLower(@NotNull Expression expression) Creates a function invocation for thetoLower()function.static @NotNull FunctionInvocationtoString(@NotNull Expression expression) Creates a function invocation fortoString({}).static @NotNull FunctionInvocationtoStringOrNull(@NotNull Expression expression) Creates a function invocation fortoStringOrNull({}).static @NotNull FunctionInvocationtoUpper(@NotNull Expression expression) Creates a function invocation for thetoUpper()function.static @NotNull FunctionInvocationtrim(@NotNull Expression expression) Creates a function invocation for thetrim()function.static @NotNull FunctionInvocationtype(@NotNull Relationship relationship) Creates a function invocation fortype{}.static @NotNull FunctionInvocationtype(@NotNull SymbolicName relationship) Creates a function invocation fortype{}.static @NotNull Statement.UnionQueryunion(Collection<Statement> statements) Creates aUNIONstatement from several other statements.static @NotNull Statement.UnionQueryCreates aUNIONstatement from several other statements.static @NotNull StatementunionAll(Collection<Statement> statements) Creates aUNION ALLstatement from several other statements.static @NotNull 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 @NotNull ExposesLoadCSVStarts building aLOAD CSVclause by using a periodic commit.static @NotNull ExposesLoadCSVusingPeriodicCommit(@Nullable Integer rate) Starts building aLOAD CSVclause by using a periodic commit.static @NotNull ListOperatorvalueAt(Expression targetExpression, Integer index) Creates a single valued range atindex.static @NotNull ListOperatorvalueAt(Expression targetExpression, Expression index) Creates a single valued range atindex.static @NotNull 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
@NotNull @Contract(pure=true) public static @NotNull Node node(String primaryLabel, String... additionalLabels) 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
@NotNull @Contract(pure=true) public static @NotNull Node node(String primaryLabel, List<String> additionalLabels) 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
@NotNull @Contract(pure=true) public static @NotNull Node node(String primaryLabel, MapExpression properties, 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
-
node
@NotNull @Contract(pure=true) public static @NotNull 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.
-
node
- Parameters:
labelExpression- required expression- Returns:
- A node matching a label expression
- Since:
- 2023.0.2
-
asterisk
- Returns:
- The
*wildcard literal.
-
anyNode
- Parameters:
symbolicName- The new symbolic name- Returns:
- A node matching any node with the symbolic the given
symbolicName.
-
anyNode
- Parameters:
symbolicName- The new symbolic name- Returns:
- A node matching any node with the symbolic the given
symbolicName.
-
property
@NotNull @Contract(pure=true) public static @NotNull Property property(String containerName, String... names) 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
@NotNull @Contract(pure=true) public static @NotNull Property property(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.- 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
@NotNull @Contract(pure=true) public static @NotNull Property property(Expression expression, String... names) 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.
-
property
@NotNull @Contract(pure=true) public static @NotNull Property property(Expression expression, Collection<String> names) 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
@NotNull @Contract(pure=true) public static @NotNull Property property(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. 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
@NotNull @Contract(pure=true) public static @NotNull Property property(Expression expression, Expression lookup) Creates a dynamic lookup of a property on a 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
@NotNull @Contract(pure=true) public static NamedPath.OngoingDefinitionWithName path(SymbolicName name) 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
-
shortestPath
@NotNull @Contract(pure=true) public static NamedPath.OngoingShortestPathDefinitionWithName shortestPath(String name) Starts defining a named path defined by theshortestPathbetween a relationship by indicating a name.- Parameters:
name- The name of the new shortestPath path- Returns:
- An ongoing definition of a named path
- Since:
- 1.1.1
-
shortestPath
@NotNull @Contract(pure=true) public static NamedPath.OngoingShortestPathDefinitionWithName shortestPath(SymbolicName name) Starts defining a named path defined by theshortestPathbetween a relationship by indicating a name.- Parameters:
name- The name of the new shortestPath path- Returns:
- An ongoing definition of a named path
- Since:
- 1.1.1
-
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
@NotNull @Contract(pure=true) public static <T> @NotNull Parameter<T> parameter(String name, T value) 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
@NotNull @Contract(pure=true) public static StatementBuilder.OngoingReadingWithoutWhere optionalMatch(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
-
optionalMatch
@NotNull @Contract(pure=true) 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
@NotNull @Contract(pure=true) public static StatementBuilder.OngoingReadingWithoutWhere match(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
-
match
@NotNull @Contract(pure=true) 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
@NotNull @Contract(pure=true) 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
@NotNull @Contract(pure=true) 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
@NotNull @Contract(pure=true) public static StatementBuilder.OngoingUpdate create(PatternElement... pattern) Starts building a statement based on aCREATEclause.- Parameters:
pattern- The patterns to create- Returns:
- An ongoing
CREATEthat can be used to specifyWITHandRETURNINGetc.
-
create
@NotNull @Contract(pure=true) public static StatementBuilder.OngoingUpdate create(Collection<? extends PatternElement> pattern) 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
@NotNull @Contract(pure=true) public static StatementBuilder.OrderableOngoingReadingAndWithWithoutWhere with(String... variables) 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
@NotNull @Contract(pure=true) 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
@NotNull @Contract(pure=true) 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
@NotNull @Contract(pure=true) public static StatementBuilder.OngoingMerge merge(PatternElement... pattern) Starts building a statement based on aMERGEclause.- Parameters:
pattern- The patterns to merge- Returns:
- An ongoing
MERGEthat can be used to specifyWITHandRETURNINGetc.
-
merge
@NotNull @Contract(pure=true) public static StatementBuilder.OngoingMerge merge(Collection<? extends PatternElement> pattern) 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
@NotNull @Contract(pure=true) public static StatementBuilder.OngoingUnwind unwind(Expression expression) 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
@NotNull @Contract(pure=true) public static StatementBuilder.OngoingUnwind unwind(Expression... expressions) 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
@NotNull @Contract(pure=true) public static StatementBuilder.OngoingUnwind unwind(Collection<? extends Expression> expressions) 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
@NotNull @Contract(pure=true) public static @NotNull SortItem sort(Expression expression, SortItem.Direction direction) - 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
@NotNull @Contract(pure=true) public static @NotNull MapExpression sortedMapOf(Object... keysAndValues) 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
@NotNull @Contract(pure=true) public static @NotNull MapExpression asExpression(Map<String, Object> map) 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
@NotNull @Contract(pure=true) public static @NotNull ListExpression listOf(Expression... expressions) Creates alist-expressionfrom several expressions.- Parameters:
expressions- expressions to get combined into a list- Returns:
- a new instance of
ListExpression
-
listOf
@NotNull @Contract(pure=true) public static @NotNull ListExpression listOf(Collection<? extends Expression> expressions) 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.
-
literalFalse
- Returns:
- The false literal.
-
literalNull
- Returns:
- The null literal.
-
union
@NotNull @Contract(pure=true) public static @NotNull Statement.UnionQuery union(Statement... statements) 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
@NotNull @Contract(pure=true) public static @NotNull Statement.UnionQuery union(Collection<Statement> statements) 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
@NotNull @Contract(pure=true) public static @NotNull Statement unionAll(Collection<Statement> statements) 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
@NotNull @Contract(pure=true) public static StatementBuilder.OngoingReadingAndReturn returning(Expression... expressions) A RETURN statement without a previous match.- Parameters:
expressions- The elements to return- Returns:
- A buildable statement
- Since:
- 1.0.1
-
returning
@NotNull @Contract(pure=true) 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
@NotNull @Contract(pure=true) public static @NotNull 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
@NotNull @Contract(pure=true) public static @NotNull PatternComprehension.OngoingDefinitionWithPattern listBasedOn(NamedPath namedPath) 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
@NotNull @Contract(pure=true) public static @NotNull ListComprehension.OngoingDefinitionWithVariable listWith(SymbolicName variable) 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
-
caseExpression
@NotNull @Contract(pure=true) public static @NotNull Case caseExpression(@Nullable @Nullable Expression expression) - Parameters:
expression- initial expression for the simple case statement- Returns:
- simple case expression start
-
call
@NotNull @Contract(pure=true) public static @NotNull StatementBuilder.OngoingStandaloneCallWithoutArguments call(String procedureName) 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
@NotNull @Contract(pure=true) public static @NotNull 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
@NotNull @Contract(pure=true) public static @NotNull 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") @NotNull @Contract(pure=true) 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
@NotNull @Contract(pure=true) public static @NotNull Expression subList(Expression targetExpression, Integer start, Integer end) 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
@NotNull @Contract(pure=true) public static @NotNull Expression subList(Expression targetExpression, Expression start, Expression end) 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
@NotNull @Contract(pure=true) public static @NotNull Expression subListFrom(Expression targetExpression, Integer start) 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
@NotNull @Contract(pure=true) public static @NotNull Expression subListFrom(Expression targetExpression, Expression start) 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
@NotNull @Contract(pure=true) public static @NotNull Expression subListUntil(Expression targetExpression, Integer end) 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
@NotNull @Contract(pure=true) public static @NotNull Expression subListUntil(Expression targetExpression, Expression end) 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
@NotNull @Contract(pure=true) public static @NotNull ListOperator valueAt(Expression targetExpression, Integer index) 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
@NotNull @Contract(pure=true) public static @NotNull ListOperator valueAt(Expression targetExpression, Expression index) 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
@NotNull @Contract(pure=true) public static @NotNull Expression raw(String format, Object... mixedArgs) 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
@NotNull @Contract(pure=true) public static StatementBuilder.OngoingReadingAndReturn returningRaw(Expression rawExpression) 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
@NotNull @Contract(pure=true) public static @NotNull ExposesLoadCSV usingPeriodicCommit(@Nullable @Nullable Integer rate) 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- TheURIto 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- TheURIto 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
- 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 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:
- An "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:
- An "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:
- An "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:
- An "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:
- An "greater than" comparison
- Since:
- 2023.9.0
-
not
@Contract(pure=true) @NotNull public static @NotNull Condition not(@NotNull @NotNull Condition condition) Negates the given condition.- Parameters:
condition- The condition to negate. Must not be null.- Returns:
- The negated condition.
- Since:
- 2023.9.0
-
not
@Contract(pure=true) @NotNull public static @NotNull Condition not(@NotNull @NotNull RelationshipPattern pattern) Negates the given pattern element: The pattern must not matched 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
- Returns:
- a condition that is always true.
- Since:
- 2023.9.0
-
isFalse
- Returns:
- a condition that is always false.
- Since:
- 2023.9.0
-
hasLabelsOrType
- 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
-
count
@NotNull public static @NotNull CountExpression count(PatternElement requiredPattern, PatternElement... patternElement) Creates a COUNT sub-query expressions from at least one pattern.- Parameters:
requiredPattern- One pattern is requiredpatternElement- Optional pattern- Returns:
- The immutable
CountExpression - 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
@NotNull public static @NotNull CountExpression count(Statement statement, IdentifiableElement... imports) 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
- 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
@Neo4jVersion(minimum="5.0.0") @Contract(pure=true) @NotNull public static @NotNull FunctionInvocation elementId(@NotNull @NotNull Node node) 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") @Contract(pure=true) @NotNull public static @NotNull FunctionInvocation elementId(@NotNull @NotNull 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation keys(@NotNull @NotNull Node node) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation keys(@NotNull @NotNull Relationship relationship) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation keys(@NotNull @NotNull Expression expression) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation labels(@NotNull @NotNull Node node) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation labels(@NotNull @NotNull SymbolicName node) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation type(@NotNull @NotNull Relationship relationship) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation type(@NotNull @NotNull SymbolicName relationship) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation count(@NotNull @NotNull Node node) - 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation count(Expression expression) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation countDistinct(@NotNull @NotNull Node node) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation countDistinct(Expression expression) - 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation properties(Relationship relationship) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation properties(MapExpression map) Creates a function invocation forproperties())on maps.- Parameters:
map- The map who's properties should be returned.- Returns:
- A function call for
properties()) - Since:
- 2023.9.0
-
coalesce
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation coalesce(Expression... expressions) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation left(Expression expression, Expression length) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation ltrim(@NotNull @NotNull Expression expression) 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
@Contract(pure=true) @NotNull public static @NotNull 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation reverse(@NotNull @NotNull Expression original) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation right(Expression expression, Expression length) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation rtrim(@NotNull @NotNull Expression expression) 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
@Contract(pure=true) @NotNull public static @NotNull 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation toLower(@NotNull @NotNull Expression expression) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation toUpper(@NotNull @NotNull Expression expression) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation trim(@NotNull @NotNull Expression expression) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation split(@NotNull @NotNull Expression expression, @NotNull @NotNull Expression delimiter) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation split(@NotNull @NotNull Expression expression, @NotNull @NotNull String delimiter) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation size(RelationshipPattern pattern) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation exists(Expression expression) Creates a function invocation for theexists()function. See exists.- Parameters:
expression- The expression who's existence is to be evaluated- Returns:
- A function call for
exists()for one expression - Since:
- 2023.9.0
-
distance
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation distance(@NotNull @NotNull Expression point1, @NotNull @NotNull Expression point2) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation point(MapExpression parameterMap) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation point(Expression expression) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation point(Parameter<?> parameter) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation cartesian(double x, double y) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation coordinate(double longitude, double latitude) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation avgDistinct(Expression expression) - Parameters:
expression- The things to average- Returns:
- A function call for
avg() - Since:
- 2023.9.0
-
collect
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation collect(@NotNull @NotNull Named variable) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation collectDistinct(@NotNull @NotNull Named variable) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation collect(Expression expression) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation collectDistinct(Expression expression) - 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation maxDistinct(Expression expression) - 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation minDistinct(Expression expression) - Parameters:
expression- A list from which the minimum element value is returned- Returns:
- A function call for
min() - Since:
- 2023.9.0
-
percentileCont
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation percentileCont(Expression expression, Number percentile) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation percentileContDistinct(Expression expression, Number percentile) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation percentileDisc(Expression expression, Number percentile) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation percentileDiscDistinct(Expression expression, Number percentile) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation stDev(Expression expression) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation stDevDistinct(Expression expression) - Parameters:
expression- A numeric expression- Returns:
- A function call for
stDev() - Since:
- 2023.9.0
-
stDevP
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation stDevP(Expression expression) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation stDevPDistinct(Expression expression) - 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation sumDistinct(Expression expression) - Parameters:
expression- An expression returning a set of numeric values- Returns:
- A function call for
sum() - Since:
- 2023.9.0
-
range
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation range(Integer start, Integer end) - Parameters:
start- the range's startend- the range's end- Returns:
- A function call for
range() - Since:
- 2023.9.0
- See Also:
-
range
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation range(@NotNull @NotNull Expression start, @NotNull @NotNull Expression end) - Parameters:
start- the range's startend- the range's end- Returns:
- A function call for
range() - Since:
- 2023.9.0
- See Also:
-
range
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation range(@NotNull @NotNull Integer start, @NotNull @NotNull Integer end, Integer step) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation range(@NotNull @NotNull Expression start, @NotNull @NotNull Expression end, Expression step) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation nodes(@NotNull @NotNull NamedPath path) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation nodes(@NotNull @NotNull SymbolicName symbolicName) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation relationships(@NotNull @NotNull NamedPath path) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation relationships(@NotNull @NotNull SymbolicName symbolicName) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation startNode(@NotNull @NotNull Relationship relationship) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation endNode(@NotNull @NotNull Relationship relationship) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation calendarDate(Integer year, Integer month, Integer day) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation weekDate(Integer year, Integer week, Integer dayOfWeek) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation quarterDate(Integer year, Integer quarter, Integer dayOfQuarter) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation ordinalDate(Integer year, Integer ordinalDay) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation date(@NotNull @NotNull MapExpression components) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation date(@NotNull @NotNull String temporalValue) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation date(@NotNull @NotNull Expression temporalValue) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation datetime(@NotNull @NotNull TimeZone timeZone) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation datetime(@NotNull @NotNull MapExpression components) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation datetime(@NotNull @NotNull String temporalValue) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation datetime(@NotNull @NotNull Expression temporalValue) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation localdatetime(@NotNull @NotNull TimeZone timeZone) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation localdatetime(@NotNull @NotNull MapExpression components) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation localdatetime(@NotNull @NotNull String temporalValue) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation localdatetime(@NotNull @NotNull Expression temporalValue) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation localtime(@NotNull @NotNull TimeZone timeZone) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation localtime(@NotNull @NotNull MapExpression components) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation localtime(@NotNull @NotNull String temporalValue) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation localtime(@NotNull @NotNull Expression temporalValue) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation time(@NotNull @NotNull TimeZone timeZone) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation time(@NotNull @NotNull MapExpression components) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation time(@NotNull @NotNull String temporalValue) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation time(@NotNull @NotNull Expression temporalValue) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation duration(@NotNull @NotNull MapExpression components) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation duration(@NotNull @NotNull String temporalAmount) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation duration(@NotNull @NotNull Expression temporalAmount) 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
-
shortestPath
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation shortestPath(Relationship relationship) Creates a function invocation forshortestPath({}).- Parameters:
relationship- The relationship to be passed toshortestPath.- Returns:
- A function call for
shortestPath({}). - Since:
- 2023.9.0
-
reduce
@Contract(pure=true) @NotNull public static Reduction.OngoingDefinitionWithVariable reduce(@NotNull @NotNull SymbolicName variable) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation abs(@NotNull @NotNull Expression expression) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation ceil(@NotNull @NotNull Expression expression) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation floor(@NotNull @NotNull Expression expression) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation round(Expression value, Expression... expression) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation sign(@NotNull @NotNull Expression expression) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation exp(@NotNull @NotNull Expression expression) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation log(@NotNull @NotNull Expression expression) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation log10(@NotNull @NotNull Expression expression) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation sqrt(@NotNull @NotNull Expression expression) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation acos(@NotNull @NotNull Expression expression) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation asin(@NotNull @NotNull Expression expression) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation atan(@NotNull @NotNull Expression expression) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation atan2(@NotNull @NotNull Expression y, @NotNull @NotNull Expression x) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation cos(@NotNull @NotNull Expression expression) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation cot(@NotNull @NotNull Expression expression) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation degrees(@NotNull @NotNull Expression expression) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation haversin(@NotNull @NotNull Expression expression) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation radians(@NotNull @NotNull Expression expression) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation sin(@NotNull @NotNull Expression expression) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation tan(@NotNull @NotNull Expression expression) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation toInteger(@NotNull @NotNull Expression expression) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation toString(@NotNull @NotNull Expression expression) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation toStringOrNull(@NotNull @NotNull Expression expression) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation toFloat(@NotNull @NotNull Expression expression) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation toBoolean(@NotNull @NotNull Expression expression) 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
@Contract(pure=true) @NotNull public static @NotNull FunctionInvocation length(@NotNull @NotNull NamedPath path) 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
@Neo4jVersion(minimum="5.0.0") @Contract(pure=true) @NotNull public static @NotNull FunctionInvocation 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") @Contract(pure=true) @NotNull public static @NotNull 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
@Neo4jVersion(minimum="5.0.0") @Contract(pure=true) @NotNull public static @NotNull FunctionInvocation graphByName(Expression name) 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 from a givennode.- Parameters:
target- The target of the new labelslabel- The labels to be added- Returns:
- A set operation
- Since:
- 2023.9.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
@Contract(pure=true) @NotNull public static @NotNull OngoingListBasedPredicateFunction all(String variable) - 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
@Contract(pure=true) @NotNull public static @NotNull OngoingListBasedPredicateFunction all(SymbolicName variable) 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
@Contract(pure=true) @NotNull public static @NotNull OngoingListBasedPredicateFunction any(String variable) - 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
@Contract(pure=true) @NotNull public static @NotNull OngoingListBasedPredicateFunction any(SymbolicName variable) 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
@Contract(pure=true) @NotNull public static @NotNull OngoingListBasedPredicateFunction none(String variable) - 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
@Contract(pure=true) @NotNull public static @NotNull OngoingListBasedPredicateFunction none(SymbolicName variable) 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
@Contract(pure=true) @NotNull public static @NotNull OngoingListBasedPredicateFunction single(String variable) - 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
@Contract(pure=true) @NotNull public static @NotNull OngoingListBasedPredicateFunction single(SymbolicName variable) 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
-