Documentation of 'ca.pfv.spmf.tools.resultConverter.ResultConverter' Java class
ResultConverter
ca.pfv.spmf.tools.resultConverter

Class ResultConverter



  • public class ResultConverter
    extends java.lang.Object
    This 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
      void convert(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.
      void convert(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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResultConverter

        public ResultConverter()
    • 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.IOException
        This 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 converted
        outputFileConverted - 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.IOException
        This 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 converted
        outputFileConverted - 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

You see the box below because you did not login.