Record Class SelectiveReembedIndex.ReindexStats
java.lang.Object
java.lang.Record
com.tnsai.intelligence.rag.vector.SelectiveReembedIndex.ReindexStats
- Record Components:
considered- chunk texts suppliedreused- hashes that already had a vectorembedded- new hashes that called the embedderremoved- embeddings dropped when their last source left
- Enclosing class:
SelectiveReembedIndex
public static record SelectiveReembedIndex.ReindexStats(int considered, int reused, int embedded, int removed)
extends Record
Counts from one
SelectiveReembedIndex.syncSource(String, List) call.-
Constructor Summary
ConstructorsConstructorDescriptionReindexStats(int considered, int reused, int embedded, int removed) Creates an instance of aReindexStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theconsideredrecord component.intembedded()Returns the value of theembeddedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intremoved()Returns the value of theremovedrecord component.intreused()Returns the value of thereusedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ReindexStats
public ReindexStats(int considered, int reused, int embedded, int removed) Creates an instance of aReindexStatsrecord class.- Parameters:
considered- the value for theconsideredrecord componentreused- the value for thereusedrecord componentembedded- the value for theembeddedrecord componentremoved- the value for theremovedrecord 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 with '=='. -
considered
public int considered()Returns the value of theconsideredrecord component.- Returns:
- the value of the
consideredrecord component
-
reused
public int reused()Returns the value of thereusedrecord component.- Returns:
- the value of the
reusedrecord component
-
embedded
public int embedded()Returns the value of theembeddedrecord component.- Returns:
- the value of the
embeddedrecord component
-
removed
public int removed()Returns the value of theremovedrecord component.- Returns:
- the value of the
removedrecord component
-