Class FileSourceReconciler.Reconciled

java.lang.Object
com.tnsai.intelligence.rag.binding.FileSourceReconciler.Reconciled
Enclosing class:
FileSourceReconciler

public static final class FileSourceReconciler.Reconciled extends Object
Outcome of one reconcile: the load result, the manifest for the next reconcile, and the diff against the prior manifest. Paths are normalized absolute paths, sorted.
Since:
0.18.7
  • Method Details

    • aborted

      public boolean aborted()
      Returns whether the load discarded what it collected, for example because the source path is missing or a directory could not be walked. An aborted reconcile returns the prior manifest and an empty diff; failedPaths() names the path that failed when one is known.
      Returns:
      true when the load was aborted
    • result

      Returns the load result. It equals what a cold load of the same tree returns, except for a change that the stat key cannot see; see FileManifest.
      Returns:
      the ingestion result
    • manifest

      public FileManifest manifest()
      Returns the manifest to pass to the next reconcile.
      Returns:
      the next manifest
    • removedChunkIds

      public List<String> removedChunkIds()
      Returns the ids of prior chunks that changed or removed files no longer produce.
      Returns:
      chunk ids to remove
    • addedChunks

      Returns the chunks of changed files, in load order.
      Returns:
      chunks to add
    • unchangedFiles

      public List<String> unchangedFiles()
      Returns the ingested files whose pipeline fingerprint is unchanged.
      Returns:
      unchanged file paths
    • changedFiles

      public List<String> changedFiles()
      Returns the ingested files that are new or whose pipeline fingerprint changed.
      Returns:
      changed file paths
    • removedFiles

      public List<String> removedFiles()
      Returns the previously ingested files that this load no longer ingests, other than files whose read failed.
      Returns:
      removed file paths
    • failedPaths

      public List<String> failedPaths()
      Returns the files whose read failed; they keep their prior entry.
      Returns:
      failed file paths
    • toString

      public String toString()
      Overrides:
      toString in class Object