Record Class Record.Fields
java.lang.Object
java.lang.Record
dev.langchain4j.store.embedding.vespa.Record.Fields
- Enclosing class:
Record
public static record Record.Fields(String documentid, String textSegment, Record.Fields.Vector vector)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionFields(String documentid, String textSegment, Record.Fields.Vector vector) Creates an instance of aFieldsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedocumentidrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thetextSegmentrecord component.final StringtoString()Returns a string representation of this record class.vector()Returns the value of thevectorrecord component.
-
Constructor Details
-
Fields
Creates an instance of aFieldsrecord class.- Parameters:
documentid- the value for thedocumentidrecord componenttextSegment- the value for thetextSegmentrecord componentvector- the value for thevectorrecord 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). -
documentid
Returns the value of thedocumentidrecord component.- Returns:
- the value of the
documentidrecord component
-
textSegment
Returns the value of thetextSegmentrecord component.- Returns:
- the value of the
textSegmentrecord component
-
vector
Returns the value of thevectorrecord component.- Returns:
- the value of the
vectorrecord component
-