Class AnalyzeAllAndExport
java.lang.Object
org.variantsync.diffdetective.analysis.strategies.AnalysisStrategy
org.variantsync.diffdetective.analysis.strategies.AnalyzeAllAndExport
Exports all linegraph representations generated by an analysis directly to a file.
The file operations are buffered by Java, so it flushes them when it thinks there are enough of
them. In contrast to `AnalyzeAndExportIncrementally` this relies on the sanity of the Java
defaults
- Author:
- Benjamin Moosherr
-
Field Summary
FieldsFields inherited from class org.variantsync.diffdetective.analysis.strategies.AnalysisStrategy
outputPath, repo -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidend()Invoked when the analysis is done for the current repository.onCommit(CommitDiff commit) Invoked before a commit is analyzed.voidstart(Repository repo, Path outputPath) Invoked when the analysis starts.
-
Field Details
-
lineGraphDestination
-
-
Constructor Details
-
AnalyzeAllAndExport
public AnalyzeAllAndExport()
-
-
Method Details
-
start
Description copied from class:AnalysisStrategyInvoked when the analysis starts.- Overrides:
startin classAnalysisStrategy- Parameters:
repo- The repository on which an analysis is performed.outputPath- A directory to which output should be written.
-
onCommit
Description copied from class:AnalysisStrategyInvoked before a commit is analyzed. The returned line graph export destination is closed after processing the commit given bycommit.- Specified by:
onCommitin classAnalysisStrategy- Parameters:
commit- The commit that was just processed.- Returns:
- the line graph export destination
-
end
public void end()Description copied from class:AnalysisStrategyInvoked when the analysis is done for the current repository. The analysis might restart with another repository. In this case,AnalysisStrategy.start(org.variantsync.diffdetective.datasets.Repository, java.nio.file.Path)is invoked again.- Specified by:
endin classAnalysisStrategy
-