Module org.neo4j.cypherdsl.core
Package org.neo4j.cypherdsl.core
Record Class StatementCatalog.PropertyFilter
java.lang.Object
java.lang.Record
org.neo4j.cypherdsl.core.StatementCatalog.PropertyFilter
- Record Components:
clause
- The clause in which the comparison was usedleft
- The left hand side of the comparisonoperator
- The operator usedright
- The right hand side of the comparisonparameterNames
- The parameter names used in this comparison (analoge toStatement.getParameterNames()
parameters
- Parameters with defined values used in this comparison (analoge toStatement.getParameters()
- All Implemented Interfaces:
StatementCatalog.Filter
- Enclosing interface:
StatementCatalog
public static record StatementCatalog.PropertyFilter(StatementCatalog.Clause clause, Expression left, Operator operator, Expression right, Set<String> parameterNames, Map<String,Object> parameters)
extends Record
implements StatementCatalog.Filter
This type encapsulates a comparison in which a property of a node or relationship was used. The property may
appear on the left hand side or right hand side or even on both side of the comparison (think being used in a
function on both sides with different arguments). The
clause
attribute will specify the context in which
the comparison was made.
The expressions used in the comparison are provided as Cypher-DSL AST expressions. They can be freely visited or
rendered into Cypher via the GeneralizedRenderer
like this:
var cypher = Renderer.getRenderer(Configuration.prettyPrinting(), GeneralizedRenderer.class)
.render(comparison.left());
-
Constructor Summary
ConstructorDescriptionPropertyFilter
(StatementCatalog.Clause clause, Expression left, Operator operator, Expression right, Set<String> parameterNames, Map<String, Object> parameters) The constructor enforces the use of unmodifiable sets. -
Method Summary
Modifier and TypeMethodDescriptionclause()
Returns the value of theclause
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.left()
Returns the value of theleft
record component.operator()
Returns the value of theoperator
record component.Returns the value of theparameterNames
record component.Returns the value of theparameters
record component.right()
Returns the value of theright
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
PropertyFilter
public PropertyFilter(StatementCatalog.Clause clause, Expression left, Operator operator, Expression right, Set<String> parameterNames, Map<String, Object> parameters) The constructor enforces the use of unmodifiable sets.- Parameters:
clause
- The clause in which the comparison was usedleft
- The left hand side of the comparisonoperator
- The operator usedright
- The right hand side of the comparisonparameterNames
- The parameter names used in this comparison (analoge toStatement.getParameterNames()
parameters
- Parameters with defined values used in this comparison (analoge toStatement.getParameters()
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
clause
Returns the value of theclause
record component.- Returns:
- the value of the
clause
record component
-
left
Returns the value of theleft
record component.- Returns:
- the value of the
left
record component
-
operator
Returns the value of theoperator
record component.- Returns:
- the value of the
operator
record component
-
right
Returns the value of theright
record component.- Returns:
- the value of the
right
record component
-
parameterNames
Returns the value of theparameterNames
record component.- Returns:
- the value of the
parameterNames
record component
-
parameters
Returns the value of theparameters
record component.- Returns:
- the value of the
parameters
record component
-