java.lang.Object
org.neo4j.cypherdsl.core.FunctionInvocation
- All Implemented Interfaces:
Visitable,Expression,PropertyAccessor
@API(status=STABLE,
since="1.0")
public final class FunctionInvocation
extends Object
implements Expression
- Since:
- 1.0
- Author:
- Gerrit Meier, Michael J. Simons
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceDefines metadata for a function. -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic FunctionInvocationcreate(FunctionInvocation.FunctionDefinition definition) Creates aFunctionInvocationbased on a simple definition without any arguments.static FunctionInvocationcreate(FunctionInvocation.FunctionDefinition definition, Expression... expressions) Creates aFunctionInvocationbased on a simple definition with arguments.static FunctionInvocationcreate(FunctionInvocation.FunctionDefinition definition, PatternElement pattern) Creates a new function invocation for a pattern element.static FunctionInvocationcreateDistinct(FunctionInvocation.FunctionDefinition definition, Expression... expressions) Creates aFunctionInvocationbased on a simple definition with arguments and adds thedistinctoperator to it.toString()Mostvisitableswill render themselves into a Cypher fragment preceded with the actual classname.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.neo4j.cypherdsl.core.Expression
add, as, as, ascending, asCondition, concat, contains, descending, divide, endsWith, eq, gt, gte, hasSize, in, includesAll, includesAny, isEmpty, isEqualTo, isFalse, isNotEqualTo, isNotNull, isNull, isTrue, lt, lte, matches, matches, multiply, ne, pow, property, property, remainder, size, sorted, startsWith, subtractMethods inherited from interface org.neo4j.cypherdsl.core.PropertyAccessor
property
-
Method Details
-
create
Creates aFunctionInvocationbased on a simple definition without any arguments.- Parameters:
definition- The definition of a function- Returns:
- The invocation (a valid expression)
- Since:
- 2021.2.3
-
create
public static FunctionInvocation create(FunctionInvocation.FunctionDefinition definition, Expression... expressions) Creates aFunctionInvocationbased on a simple definition with arguments.- Parameters:
definition- The definition of a functionexpressions- The arguments to the function- Returns:
- The invocation (a valid expression)
- Since:
- 2021.2.3
-
createDistinct
public static FunctionInvocation createDistinct(FunctionInvocation.FunctionDefinition definition, Expression... expressions) Creates aFunctionInvocationbased on a simple definition with arguments and adds thedistinctoperator to it. This is only supported withFunctionInvocation.FunctionDefinition.isAggregate()returning true.- Parameters:
definition- The definition of a functionexpressions- The arguments to the function- Returns:
- The invocation (a valid expression)
- Since:
- 2021.2.3
-
create
public static FunctionInvocation create(FunctionInvocation.FunctionDefinition definition, PatternElement pattern) Creates a new function invocation for a pattern element.- Parameters:
definition- The definition of the functionpattern- The argument to the function- Returns:
- A function invocation
- Since:
- 2021.2.3
-
getFunctionName
- Returns:
- The name of this function.
-
accept
Description copied from interface:Visitable -
toString
Description copied from interface:VisitableMostvisitableswill render themselves into a Cypher fragment preceded with the actual classname. The representation however is not cached - in contrast to the ones for full statements. UsingtoStringis recommended for debugging purposes mainly, and not for production use.The concrete classname has been prepended to help debugging and actually to discourage using fragments to build queries without explicitly rendering them, either as statement or going through the renderer on purpose.
-