Documentation of 'ca.pfv.spmf.tools.dataset_generator.AddTimeStampsToSequenceDatabase' Java class
AddTimeStampsToSequenceDatabase
ca.pfv.spmf.tools.dataset_generator

Class AddTimeStampsToSequenceDatabase



  • public class AddTimeStampsToSequenceDatabase
    extends java.lang.Object
    This class is to read a sequence database in SPMF format, add consecutive timestamps to itemsets in each sequence, and then write the sequence database to a file.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void convert(java.lang.String inputFile, java.lang.String outputFile)
      Read a sequence database in SPMF format, add timestamps and then write the sequence database to a file.
      • Methods inherited from class java.lang.Object

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

      • AddTimeStampsToSequenceDatabase

        public AddTimeStampsToSequenceDatabase()
    • Method Detail

      • convert

        public void convert(java.lang.String inputFile,
                            java.lang.String outputFile)
                     throws java.io.IOException
        Read a sequence database in SPMF format, add timestamps and then write the sequence database to a file. Note that this code could be further optimized if performance is an issue (instead of loading the file into memory, it could be loaded line by line).
        Parameters:
        inputFile - the path of a sequence database in SPMF format
        outputFile - the output path for writing the database with timestamps
        Throws:
        java.io.IOException - if error while reading/writing file

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.