Package com.tnsai.server.rag
Record Class FileIndexer.IndexProgress
java.lang.Object
java.lang.Record
com.tnsai.server.rag.FileIndexer.IndexProgress
- Enclosing class:
FileIndexer
public static record FileIndexer.IndexProgress(int totalFiles, int indexedFiles, String currentFile, FileIndexer.ProgressStage stage, int skippedFiles, int failedFiles, int committedChunks)
extends Record
Progress snapshot during discovery, normalization, and index mutation.
-
Constructor Summary
ConstructorsConstructorDescriptionIndexProgress(int totalFiles, int indexedFiles, String currentFile) Retains the original public constructor for source and binary compatibility.IndexProgress(int totalFiles, int indexedFiles, String currentFile, FileIndexer.ProgressStage stage, int skippedFiles, int failedFiles, int committedChunks) Creates an instance of aIndexProgressrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecommittedChunksrecord component.Returns the value of thecurrentFilerecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefailedFilesrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theindexedFilesrecord component.intReturns the value of theskippedFilesrecord component.stage()Returns the value of thestagerecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalFilesrecord component.
-
Constructor Details
-
IndexProgress
Retains the original public constructor for source and binary compatibility. -
IndexProgress
public IndexProgress(int totalFiles, int indexedFiles, String currentFile, FileIndexer.ProgressStage stage, int skippedFiles, int failedFiles, int committedChunks) Creates an instance of aIndexProgressrecord class.- Parameters:
totalFiles- the value for thetotalFilesrecord componentindexedFiles- the value for theindexedFilesrecord componentcurrentFile- the value for thecurrentFilerecord componentstage- the value for thestagerecord componentskippedFiles- the value for theskippedFilesrecord componentfailedFiles- the value for thefailedFilesrecord componentcommittedChunks- the value for thecommittedChunksrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
totalFiles
public int totalFiles()Returns the value of thetotalFilesrecord component.- Returns:
- the value of the
totalFilesrecord component
-
indexedFiles
public int indexedFiles()Returns the value of theindexedFilesrecord component.- Returns:
- the value of the
indexedFilesrecord component
-
currentFile
Returns the value of thecurrentFilerecord component.- Returns:
- the value of the
currentFilerecord component
-
stage
Returns the value of thestagerecord component.- Returns:
- the value of the
stagerecord component
-
skippedFiles
public int skippedFiles()Returns the value of theskippedFilesrecord component.- Returns:
- the value of the
skippedFilesrecord component
-
failedFiles
public int failedFiles()Returns the value of thefailedFilesrecord component.- Returns:
- the value of the
failedFilesrecord component
-
committedChunks
public int committedChunks()Returns the value of thecommittedChunksrecord component.- Returns:
- the value of the
committedChunksrecord component
-