Package com.tnsai.server.rag
Record Class FileIndexer.IndexResult
java.lang.Object
java.lang.Record
com.tnsai.server.rag.FileIndexer.IndexResult
- Enclosing class:
FileIndexer
Summary of a completed index run.
-
Constructor Summary
ConstructorsConstructorDescriptionIndexResult(int fileCount, int chunkCount) Creates an instance of aIndexResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thechunkCountrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefileCountrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IndexResult
public IndexResult(int fileCount, int chunkCount) Creates an instance of aIndexResultrecord class.- Parameters:
fileCount- the value for thefileCountrecord componentchunkCount- the value for thechunkCountrecord 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 '=='. -
fileCount
public int fileCount()Returns the value of thefileCountrecord component.- Returns:
- the value of the
fileCountrecord component
-
chunkCount
public int chunkCount()Returns the value of thechunkCountrecord component.- Returns:
- the value of the
chunkCountrecord component
-