Record Class ScoredNode
java.lang.Object
java.lang.Record
org.impulsegraph.api.traversal.ScoredNode
Node ID paired with a similarity/rerank score and multi-lane quorum count.
-
Constructor Summary
ConstructorsConstructorDescriptionScoredNode(long nodeId, float score) ScoredNode(long nodeId, float score, int quorum) Creates an instance of aScoredNoderecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longnodeId()Returns the value of thenodeIdrecord component.intquorum()Returns the value of thequorumrecord component.floatscore()Returns the value of thescorerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ScoredNode
public ScoredNode(long nodeId, float score) -
ScoredNode
public ScoredNode(long nodeId, float score, int quorum) Creates an instance of aScoredNoderecord class.- Parameters:
nodeId- the value for thenodeIdrecord componentscore- the value for thescorerecord componentquorum- the value for thequorumrecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
nodeId
public long nodeId()Returns the value of thenodeIdrecord component.- Returns:
- the value of the
nodeIdrecord component
-
score
public float score()Returns the value of thescorerecord component.- Returns:
- the value of the
scorerecord component
-
quorum
public int quorum()Returns the value of thequorumrecord component.- Returns:
- the value of the
quorumrecord component
-