Record Class CypherParser.WherePredicate
java.lang.Object
java.lang.Record
org.impulsegraph.compiler.cypher.CypherParser.WherePredicate
- Enclosing class:
CypherParser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.field()Returns the value of thefieldrecord component.final inthashCode()Returns a hash code value for this object.inValues()Returns the value of theinValuesrecord component.op()Returns the value of theoprecord component.Returns the value of thetargetVarrecord component.inttopK()Returns the value of thetopKrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevalueOrParamrecord component.Returns the value of thevectorArgrecord component.
-
Constructor Details
-
WherePredicate
public WherePredicate(String targetVar, String field, String op, String valueOrParam, List<Long> inValues, List<Float> vectorArg, int topK) Creates an instance of aWherePredicaterecord class.- Parameters:
targetVar- the value for thetargetVarrecord componentfield- the value for thefieldrecord componentop- the value for theoprecord componentvalueOrParam- the value for thevalueOrParamrecord componentinValues- the value for theinValuesrecord componentvectorArg- the value for thevectorArgrecord componenttopK- the value for thetopKrecord component
-
WherePredicate
-
-
Method Details
-
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
targetVar
Returns the value of thetargetVarrecord component.- Returns:
- the value of the
targetVarrecord component
-
field
Returns the value of thefieldrecord component.- Returns:
- the value of the
fieldrecord component
-
op
Returns the value of theoprecord component.- Returns:
- the value of the
oprecord component
-
valueOrParam
Returns the value of thevalueOrParamrecord component.- Returns:
- the value of the
valueOrParamrecord component
-
inValues
-
vectorArg
-
topK
public int topK()Returns the value of thetopKrecord component.- Returns:
- the value of the
topKrecord component
-