|
|
|||||||||||||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||||||||||
java.lang.Objectde.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable
de.lmu.ifi.dbs.elki.result.ResultWriter<O>
O - Object typepublic class ResultWriter<O extends DatabaseObject>
Result handler that feeds the data into a TextWriter
| Field Summary | |
|---|---|
private boolean |
gzip
Whether or not to do gzip compression on output. |
private Flag |
GZIP_FLAG
Flag to control GZIP compression. |
private OptionID |
GZIP_OUTPUT
GZIP compression flag. |
private Normalization<O> |
normalization
Normalization to use. |
private File |
out
Holds the file to print results to. |
private FileParameter |
OUTPUT_PARAM
Optional Parameter to specify the file to write the obtained results in. |
private Flag |
OVERWRITE_FLAG
Flag to suppress overwrite warning. |
private OptionID |
OVERWRITE_OPTION
Suppress overwrite warning. |
private boolean |
warnoverwrite
Whether or not to warn on overwrite |
| Fields inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
|---|
optionHandler |
| Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
|---|
debug, logger |
| Constructor Summary | |
|---|---|
ResultWriter()
Constructor. |
|
| Method Summary | |
|---|---|
Normalization<O> |
getNormalization()
Getter for normalization |
void |
processResult(Database<O> db,
Result result)
Process a single result. |
void |
setNormalization(Normalization<O> normalization)
Setter for normalization |
List<String> |
setParameters(List<String> args)
set Parameters |
| Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
|---|
addOption, addParameterizable, addParameterizable, checkGlobalParameterConstraints, collectOptions, getAttributeSettings, getParameters, rememberParametersExcept, removeOption, removeParameterizable, shortDescription |
| Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
|---|
debugFine, debugFiner, debugFinest, exception, progress, verbose, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.lmu.ifi.dbs.elki.utilities.optionhandling.Parameterizable |
|---|
checkGlobalParameterConstraints, collectOptions, getParameters, shortDescription |
| Field Detail |
|---|
private final FileParameter OUTPUT_PARAM
Key: -out
private final OptionID GZIP_OUTPUT
private final Flag GZIP_FLAG
Key: -out.gzip
private final OptionID OVERWRITE_OPTION
private final Flag OVERWRITE_FLAG
Key: -out.silentoverwrite
private File out
private Normalization<O extends DatabaseObject> normalization
private boolean gzip
private boolean warnoverwrite
| Constructor Detail |
|---|
public ResultWriter()
| Method Detail |
|---|
public List<String> setParameters(List<String> args)
throws ParameterException
setParameters in interface ParameterizablesetParameters in class AbstractParameterizableargs - parameters to set the attributes accordingly to
ParameterException - in case of wrong parameter-setting
public void processResult(Database<O> db,
Result result)
processResult in interface ResultHandler<O extends DatabaseObject,Result>db - Databaseresult - Resultpublic void setNormalization(Normalization<O> normalization)
ResultHandler
setNormalization in interface ResultHandler<O extends DatabaseObject,Result>normalization - Normalization to useResultHandler.setNormalization(de.lmu.ifi.dbs.elki.normalization.Normalization) public Normalization<O> getNormalization()
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||