Class TextGridDifferBuilder
java.lang.Object
com.kazurayam.materialstore.facet.textgrid.TextGridDifferBuilder
- Direct Known Subclasses:
DefaultTextGridDiffer
The "Builder" pattern of GOF is employed
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
diffTextGrids
(List<List<String>> input1, List<List<String>> input2, KeyRange keyRange, String givenJobName) getReportPathRelativeTo
(Path base) abstract void
jsonifyAndStoreKeys
(Store store, JobName jobName, JobTimestamp jobTimestamp, List<List<String>> input, KeyRange keyRange, String inputId) abstract void
jsonifyAndStoreRows
(Store store, JobName jobName, JobTimestamp jobTimestamp, List<List<String>> input, KeyRange keyRange, String inputId) protected static void
writeLinesIntoFile
(List<String> lines, File file)
-
Constructor Details
-
TextGridDifferBuilder
- Throws:
IOException
-
TextGridDifferBuilder
-
-
Method Details
-
diffTextGrids
public int diffTextGrids(List<List<String>> input1, List<List<String>> input2, KeyRange keyRange, String givenJobName) throws MaterialstoreException - Throws:
MaterialstoreException
-
jsonifyAndStoreRows
public abstract void jsonifyAndStoreRows(Store store, JobName jobName, JobTimestamp jobTimestamp, List<List<String>> input, KeyRange keyRange, String inputId) throws MaterialstoreException - Throws:
MaterialstoreException
-
jsonifyAndStoreKeys
public abstract void jsonifyAndStoreKeys(Store store, JobName jobName, JobTimestamp jobTimestamp, List<List<String>> input, KeyRange keyRange, String inputId) throws MaterialstoreException - Throws:
MaterialstoreException
-
getReportPath
-
getReportPathRelativeTo
-
writeLinesIntoFile
protected static void writeLinesIntoFile(List<String> lines, File file) throws MaterialstoreException - Throws:
MaterialstoreException
-