ca.pfv.spmf.tools.resultConverter
Class ResultConverter
- java.lang.Object
-
- ca.pfv.spmf.tools.resultConverter.ResultConverter
-
public class ResultConverter extends java.lang.ObjectThis class is for converting the result from an item (integer) representation back to a string representation by using the metadata provided in the original database. See the class MainTestConvertTransactionDatabaseARFFtoSPMF in the same package for a detailed explanation of the correspondance between string and integer formats.
-
-
Constructor Summary
Constructors Constructor and Description ResultConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidconvert(java.util.Map<java.lang.Integer,java.lang.String> mapItemIDtoStringValue, java.lang.String outputFile, java.lang.String outputFileConverted)This method converts a result file by converting item IDs to strings according to a provided mapping.voidconvert(java.lang.String inputDB, java.lang.String outputFile, java.lang.String outputFileConverted)This method converts a result file by converting item IDs to strings according to a provided mapping.
-
-
-
Method Detail
-
convert
public void convert(java.util.Map<java.lang.Integer,java.lang.String> mapItemIDtoStringValue, java.lang.String outputFile, java.lang.String outputFileConverted) throws java.io.IOExceptionThis method converts a result file by converting item IDs to strings according to a provided mapping.- Parameters:
mapItemIDtoStringValue- a mapping between item ID (key) and attribute value (value).outputFile- the path of an output file to be convertedoutputFileConverted- the path of the result file to be written to disk- Throws:
java.io.IOException- an exception is thrown if there is an error reading/writing files
-
convert
public void convert(java.lang.String inputDB, java.lang.String outputFile, java.lang.String outputFileConverted) throws java.io.IOExceptionThis method converts a result file by converting item IDs to strings according to a provided mapping.- Parameters:
inputDB- an input file providing the mapping between item ID (key) and attribute value (value) as metadata.outputFile- the path of an output file to be convertedoutputFileConverted- the path of the result file to be written to disk- Throws:
java.io.IOException- an exception is thrown if there is an error reading/writing files
-
-
DMelt 3.0 © DataMelt by jWork.ORG