public class InstancesResultListener extends CSVResultListener
-O <file name> The filename where output will be stored. Use - for stdout. (default temp file)
| Constructor and Description |
|---|
InstancesResultListener()
Sets temporary file.
|
| Modifier and Type | Method and Description |
|---|---|
void |
acceptResult(ResultProducer rp,
Object[] key,
Object[] result)
Collects each instance and adjusts the header information.
|
String |
getRevision()
Returns the revision string.
|
String |
globalInfo()
Returns a string describing this result listener
|
void |
postProcess(ResultProducer rp)
Perform any postprocessing.
|
void |
preProcess(ResultProducer rp)
Prepare for the results to be received.
|
determineColumnConstraints, getOptions, getOutputFile, isResultRequired, listOptions, outputFileName, outputFileTipText, setOptions, setOutputFile, setOutputFileNamepublic String globalInfo()
globalInfo in class CSVResultListenerpublic void preProcess(ResultProducer rp) throws Exception
preProcess in interface ResultListenerpreProcess in class CSVResultListenerrp - the ResultProducer that will generate the resultsException - if an error occurs during preprocessing.public void postProcess(ResultProducer rp) throws Exception
postProcess in interface ResultListenerpostProcess in class CSVResultListenerrp - the ResultProducer that generated the resultsException - if an error occurspublic void acceptResult(ResultProducer rp, Object[] key, Object[] result) throws Exception
acceptResult in interface ResultListeneracceptResult in class CSVResultListenerrp - the ResultProducer that generated the resultkey - The key for the results.result - The actual results.Exception - if the result could not be accepted.public String getRevision()
getRevision in interface RevisionHandlergetRevision in class CSVResultListenerCopyright © 2016 University of Waikato, Hamilton, NZ. All Rights Reserved.