Record Class MibEmbeddingIndex.SearchResult
java.lang.Object
java.lang.Record
org.snmp4j.mcp.tool.mib.semantic.MibEmbeddingIndex.SearchResult
- Record Components:
score- cosine similarity in [0, 1]; higher is more relevantoid- dotted-decimal OID stringname- object nametypeStr-SmiTypenamesyntaxStr-SmiSyntaxsyntaxdescriptionSnippet- excerpt from the best-matching chunk, ornull
- Enclosing class:
MibEmbeddingIndex
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionSnippetrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.oid()Returns the value of theoidrecord component.floatscore()Returns the value of thescorerecord component.Returns the value of thesyntaxStrrecord component.final StringtoString()Returns a string representation of this record class.typeStr()Returns the value of thetypeStrrecord component.
-
Constructor Details
-
SearchResult
public SearchResult(float score, String oid, String name, String typeStr, String syntaxStr, String descriptionSnippet) Creates an instance of aSearchResultrecord class.- Parameters:
score- the value for thescorerecord componentoid- the value for theoidrecord componentname- the value for thenamerecord componenttypeStr- the value for thetypeStrrecord componentsyntaxStr- the value for thesyntaxStrrecord componentdescriptionSnippet- the value for thedescriptionSnippetrecord 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. -
score
-
oid
-
name
-
typeStr
-
syntaxStr
-
descriptionSnippet
Returns the value of thedescriptionSnippetrecord component.- Returns:
- the value of the
descriptionSnippetrecord component
-