Package org.neo4j.cypherdsl.core
Class Functions
- java.lang.Object
-
- org.neo4j.cypherdsl.core.Functions
-
@API(status=EXPERIMENTAL, since="1.0") public final class Functions extends java.lang.ObjectFactory methods for creating instances offunctions.- Since:
- 1.0
- Author:
- Michael J. Simons, Gerrit Meier, Romain Rossi
-
-
Constructor Summary
Constructors Constructor Description Functions()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FunctionInvocationabs(Expression expression)Creates a function invocation forabs({}).static FunctionInvocationacos(Expression expression)Creates a function invocation foracos({}).static FunctionInvocationasin(Expression expression)Creates a function invocation forasin({}).static FunctionInvocationatan(Expression expression)Creates a function invocation foratan({}).static FunctionInvocationatan2(Expression y, Expression x)Creates a function invocation foratan2({}).static FunctionInvocationavg(Expression expression)Creates a function invocation for theavg()function.static FunctionInvocationavgDistinct(Expression expression)Creates a function invocation for theavg()function withDISTINCTadded.static FunctionInvocationcalendarDate(java.lang.Integer year, java.lang.Integer month, java.lang.Integer day)Creates a function invocation fordate({}).static FunctionInvocationceil(Expression expression)Creates a function invocation forceil({}).static FunctionInvocationcoalesce(Expression... expressions)Creates a function invocation for thecoalesce()function.static FunctionInvocationcollect(Expression expression)Creates a function invocation for thecollect()function.static FunctionInvocationcollect(Named variable)Creates a function invocation for thecollect()function.static FunctionInvocationcollectDistinct(Expression expression)Creates a function invocation for thecollect()function withDISTINCTadded.static FunctionInvocationcollectDistinct(Named variable)Creates a function invocation for thecollect()function withDISTINCTadded.static FunctionInvocationcos(Expression expression)Creates a function invocation forcos({}).static FunctionInvocationcot(Expression expression)Creates a function invocation forcot({}).static FunctionInvocationcount(Expression expression)Creates a function invocation for thecount()function.static FunctionInvocationcount(Node node)static FunctionInvocationcountDistinct(Expression expression)Creates a function invocation for acount()function withDISTINCTadded.static FunctionInvocationcountDistinct(Node node)Creates a function invocation for acount()function withDISTINCTadded.static FunctionInvocationdate()Creates a function invocation fordate().static FunctionInvocationdate(java.lang.String temporalValue)Creates a function invocation fordate({}).static FunctionInvocationdate(Expression temporalValue)Creates a function invocation fordate({}).static FunctionInvocationdate(MapExpression components)Creates a function invocation fordate({}).static FunctionInvocationdatetime()Creates a function invocation fordatetime({}).static FunctionInvocationdatetime(java.lang.String temporalValue)Creates a function invocation fordatetime({}).static FunctionInvocationdatetime(java.util.TimeZone timeZone)Creates a function invocation fordatetime({}).static FunctionInvocationdatetime(Expression temporalValue)Creates a function invocation fordatetime({}).static FunctionInvocationdatetime(MapExpression components)Creates a function invocation fordatetime({}).static FunctionInvocationdegrees(Expression expression)Creates a function invocation fordegrees({}).static FunctionInvocationdistance(Expression point1, Expression point2)Creates a function invocation for thedistance()function.static FunctionInvocationduration(java.lang.String temporalAmount)Creates a function invocation forduration({}).static FunctionInvocationduration(Expression temporalAmount)Creates a function invocation forduration({}).static FunctionInvocationduration(MapExpression components)Creates a function invocation forduration({}).static FunctionInvocatione()Creates a function invocation fore({}).static FunctionInvocationendNode(Relationship relationship)Creates a function invocation forendNode{}.static FunctionInvocationexists(Expression expression)Creates a function invocation for theexists()function.static FunctionInvocationexp(Expression expression)Creates a function invocation forexp({}).static FunctionInvocationfloor(Expression expression)Creates a function invocation forfloor({}).static FunctionInvocationhaversin(Expression expression)Creates a function invocation forhaversin({}).static FunctionInvocationhead(Expression expression)Creates a function invocation for thehead()function.static FunctionInvocationid(Node node)Creates a function invocation forid{}.static FunctionInvocationid(Relationship relationship)Creates a function invocation forid{}.static FunctionInvocationkeys(Expression expression)Creates a function invocation forkeys{}.static FunctionInvocationkeys(Node node)Creates a function invocation forkeys{}.static FunctionInvocationkeys(Relationship relationship)Creates a function invocation forkeys{}.static FunctionInvocationlabels(Node node)Creates a function invocation forlabels{}.static FunctionInvocationlast(Expression expression)Creates a function invocation for thelast()function.static FunctionInvocationlocaldatetime()Creates a function invocation forlocaldatetime({}).static FunctionInvocationlocaldatetime(java.lang.String temporalValue)Creates a function invocation forlocaldatetime({}).static FunctionInvocationlocaldatetime(java.util.TimeZone timeZone)Creates a function invocation forlocaldatetime({}).static FunctionInvocationlocaldatetime(Expression temporalValue)Creates a function invocation forlocaldatetime({}).static FunctionInvocationlocaldatetime(MapExpression components)Creates a function invocation forlocaldatetime({}).static FunctionInvocationlocaltime()Creates a function invocation forlocaltime({}).static FunctionInvocationlocaltime(java.lang.String temporalValue)Creates a function invocation forlocaltime({}).static FunctionInvocationlocaltime(java.util.TimeZone timeZone)Creates a function invocation forlocaltime({}).static FunctionInvocationlocaltime(Expression temporalValue)Creates a function invocation forlocaltime({}).static FunctionInvocationlocaltime(MapExpression components)Creates a function invocation forlocaltime({}).static FunctionInvocationlog(Expression expression)Creates a function invocation forlog({}).static FunctionInvocationlog10(Expression expression)Creates a function invocation forlog10({}).static FunctionInvocationmax(Expression expression)Creates a function invocation for themax()function.static FunctionInvocationmaxDistinct(Expression expression)Creates a function invocation for themax()function withDISTINCTadded.static FunctionInvocationmin(Expression expression)Creates a function invocation for themin()function.static FunctionInvocationminDistinct(Expression expression)Creates a function invocation for themin()function withDISTINCTadded.static FunctionInvocationnodes(NamedPath path)Creates a function invocation fornodes{}.static FunctionInvocationnodes(SymbolicName symbolicName)Creates a function invocation fornodes{}.static FunctionInvocationordinalDate(java.lang.Integer year, java.lang.Integer ordinalDay)Creates a function invocation fordate({}).static FunctionInvocationpercentileCont(Expression expression, java.lang.Number percentile)Creates a function invocation for thepercentileCont()function.static FunctionInvocationpercentileContDistinct(Expression expression, java.lang.Number percentile)Creates a function invocation for thepercentileCont()function withDISTINCTadded.static FunctionInvocationpercentileDisc(Expression expression, java.lang.Number percentile)Creates a function invocation for thepercentileDisc()function.static FunctionInvocationpercentileDiscDistinct(Expression expression, java.lang.Number percentile)Creates a function invocation for thepercentileDisc()function withDISTINCTadded.static FunctionInvocationpi()Creates a function invocation forpi({}).static FunctionInvocationpoint(Expression expression)Creates a function invocation for thepoint()function.static FunctionInvocationpoint(MapExpression parameterMap)Creates a function invocation for thepoint()function.static FunctionInvocationpoint(Parameter parameter)Creates a function invocation for thepoint()function.static FunctionInvocationproperties(MapExpression map)Creates a function invocation forproperties())on maps.static FunctionInvocationproperties(Node node)Creates a function invocation forproperties())on nodes.static FunctionInvocationproperties(Relationship relationship)Creates a function invocation forproperties())on relationships.static FunctionInvocationquarterDate(java.lang.Integer year, java.lang.Integer quarter, java.lang.Integer dayOfQuarter)Creates a function invocation fordate({}).static FunctionInvocationradians(Expression expression)Creates a function invocation forradians({}).static FunctionInvocationrand()Creates a function invocation forrand({}).static FunctionInvocationrange(java.lang.Integer start, java.lang.Integer end)static FunctionInvocationrange(java.lang.Integer start, java.lang.Integer end, java.lang.Integer step)Creates a function invocation for therange()function.static FunctionInvocationrange(Expression start, Expression end)static FunctionInvocationrange(Expression start, Expression end, Expression step)Creates a function invocation for therange()function.static Reduction.OngoingDefinitionWithVariablereduce(SymbolicName variable)Starts building a function invocation forreduce({}).static FunctionInvocationrelationships(NamedPath path)Creates a function invocation forrelationships{}.static FunctionInvocationrelationships(SymbolicName symbolicName)Creates a function invocation forrelationships{}.static FunctionInvocationround(Expression value, Expression... expression)Creates a function invocation forround({}).static FunctionInvocationshortestPath(Relationship relationship)Creates a function invocation forshortestPath({}).static FunctionInvocationsign(Expression expression)Creates a function invocation forsign({}).static FunctionInvocationsin(Expression expression)Creates a function invocation forsin({}).static FunctionInvocationsize(Expression expression)Creates a function invocation for thesize()function.static FunctionInvocationsize(RelationshipPattern pattern)Creates a function invocation for thesize()function.static FunctionInvocationsqrt(Expression expression)Creates a function invocation forsqrt({}).static FunctionInvocationstartNode(Relationship relationship)Creates a function invocation forstartNode{}.static FunctionInvocationstDev(Expression expression)Creates a function invocation for thestDev()function.static FunctionInvocationstDevDistinct(Expression expression)Creates a function invocation for thestDev()function withDISTINCTadded.static FunctionInvocationstDevP(Expression expression)Creates a function invocation for thestDevP()function.static FunctionInvocationstDevPDistinct(Expression expression)Creates a function invocation for thestDevP()function withDISTINCTadded.static FunctionInvocationsum(Expression expression)Creates a function invocation for thesum()function.static FunctionInvocationsumDistinct(Expression expression)Creates a function invocation for thesum()function withDISTINCTadded.static FunctionInvocationtan(Expression expression)Creates a function invocation fortan({}).static FunctionInvocationtime()Creates a function invocation fortime({}).static FunctionInvocationtime(java.lang.String temporalValue)Creates a function invocation fortime({}).static FunctionInvocationtime(java.util.TimeZone timeZone)Creates a function invocation fortime({}).static FunctionInvocationtime(Expression temporalValue)Creates a function invocation fortime({}).static FunctionInvocationtime(MapExpression components)Creates a function invocation fortime({}).static FunctionInvocationtoLower(Expression expression)Creates a function invocation for thetoLower()function.static FunctionInvocationtype(Relationship relationship)Creates a function invocation fortype{}.static FunctionInvocationweekDate(java.lang.Integer year, java.lang.Integer week, java.lang.Integer dayOfWeek)Creates a function invocation fordate({}).
-
-
-
Method Detail
-
id
public static FunctionInvocation id(Node node)
Creates a function invocation forid{}. See id.- Parameters:
node- The node for which the internal id should be retrieved- Returns:
- A function call for
id()on a node.
-
id
public static FunctionInvocation id(Relationship relationship)
Creates a function invocation forid{}. See id.- Parameters:
relationship- The relationship for which the internal id should be retrieved- Returns:
- A function call for
id()on a relationship.
-
keys
public static FunctionInvocation keys(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:
- 2021.0.2
-
keys
public static FunctionInvocation keys(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:
- 2021.0.2
-
keys
public static FunctionInvocation keys(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:
- 2021.0.2
-
labels
public static FunctionInvocation labels(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.
-
type
public static FunctionInvocation type(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.
-
count
public static FunctionInvocation count(Node node)
- Parameters:
node- The named node to be counted- Returns:
- A function call for
count()for one named node - See Also:
count(Expression)
-
count
public static 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 likeCypher.asterisk()etc.
-
countDistinct
public static FunctionInvocation countDistinct(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 - See Also:
countDistinct(Expression)
-
countDistinct
public static FunctionInvocation countDistinct(Expression expression)
- Parameters:
expression- An expression describing the things to count.- Returns:
- A function call for
count()for an expression likeCypher.asterisk()etc.
-
properties
public static FunctionInvocation properties(Node node)
Creates a function invocation forproperties())on nodes.- Parameters:
node- The node who's properties should be returned.- Returns:
- A function call for
properties())
-
properties
public static 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())
-
properties
public static 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())
-
coalesce
public static 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.
-
toLower
public static FunctionInvocation toLower(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
-
size
public static FunctionInvocation size(Expression expression)
- Parameters:
expression- The expression who's size is to be returned- Returns:
- A function call for
size()for one expression
-
size
public static 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
-
exists
public static 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
-
distance
public static FunctionInvocation distance(Expression point1, 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()
-
point
public static 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()
-
point
public static 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:
- 2021.0.0
-
point
public static 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()
-
avg
public static FunctionInvocation avg(Expression expression)
Creates a function invocation for theavg()function. See avg.- Parameters:
expression- The things to average- Returns:
- A function call for
avg()
-
avgDistinct
public static FunctionInvocation avgDistinct(Expression expression)
- Parameters:
expression- The things to average- Returns:
- A function call for
avg()
-
collect
public static FunctionInvocation collect(Named variable)
Creates a function invocation for thecollect()function.- Parameters:
variable- The named thing to collect- Returns:
- A function call for
collect() - See Also:
collect(Expression)
-
collectDistinct
public static FunctionInvocation collectDistinct(Named variable)
Creates a function invocation for thecollect()function withDISTINCTadded.- Parameters:
variable- The named thing to collect- Returns:
- A function call for
collect() - See Also:
collect(Expression)
-
collect
public static 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()
-
collectDistinct
public static FunctionInvocation collectDistinct(Expression expression)
- Parameters:
expression- The things to collect- Returns:
- A function call for
collect()
-
max
public static FunctionInvocation max(Expression expression)
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()
-
maxDistinct
public static FunctionInvocation maxDistinct(Expression expression)
- Parameters:
expression- A list from which the maximum element value is returned- Returns:
- A function call for
max()
-
min
public static FunctionInvocation min(Expression expression)
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()
-
minDistinct
public static FunctionInvocation minDistinct(Expression expression)
- Parameters:
expression- A list from which the minimum element value is returned- Returns:
- A function call for
min()
-
percentileCont
public static FunctionInvocation percentileCont(Expression expression, java.lang.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()
-
percentileContDistinct
public static FunctionInvocation percentileContDistinct(Expression expression, java.lang.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()
-
percentileDisc
public static FunctionInvocation percentileDisc(Expression expression, java.lang.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()
-
percentileDiscDistinct
public static FunctionInvocation percentileDiscDistinct(Expression expression, java.lang.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()
-
stDev
public static FunctionInvocation stDev(Expression expression)
Creates a function invocation for thestDev()function. See stDev.- Parameters:
expression- A numeric expression- Returns:
- A function call for
stDev()
-
stDevDistinct
public static FunctionInvocation stDevDistinct(Expression expression)
- Parameters:
expression- A numeric expression- Returns:
- A function call for
stDev()
-
stDevP
public static FunctionInvocation stDevP(Expression expression)
Creates a function invocation for thestDevP()function. See stDevP.- Parameters:
expression- A numeric expression- Returns:
- A function call for
stDevP()
-
stDevPDistinct
public static FunctionInvocation stDevPDistinct(Expression expression)
- Parameters:
expression- A numeric expression- Returns:
- A function call for
stDevP()
-
sum
public static FunctionInvocation sum(Expression expression)
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()
-
sumDistinct
public static FunctionInvocation sumDistinct(Expression expression)
- Parameters:
expression- An expression returning a set of numeric values- Returns:
- A function call for
sum()
-
range
public static FunctionInvocation range(java.lang.Integer start, java.lang.Integer end)
- Parameters:
start- the range's startend- the range's end- Returns:
- A function call for
range() - See Also:
range(Expression, Expression)
-
range
public static FunctionInvocation range(Expression start, Expression end)
- Parameters:
start- the range's startend- the range's end- Returns:
- A function call for
range() - See Also:
range(Expression, Expression, Expression)
-
range
public static FunctionInvocation range(java.lang.Integer start, java.lang.Integer end, java.lang.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() - See Also:
range(Expression, Expression, Expression)
-
range
public static FunctionInvocation range(Expression start, 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()
-
head
public static FunctionInvocation head(Expression expression)
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()
-
last
public static FunctionInvocation last(Expression expression)
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()
-
nodes
public static FunctionInvocation nodes(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:
- 1.1
-
nodes
public static FunctionInvocation nodes(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:
- 2020.1.5
-
relationships
public static FunctionInvocation relationships(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:
- 2020.0.2
-
relationships
public static FunctionInvocation relationships(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:
- 2020.1.5
-
startNode
public static FunctionInvocation startNode(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:
- 2020.0.2
-
endNode
public static FunctionInvocation endNode(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:
- 2020.0.2
-
date
public static FunctionInvocation date()
Creates a function invocation fordate(). See date. This is the most simple form.- Returns:
- A function call for
date(). - Since:
- 2020.1.0
-
calendarDate
public static FunctionInvocation calendarDate(java.lang.Integer year, java.lang.Integer month, java.lang.Integer day)
Creates a function invocation fordate({}). See date.- Parameters:
year- The yearmonth- The monthday- The day- Returns:
- A function call for
date({}). - Since:
- 2020.1.0
-
weekDate
public static FunctionInvocation weekDate(java.lang.Integer year, java.lang.Integer week, java.lang.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:
- 2020.1.0
-
quarterDate
public static FunctionInvocation quarterDate(java.lang.Integer year, java.lang.Integer quarter, java.lang.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:
- 2020.1.0
-
ordinalDate
public static FunctionInvocation ordinalDate(java.lang.Integer year, java.lang.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:
- 2020.1.0
-
date
public static FunctionInvocation date(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:
- 2020.1.0
-
date
public static FunctionInvocation date(java.lang.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:
- 2020.1.0
-
date
public static FunctionInvocation date(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:
- 2020.1.0
-
datetime
public static FunctionInvocation datetime()
Creates a function invocation fordatetime({}). See datetime.- Returns:
- A function call for
datetime({}). - Since:
- 2020.1.0
-
datetime
public static FunctionInvocation datetime(java.util.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:
- 2020.1.0
-
datetime
public static FunctionInvocation datetime(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:
- 2020.1.0
-
datetime
public static FunctionInvocation datetime(java.lang.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:
- 2020.1.0
-
datetime
public static FunctionInvocation datetime(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:
- 2020.1.0
-
localdatetime
public static FunctionInvocation localdatetime()
Creates a function invocation forlocaldatetime({}). See localdatetime.- Returns:
- A function call for
localdatetime({}). - Since:
- 2020.1.0
-
localdatetime
public static FunctionInvocation localdatetime(java.util.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:
- 2020.1.0
-
localdatetime
public static FunctionInvocation localdatetime(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:
- 2020.1.0
-
localdatetime
public static FunctionInvocation localdatetime(java.lang.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:
- 2020.1.0
-
localdatetime
public static FunctionInvocation localdatetime(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:
- 2020.1.0
-
localtime
public static FunctionInvocation localtime()
Creates a function invocation forlocaltime({}). See localtime.- Returns:
- A function call for
localtime({}). - Since:
- 2020.1.0
-
localtime
public static FunctionInvocation localtime(java.util.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:
- 2020.1.0
-
localtime
public static FunctionInvocation localtime(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:
- 2020.1.0
-
localtime
public static FunctionInvocation localtime(java.lang.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:
- 2020.1.0
-
localtime
public static FunctionInvocation localtime(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:
- 2020.1.0
-
time
public static FunctionInvocation time()
Creates a function invocation fortime({}). See time.- Returns:
- A function call for
time({}). - Since:
- 2020.1.0
-
time
public static FunctionInvocation time(java.util.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:
- 2020.1.0
-
time
public static FunctionInvocation time(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:
- 2020.1.0
-
time
public static FunctionInvocation time(java.lang.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:
- 2020.1.0
-
time
public static FunctionInvocation time(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:
- 2020.1.0
-
duration
public static FunctionInvocation duration(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:
- 2020.1.0
-
duration
public static FunctionInvocation duration(java.lang.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:
- 2020.1.0
-
duration
public static FunctionInvocation duration(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:
- 2020.1.0
-
shortestPath
public static FunctionInvocation shortestPath(Relationship relationship)
Creates a function invocation forshortestPath({}).- Parameters:
relationship- The relationship to be passed toshortestPath.- Returns:
- A function call for
shortestPath({}). - Since:
- 2020.0.0
-
reduce
public static Reduction.OngoingDefinitionWithVariable reduce(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:
- 2020.1.5
-
abs
public static FunctionInvocation abs(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:
- 2021.0.0
-
ceil
public static FunctionInvocation ceil(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:
- 2021.0.0
-
floor
public static FunctionInvocation floor(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:
- 2021.0.0
-
rand
public static FunctionInvocation rand()
Creates a function invocation forrand({}). See rand.- Returns:
- A function call for
rand({}). - Since:
- 2021.0.0
-
round
public static 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:
- 2021.0.0
-
sign
public static FunctionInvocation sign(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:
- 2021.0.0
-
e
public static FunctionInvocation e()
Creates a function invocation fore({}). See e.- Returns:
- A function call for
e({}). - Since:
- 2021.0.0
-
exp
public static FunctionInvocation exp(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:
- 2021.0.0
-
log
public static FunctionInvocation log(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:
- 2021.0.0
-
log10
public static FunctionInvocation log10(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:
- 2021.0.0
-
sqrt
public static FunctionInvocation sqrt(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:
- 2021.0.0
-
acos
public static FunctionInvocation acos(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:
- 2021.0.0
-
asin
public static FunctionInvocation asin(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:
- 2021.0.0
-
atan
public static FunctionInvocation atan(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:
- 2021.0.0
-
atan2
public static FunctionInvocation atan2(Expression y, 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:
- 2021.0.0
-
cos
public static FunctionInvocation cos(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:
- 2021.0.0
-
cot
public static FunctionInvocation cot(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:
- 2021.0.0
-
degrees
public static FunctionInvocation degrees(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:
- 2021.0.0
-
haversin
public static FunctionInvocation haversin(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:
- 2021.0.0
-
pi
public static FunctionInvocation pi()
Creates a function invocation forpi({}). See pi.- Returns:
- A function call for
pi({}). - Since:
- 2021.0.0
-
radians
public static FunctionInvocation radians(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:
- 2021.0.0
-
sin
public static FunctionInvocation sin(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:
- 2021.0.0
-
tan
public static FunctionInvocation tan(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:
- 2021.0.0
-
-