Record Class Record
java.lang.Object
java.lang.Record
dev.langchain4j.store.embedding.vespa.Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionRecord(String id, Double relevance, Record.Fields fields) Creates an instance of aRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.fields()Returns the value of thefieldsrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of therelevancerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Record
Creates an instance of aRecordrecord class.- Parameters:
id- the value for theidrecord componentrelevance- the value for therelevancerecord componentfields- the value for thefieldsrecord 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 withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
relevance
Returns the value of therelevancerecord component.- Returns:
- the value of the
relevancerecord component
-
fields
Returns the value of thefieldsrecord component.- Returns:
- the value of the
fieldsrecord component
-