org.encog.app.analyst.csv.sort
Class SortCSV

java.lang.Object
  extended by org.encog.app.analyst.csv.basic.BasicFile
      extended by org.encog.app.analyst.csv.sort.SortCSV
All Implemented Interfaces:
QuantTask

public class SortCSV
extends BasicFile

Used to sort a CSV file by one, or more, fields.


Field Summary
 
Fields inherited from class org.encog.app.analyst.csv.basic.BasicFile
REPORT_INTERVAL
 
Constructor Summary
SortCSV()
           
 
Method Summary
 List<SortedField> getSortOrder()
           
 void process(File inputFile, File outputFile, boolean headers, CSVFormat format)
          Process, and sort the files.
 
Methods inherited from class org.encog.app.analyst.csv.basic.BasicFile
appendSeparator, getColumnCount, getInputFilename, getInputFormat, getInputHeadings, getOutputFormat, getPrecision, getRecordCount, getReport, getReportInterval, getScript, isAnalyzed, isExpectInputHeaders, isProduceOutputHeaders, performBasicCounts, prepareOutputFile, readHeaders, reportDone, reportDone, requestStop, resetStatus, setAnalyzed, setColumnCount, setExpectInputHeaders, setInputFilename, setInputFormat, setInputHeadings, setOutputFormat, setPrecision, setProduceOutputHeaders, setRecordCount, setReport, setReportInterval, setScript, shouldStop, toString, updateStatus, updateStatus, validateAnalyzed, writeRow
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SortCSV

public SortCSV()
Method Detail

getSortOrder

public final List<SortedField> getSortOrder()
Returns:
Used to specify the sort order.

process

public final void process(File inputFile,
                          File outputFile,
                          boolean headers,
                          CSVFormat format)
Process, and sort the files.

Parameters:
inputFile - The input file.
outputFile - The output file.
headers - True, if headers are to be used.
format - The format of the file.


Copyright © 2011. All Rights Reserved.