@Priority(value=100) public class ResultWriter extends java.lang.Object implements ResultHandler
Note: these classes need to be rewritten. Contributions welcome!
Modifier and Type | Class and Description |
---|---|
static class |
ResultWriter.Parameterizer
Parameterization class.
|
Modifier and Type | Field and Description |
---|---|
private java.util.regex.Pattern |
filter
Result filter pattern.
|
private boolean |
gzip
Whether or not to do gzip compression on output.
|
private static Logging |
LOG
The logger for this class.
|
private java.io.File |
out
Holds the file to print results to.
|
private boolean |
warnoverwrite
Whether or not to warn on overwrite
|
Constructor and Description |
---|
ResultWriter(java.io.File out,
boolean gzip,
boolean warnoverwrite,
java.util.regex.Pattern filter)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
private StreamFactory |
openStreamFactory() |
void |
processNewResult(ResultHierarchy hier,
Result result)
Process a result.
|
private static final Logging LOG
private java.io.File out
private boolean gzip
private boolean warnoverwrite
private java.util.regex.Pattern filter
public ResultWriter(java.io.File out, boolean gzip, boolean warnoverwrite, java.util.regex.Pattern filter)
out
- Output filegzip
- Gzip compressionwarnoverwrite
- Warn before overwriting filesfilter
- Filter patternpublic void processNewResult(ResultHierarchy hier, Result result)
ResultProcessor
processNewResult
in interface ResultProcessor
hier
- The base of the result tree.result
- Newly added result subtree.private StreamFactory openStreamFactory() throws java.io.IOException
java.io.IOException
Copyright © 2019 ELKI Development Team. License information.