Interface CommitDao

    • Method Detail

      • scrollCommitsForExport

        long scrollCommitsForExport​(@NotNull
                                    @NotNull Consumer<Commit> consumer)
        Scroll through and execute function for each of Commit Objects passed to function are not fully initialized. Collections are empty and related objects have only id set.
        Parameters:
        consumer - consumer to accept on each of the Commit
        Returns:
        number of traversed rows
      • getCommitsForResult

        @NotNull
        @NotNull List<Commit> getCommitsForResult​(@NotNull
                                                  @NotNull ResultsSummary resultsSummary)
        Parameters:
        resultsSummary - ResultsSummary which associated commits have to be returned
        Returns:
        commits for the given ResultsSummary
      • getCommitsForUser

        @NotNull
        @NotNull List<UnassociatedCommit> getCommitsForUser​(@NotNull
                                                            @NotNull String username,
                                                            int max)
        Find recent commits for a given user.
        Parameters:
        username - to find commits for (based on author -> username association)
        max - maximum number of entries to retrieve
        Returns:
        Representation of the commit.