Class ReferencesUtil


  • @Beta
    public final class ReferencesUtil
    extends java.lang.Object
    • Method Detail

      • identifyAllHeadsAndForkPoints

        public HeadsAndForkPoints identifyAllHeadsAndForkPoints​(int expectedCommitCount,
                                                                java.util.function.Consumer<CommitLogEntry> commitHandler)
        Identifies all heads and fork-points.
        • "Heads" are commits that are not referenced by other commits.
        • "Fork points" are commits that are the parent of more than one other commit. Knowing these commits can help to optimize the traversal of commit logs of multiple heads.
        Parameters:
        expectedCommitCount - it is recommended to tell the implementation the total number of commits in the Nessie repository
        commitHandler - called for every commit while scanning all commits