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
ConstructorsConstructorDescriptionPropertyFilter(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 theclauserecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.left()Returns the value of theleftrecord component.operator()Returns the value of theoperatorrecord component.Returns the value of theparameterNamesrecord component.Returns the value of theparametersrecord component.right()Returns the value of therightrecord component.final StringtoString()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 theclauserecord component.- Returns:
- the value of the
clauserecord component
-
left
Returns the value of theleftrecord component.- Returns:
- the value of the
leftrecord component
-
operator
Returns the value of theoperatorrecord component.- Returns:
- the value of the
operatorrecord component
-
right
Returns the value of therightrecord component.- Returns:
- the value of the
rightrecord component
-
parameterNames
Returns the value of theparameterNamesrecord component.- Returns:
- the value of the
parameterNamesrecord component
-
parameters
Returns the value of theparametersrecord component.- Returns:
- the value of the
parametersrecord component
-