Class FileSourceReconciler.Reconciled
java.lang.Object
com.tnsai.intelligence.rag.binding.FileSourceReconciler.Reconciled
- Enclosing class:
FileSourceReconciler
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 Summary
Modifier and TypeMethodDescriptionbooleanaborted()Returns whether the load discarded what it collected, for example because the source path is missing or a directory could not be walked.Returns the chunks of changed files, in load order.Returns the ingested files that are new or whose pipeline fingerprint changed.Returns the files whose read failed; they keep their prior entry.manifest()Returns the manifest to pass to the next reconcile.Returns the ids of prior chunks that changed or removed files no longer produce.Returns the previously ingested files that this load no longer ingests, other than files whose read failed.result()Returns the load result.toString()Returns the ingested files whose pipeline fingerprint is unchanged.
-
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:
truewhen 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; seeFileManifest.- Returns:
- the ingestion result
-
manifest
Returns the manifest to pass to the next reconcile.- Returns:
- the next manifest
-
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
Returns the ingested files whose pipeline fingerprint is unchanged.- Returns:
- unchanged file paths
-
changedFiles
Returns the ingested files that are new or whose pipeline fingerprint changed.- Returns:
- changed file paths
-
removedFiles
Returns the previously ingested files that this load no longer ingests, other than files whose read failed.- Returns:
- removed file paths
-
failedPaths
Returns the files whose read failed; they keep their prior entry.- Returns:
- failed file paths
-
toString
-