Interface Node
- All Superinterfaces:
ExposesProperties<Node>, ExposesRelationships<Relationship>, IdentifiableElement, Named, PatternElement, PropertyAccessor, PropertyContainer, Visitable
- All Known Implementing Classes:
NodeBase
@API(status=STABLE,
since="1.0")
public interface Node
extends PatternElement, PropertyContainer, ExposesProperties<Node>, ExposesRelationships<Relationship>
See NodePattern.
- Since:
- 1.0
- Author:
- Michael J. Simons
-
Method Summary
Modifier and TypeMethodDescriptionCreates an alias for this node.Creates a new sort item of this node in ascending order.Creates a new sort item of this node in descending order.default FunctionInvocationReturns a new function invocation returning the element id of this node.Returns the labels associated with thisNode.A condition that checks for the presence of labels on a node.hasLabels(LabelExpression labels) Deprecated, for removal: This API element is subject to removal in a future version.Returns a condition that checks for the presence of a label expression on a node.Deprecated.UseelementId()Creates a new condition whether this node is equal to otherNode.isNotEqualTo(Node otherNode) Creates a new condition whether this node is not equal to otherNode.Creates a new condition based on this node whether it is not null.isNull()Creates a new condition based on this node whether it is null.labels()Returns a new function invocation returning the labels of this node.Creates a copy of this node with a new symbolic name.named(SymbolicName newSymbolicName) Creates a copy of this node with a new symbolic name.Methods inherited from interface ExposesProperties
withProperties, withProperties, withPropertiesMethods inherited from interface ExposesRelationships
relationshipBetween, relationshipFrom, relationshipTo, relationshipWithMethods inherited from interface Named
asExpression, getRequiredSymbolicName, getSymbolicNameMethods inherited from interface PatternElement
whereMethods inherited from interface PropertyAccessor
property, property, property
-
Method Details
-
getLabels
-
named
-
named
Creates a copy of this node with a new symbolic name.- Parameters:
newSymbolicName- the new symbolic name.- Returns:
- the new node.
-
hasLabels
-
hasLabels
Deprecated, for removal: This API element is subject to removal in a future version.Returns a condition that checks for the presence of a label expression on a node.- Parameters:
labels- the labels to check- Returns:
- a condition that checks whether this node has all the labels to query
- Since:
- 2024.3.0
-
hasLabels
-
isEqualTo
-
isNotEqualTo
-
isNull
Condition isNull()Creates a new condition based on this node whether it is null.- Returns:
- a condition.
-
isNotNull
Condition isNotNull()Creates a new condition based on this node whether it is not null.- Returns:
- a condition.
-
descending
SortItem descending()Creates a new sort item of this node in descending order.- Returns:
- a sort item.
-
ascending
-
as
Creates an alias for this node.- Parameters:
alias- the alias to use.- Returns:
- the aliased expression.
-
internalId
Deprecated.UseelementId()Returns a new function invocation returning the internal id of this node.- Returns:
- a new function invocation returning the internal id of this node
-
elementId
Returns a new function invocation returning the element id of this node.- Returns:
- a new function invocation returning the element id of this node
- Since:
- 2022.6.0
-
labels
FunctionInvocation labels()Returns a new function invocation returning the labels of this node.- Returns:
- a new function invocation returning the labels of this node
-
hasLabels(Labels)