Record Class FileIngestionService.IngestionResult
java.lang.Object
java.lang.Record
com.tnsai.intelligence.rag.binding.FileIngestionService.IngestionResult
- Enclosing class:
FileIngestionService
public static record FileIngestionService.IngestionResult(List<FileIngestionService.IngestedChunk> chunks, Set<String> presentFiles, Set<String> ingestedFiles, Map<String,String> contentHashes, Map<String,String> fingerprints, int candidateFiles, int skippedFiles, int failedFiles, boolean complete)
extends Record
Immutable ingestion output and filesystem snapshot completeness.
- Since:
- 0.13.0
-
Constructor Summary
ConstructorsConstructorDescriptionIngestionResult(List<FileIngestionService.IngestedChunk> chunks, Set<String> presentFiles, Set<String> ingestedFiles, Map<String, String> contentHashes, Map<String, String> fingerprints, int candidateFiles, int skippedFiles, int failedFiles, boolean complete) Creates an instance of aIngestionResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecandidateFilesrecord component.chunks()Returns the value of thechunksrecord component.booleancomplete()Returns the value of thecompleterecord component.Returns the value of thecontentHashesrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thefailedFilesrecord component.Returns the value of thefingerprintsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theingestedFilesrecord component.Returns the value of thepresentFilesrecord component.intReturns the value of theskippedFilesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IngestionResult
public IngestionResult(List<FileIngestionService.IngestedChunk> chunks, Set<String> presentFiles, Set<String> ingestedFiles, Map<String, String> contentHashes, Map<String, String> fingerprints, int candidateFiles, int skippedFiles, int failedFiles, boolean complete) Creates an instance of aIngestionResultrecord class.- Parameters:
chunks- the value for thechunksrecord componentpresentFiles- the value for thepresentFilesrecord componentingestedFiles- the value for theingestedFilesrecord componentcontentHashes- the value for thecontentHashesrecord componentfingerprints- the value for thefingerprintsrecord componentcandidateFiles- the value for thecandidateFilesrecord componentskippedFiles- the value for theskippedFilesrecord componentfailedFiles- the value for thefailedFilesrecord componentcomplete- the value for thecompleterecord 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 '=='. -
chunks
Returns the value of thechunksrecord component.- Returns:
- the value of the
chunksrecord component
-
presentFiles
Returns the value of thepresentFilesrecord component.- Returns:
- the value of the
presentFilesrecord component
-
ingestedFiles
Returns the value of theingestedFilesrecord component.- Returns:
- the value of the
ingestedFilesrecord component
-
contentHashes
Returns the value of thecontentHashesrecord component.- Returns:
- the value of the
contentHashesrecord component
-
fingerprints
Returns the value of thefingerprintsrecord component.- Returns:
- the value of the
fingerprintsrecord component
-
candidateFiles
public int candidateFiles()Returns the value of thecandidateFilesrecord component.- Returns:
- the value of the
candidateFilesrecord 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
-
complete
public boolean complete()Returns the value of thecompleterecord component.- Returns:
- the value of the
completerecord component
-