Package com.redis.vl.langchain4j
Record Class RedisVLDocumentStore.Document
java.lang.Object
java.lang.Record
com.redis.vl.langchain4j.RedisVLDocumentStore.Document
- Record Components:
content- Binary contentmetadata- Document metadata
- Enclosing class:
RedisVLDocumentStore
public static record RedisVLDocumentStore.Document(byte[] content, Map<String,String> metadata)
extends Record
Represents a document with content and metadata.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]content()Returns the value of thecontentrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.metadata()Returns the value of themetadatarecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
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). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
content
public byte[] content()Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
metadata
Returns the value of themetadatarecord component.- Returns:
- the value of the
metadatarecord component
-