tp.store
Class StoreCSV

java.lang.Object
  extended by 
      extended by tp.store.StoreCSV
All Implemented Interfaces:
StoreInterface

public class StoreCSV
extends
implements StoreInterface

Class for saving pre-processed documents in CSV files.


Constructor Summary
StoreCSV(java.lang.String separator)
          Constructor of the class
 
Method Summary
protected  java.lang.Void doInBackground()
           
 void writeDocRepresentation(java.io.File file, java.util.ArrayList<DocsRepresentDB.FeatureDF> features_array, DocsRepresentDB representation_database, boolean write_topic)
          Writes the whole database of document representations into a CSV file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface tp.store.StoreInterface
addPropertyChangeListener
 

Constructor Detail

StoreCSV

public StoreCSV(java.lang.String separator)
Constructor of the class

Parameters:
separator - separator of values in a CSV file
Method Detail

writeDocRepresentation

public void writeDocRepresentation(java.io.File file,
                                   java.util.ArrayList<DocsRepresentDB.FeatureDF> features_array,
                                   DocsRepresentDB representation_database,
                                   boolean write_topic)
Writes the whole database of document representations into a CSV file.

Specified by:
writeDocRepresentation in interface StoreInterface
Parameters:
file - a file, into which the representations will be written
features_array - array of all features (1st row in file)
representation_database - database of all document representations
write_topic - boolean value, if the categories of documents are stored

doInBackground

protected java.lang.Void doInBackground()
                                 throws java.lang.Exception
Throws:
java.lang.Exception