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 aFields
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedocumentid
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thetextSegment
record component.final String
toString()
Returns a string representation of this record class.vector()
Returns the value of thevector
record component.
-
Constructor Details
-
Fields
Creates an instance of aFields
record class.- Parameters:
documentid
- the value for thedocumentid
record componenttextSegment
- the value for thetextSegment
record componentvector
- the value for thevector
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 thedocumentid
record component.- Returns:
- the value of the
documentid
record component
-
textSegment
Returns the value of thetextSegment
record component.- Returns:
- the value of the
textSegment
record component
-
vector
Returns the value of thevector
record component.- Returns:
- the value of the
vector
record component
-