public interface OutputWriter extends Serializable, Closeable
Modifier and Type | Field and Description |
---|---|
static OutputWriter |
EMPTY
An empty writer that does nothing.
|
Modifier and Type | Method and Description |
---|---|
default void |
close()
If this writer keeps any resources open that needs closing, it has to be
done here.
|
void |
setOutputPath(Path outputPath)
Sets the output path for this writer.
|
void |
writeValues(long steps)
Implementing classes need to specify how to write values.
|
static final OutputWriter EMPTY
void writeValues(long steps) throws IOException
steps
- the number of steps passed in Schedule
IOException
- If an I/O error occursvoid setOutputPath(Path outputPath)
Will be called during deserialization from Output
for all
associated writers. No need to handle serialization within
implementation.
outputPath
- the output pathdefault void close() throws IOException
close
in interface AutoCloseable
close
in interface Closeable
IOException