Record Class FileIngestionService.IngestionProgress
java.lang.Object
java.lang.Record
com.tnsai.intelligence.rag.binding.FileIngestionService.IngestionProgress
- Enclosing class:
FileIngestionService
public static record FileIngestionService.IngestionProgress(FileIngestionService.IngestionStage stage, int candidateFiles, int processedFiles, int skippedFiles, int failedFiles, int normalizedChunks, String currentFile)
extends Record
Synchronous source-ingestion progress snapshot.
- Since:
- 0.13.0
-
Constructor Summary
ConstructorsConstructorDescriptionIngestionProgress(FileIngestionService.IngestionStage stage, int candidateFiles, int processedFiles, int skippedFiles, int failedFiles, int normalizedChunks, String currentFile) Creates an instance of aIngestionProgressrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecandidateFilesrecord 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 thenormalizedChunksrecord component.intReturns the value of theprocessedFilesrecord component.intReturns the value of theskippedFilesrecord component.stage()Returns the value of thestagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IngestionProgress
public IngestionProgress(FileIngestionService.IngestionStage stage, int candidateFiles, int processedFiles, int skippedFiles, int failedFiles, int normalizedChunks, String currentFile) Creates an instance of aIngestionProgressrecord class.- Parameters:
stage- the value for thestagerecord componentcandidateFiles- the value for thecandidateFilesrecord componentprocessedFiles- the value for theprocessedFilesrecord componentskippedFiles- the value for theskippedFilesrecord componentfailedFiles- the value for thefailedFilesrecord componentnormalizedChunks- the value for thenormalizedChunksrecord componentcurrentFile- the value for thecurrentFilerecord 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 '=='. -
stage
Returns the value of thestagerecord component.- Returns:
- the value of the
stagerecord component
-
candidateFiles
public int candidateFiles()Returns the value of thecandidateFilesrecord component.- Returns:
- the value of the
candidateFilesrecord component
-
processedFiles
public int processedFiles()Returns the value of theprocessedFilesrecord component.- Returns:
- the value of the
processedFilesrecord 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
-
normalizedChunks
public int normalizedChunks()Returns the value of thenormalizedChunksrecord component.- Returns:
- the value of the
normalizedChunksrecord component
-
currentFile
Returns the value of thecurrentFilerecord component.- Returns:
- the value of the
currentFilerecord component
-