Class AnalyzeAndExportIncrementally

java.lang.Object
org.variantsync.diffdetective.analysis.strategies.AnalysisStrategy
org.variantsync.diffdetective.analysis.strategies.AnalyzeAndExportIncrementally
Direct Known Subclasses:
AnalyzeAllThenExport

public class AnalyzeAndExportIncrementally extends AnalysisStrategy
Collects the linegraph representations generated by an analysis and exports them once a certain threshold of representations has been stored. The default value is 100, meaning that a linegraph file is written for every 100 processed commits.
Author:
Paul Bittner
  • Field Details

    • DEFAULT_NUMBER_OF_COMMITS_TO_EXPORT_AT_ONCE

      public static final int DEFAULT_NUMBER_OF_COMMITS_TO_EXPORT_AT_ONCE
      Default value for the amount of commits whose linegraph representations should be exported together.
      See Also:
    • commitsToExportAtOnce

      private final int commitsToExportAtOnce
    • lineGraphDestination

      private ByteArrayOutputStream lineGraphDestination
    • collectedCommits

      private int collectedCommits
  • Constructor Details

    • AnalyzeAndExportIncrementally

      public AnalyzeAndExportIncrementally(int numberOfCommitsToExportAtOnce)
      Creates a new strategy that collects the linegraph representations of the given amount of commits and then exports them together.
      Parameters:
      numberOfCommitsToExportAtOnce - Amount of commits whose linegraph representations should be exported together.
    • AnalyzeAndExportIncrementally

      public AnalyzeAndExportIncrementally()
      Creates a new strategy with the default value of commits to export together.
      See Also:
  • Method Details