Record Class CypherParser.OrderByClause
java.lang.Object
java.lang.Record
org.impulsegraph.compiler.cypher.CypherParser.OrderByClause
- Enclosing class:
CypherParser
-
Constructor Summary
ConstructorsConstructorDescriptionOrderByClause(String targetVar, String attrName, List<Float> queryVector, int metric, int limit) Creates an instance of aOrderByClauserecord class. -
Method Summary
Modifier and TypeMethodDescriptionattrName()Returns the value of theattrNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intlimit()Returns the value of thelimitrecord component.intmetric()Returns the value of themetricrecord component.Returns the value of thequeryVectorrecord component.Returns the value of thetargetVarrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OrderByClause
public OrderByClause(String targetVar, String attrName, List<Float> queryVector, int metric, int limit) Creates an instance of aOrderByClauserecord class.- Parameters:
targetVar- the value for thetargetVarrecord componentattrName- the value for theattrNamerecord componentqueryVector- the value for thequeryVectorrecord componentmetric- the value for themetricrecord componentlimit- the value for thelimitrecord component
-
-
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
-
attrName
Returns the value of theattrNamerecord component.- Returns:
- the value of the
attrNamerecord component
-
queryVector
-
metric
public int metric()Returns the value of themetricrecord component.- Returns:
- the value of the
metricrecord component
-
limit
public int limit()Returns the value of thelimitrecord component.- Returns:
- the value of the
limitrecord component
-