public final class FeatureExporterContext extends Object
Constructor and Description |
---|
FeatureExporterContext(InputOutputContext context,
boolean removeNaNColumns,
boolean visuallyShortenDecimals,
boolean suppressErrors) |
Modifier and Type | Method and Description |
---|---|
Optional<FeatureCSVWriter> |
csvWriter(FeatureCSVMetadata metadata)
Creates a
FeatureCSVWriter for the non-aggregated results. |
boolean |
equals(Object o) |
InputOutputContext |
getContext()
Context for reading from or writing outputs to the file-system.
|
int |
hashCode() |
boolean |
isRemoveNaNColumns()
When true, columns containing all
Double.NaN values are removed before outputting. |
boolean |
isSuppressErrors()
If false, an image is reported as errored, if any exception is thrown during calculation.
|
boolean |
isVisuallyShortenDecimals()
When true
double values are printed to be as short as possible without losing
precision. |
String |
toString() |
public FeatureExporterContext(InputOutputContext context, boolean removeNaNColumns, boolean visuallyShortenDecimals, boolean suppressErrors)
public Optional<FeatureCSVWriter> csvWriter(FeatureCSVMetadata metadata) throws OutputWriteFailedException
FeatureCSVWriter
for the non-aggregated results.OutputWriteFailedException
public InputOutputContext getContext()
public boolean isRemoveNaNColumns()
Double.NaN
values are removed before outputting.public boolean isVisuallyShortenDecimals()
double
values are printed to be as short as possible without losing
precision.public boolean isSuppressErrors()
Double.NaN
is returned, and a message is written to the
error-log.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.