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 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 a IngestionResult record class.
      Parameters:
      chunks - the value for the chunks record component
      presentFiles - the value for the presentFiles record component
      ingestedFiles - the value for the ingestedFiles record component
      contentHashes - the value for the contentHashes record component
      fingerprints - the value for the fingerprints record component
      candidateFiles - the value for the candidateFiles record component
      skippedFiles - the value for the skippedFiles record component
      failedFiles - the value for the failedFiles record component
      complete - the value for the complete record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • chunks

      Returns the value of the chunks record component.
      Returns:
      the value of the chunks record component
    • presentFiles

      public Set<String> presentFiles()
      Returns the value of the presentFiles record component.
      Returns:
      the value of the presentFiles record component
    • ingestedFiles

      public Set<String> ingestedFiles()
      Returns the value of the ingestedFiles record component.
      Returns:
      the value of the ingestedFiles record component
    • contentHashes

      public Map<String,String> contentHashes()
      Returns the value of the contentHashes record component.
      Returns:
      the value of the contentHashes record component
    • fingerprints

      public Map<String,String> fingerprints()
      Returns the value of the fingerprints record component.
      Returns:
      the value of the fingerprints record component
    • candidateFiles

      public int candidateFiles()
      Returns the value of the candidateFiles record component.
      Returns:
      the value of the candidateFiles record component
    • skippedFiles

      public int skippedFiles()
      Returns the value of the skippedFiles record component.
      Returns:
      the value of the skippedFiles record component
    • failedFiles

      public int failedFiles()
      Returns the value of the failedFiles record component.
      Returns:
      the value of the failedFiles record component
    • complete

      public boolean complete()
      Returns the value of the complete record component.
      Returns:
      the value of the complete record component