de.lmu.ifi.dbs.elki.result
Class ResultWriter

java.lang.Object
  extended by de.lmu.ifi.dbs.elki.result.ResultWriter
All Implemented Interfaces:
ResultHandler, ResultProcessor, InspectionUtilFrequentlyScanned, Parameterizable

public class ResultWriter
extends Object
implements ResultHandler

Result handler that feeds the data into a TextWriter


Nested Class Summary
static class ResultWriter.Parameterizer
          Parameterization class.
 
Field Summary
private  boolean gzip
          Whether or not to do gzip compression on output.
static OptionID GZIP_OUTPUT_ID
          Flag to control GZIP compression.
private static Logging logger
          The logger for this class.
private  File out
          Holds the file to print results to.
static OptionID OVERWRITE_OPTION_ID
          Flag to suppress overwrite warning.
private  boolean warnoverwrite
          Whether or not to warn on overwrite
 
Constructor Summary
ResultWriter(File out, boolean gzip, boolean warnoverwrite)
          Constructor.
 
Method Summary
 void processNewResult(HierarchicalResult baseresult, Result result)
          Process a result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final Logging logger
The logger for this class.


GZIP_OUTPUT_ID

public static final OptionID GZIP_OUTPUT_ID
Flag to control GZIP compression.

Key: -out.gzip


OVERWRITE_OPTION_ID

public static final OptionID OVERWRITE_OPTION_ID
Flag to suppress overwrite warning.

Key: -out.silentoverwrite


out

private File out
Holds the file to print results to.


gzip

private boolean gzip
Whether or not to do gzip compression on output.


warnoverwrite

private boolean warnoverwrite
Whether or not to warn on overwrite

Constructor Detail

ResultWriter

public ResultWriter(File out,
                    boolean gzip,
                    boolean warnoverwrite)
Constructor.

Parameters:
out -
gzip -
warnoverwrite -
Method Detail

processNewResult

public void processNewResult(HierarchicalResult baseresult,
                             Result result)
Description copied from interface: ResultProcessor
Process a result.

Specified by:
processNewResult in interface ResultProcessor
Parameters:
baseresult - The base of the result tree.
result - Newly added result subtree.

Release 0.4.0 (2011-09-20_1324)