Package build.jenesis.repository.walk
package build.jenesis.repository.walk
-
ClassDescriptionA totally ordered, resumable, range-segmented stream of store keys under root prefixes - the one shared enumeration primitive every whole-store sweep (garbage collection, retention eviction, derived-metadata rebuild) rides instead of hand-rolling its own
list()loop.One enumerated key.The shared rebuild pass: one walk over the pointer roots feeding everyWalkConsumer- so N metadata rebuilders never mean N tree walks.The walk half of the two-route derived-metadata contract.One walk pass as recorded in the consumer's manifest (walks/<consumer>/manifest): a monotonically increasing generation (the pass id every segment claim embeds, so a stale segment object from an earlier pass is recognisably reclaimable), the roots the pass enumerates, when it started, how its segments stand, and whether it is still running.A pass is running until its last segment is done.A named factory for the sharedArtifactWalk, discovered at runtime withServiceLoader- the API is an SPI kept separate from its implementation, so the enumeration strategy can change without breaking a consumer.One claimable slice of a walk pass: a half-open key range[from, to)under one root in the total lexicographic key order (nullbounds run to the root's start / end), plus the claim embedded in the same compare-and-set store object (walks/<consumer>/segments/<nn>) -state, theholderworker, the claim'sexpiry, and thecursorhigh-water mark of the last committed checkpoint.The claim lifecycle;PENDINGalso stands in for a stale object left by an earlier generation.