org.encog.app.analyst.csv.sort

## Class SortCSV

- java.lang.Object
- - org.encog.app.analyst.csv.basic.BasicFile
  - - 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

    Constructors
    Constructor and Description
    `SortCSV()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `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, getFormat, getInputFilename, getInputHeadings, getPrecision, getRecordCount, getReport, getReportInterval, getScript, isAnalyzed, isExpectInputHeaders, isProduceOutputHeaders, performBasicCounts, prepareOutputFile, readHeaders, reportDone, reportDone, requestStop, resetStatus, setAnalyzed, setColumnCount, setExpectInputHeaders, setInputFilename, setInputFormat, setInputHeadings, 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 List<SortedField> getSortOrder()

      Returns:
        Used to specify the sort order.

    - #### process

          public 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 © 2014. All Rights Reserved.