Package com.tnsai.intelligence.rag.graph
Record Class FileGraphCorpus.Key
java.lang.Object
java.lang.Record
com.tnsai.intelligence.rag.graph.FileGraphCorpus.Key
- Enclosing class:
FileGraphCorpus
public static record FileGraphCorpus.Key(Class<?> roleClass, List<String> sourceFingerprint)
extends Record
Complete source-configuration and lifecycle identity for one binding.
Two live corpora on the same Role class therefore cannot overwrite or
resolve each other's documents.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Class<?> Returns the value of theroleClassrecord component.Returns the value of thesourceFingerprintrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Key
Creates an instance of aKeyrecord class.- Parameters:
roleClass- the value for theroleClassrecord componentsourceFingerprint- the value for thesourceFingerprintrecord 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). -
roleClass
Returns the value of theroleClassrecord component.- Returns:
- the value of the
roleClassrecord component
-
sourceFingerprint
Returns the value of thesourceFingerprintrecord component.- Returns:
- the value of the
sourceFingerprintrecord component
-