Class FeatureExporterContext
Object
FeatureExporterContext
Context for exporting features, containing configuration and output settings.
-
Constructor Summary
ConstructorsConstructorDescriptionFeatureExporterContext(InputOutputContext context, boolean removeNaNColumns, boolean visuallyShortenDecimals, boolean suppressErrors) Creates a newFeatureExporterContextinstance. -
Method Summary
Modifier and TypeMethodDescriptioncsvWriter(FeatureCSVMetadata metadata) Creates aFeatureCSVWriterfor the non-aggregated results.booleanContext for reading from or writing outputs to the file-system.inthashCode()booleanWhen true, columns containing allDouble.NaNvalues are removed before outputting.booleanIf false, an image is reported as errored, if any exception is thrown during calculation.booleanWhen truedoublevalues are printed to be as short as possible without losing precision.toString()
-
Constructor Details
-
FeatureExporterContext
public FeatureExporterContext(InputOutputContext context, boolean removeNaNColumns, boolean visuallyShortenDecimals, boolean suppressErrors) Creates a newFeatureExporterContextinstance.- Parameters:
context- Context for reading from or writing outputs to the file-system.removeNaNColumns- When true, columns containing allDouble.NaNvalues are removed before outputting.visuallyShortenDecimals- When truedoublevalues are printed to be as short as possible without losing precision.suppressErrors- If false, an image is reported as errored, if any exception is thrown during calculation. If true, then a value ofDouble.NaNis returned, and a message is written to the error-log.
-
-
Method Details
-
csvWriter
public Optional<FeatureCSVWriter> csvWriter(FeatureCSVMetadata metadata) throws OutputWriteFailedException Creates aFeatureCSVWriterfor the non-aggregated results.- Parameters:
metadata- the metadata for the CSV file- Returns:
- an optional
FeatureCSVWriterif creation is successful, empty otherwise - Throws:
OutputWriteFailedException- if there's an error creating the CSV writer
-
getContext
Context for reading from or writing outputs to the file-system. -
isRemoveNaNColumns
public boolean isRemoveNaNColumns()When true, columns containing allDouble.NaNvalues are removed before outputting. -
isVisuallyShortenDecimals
public boolean isVisuallyShortenDecimals()When truedoublevalues are printed to be as short as possible without losing precision. -
isSuppressErrors
public boolean isSuppressErrors()If false, an image is reported as errored, if any exception is thrown during calculation. If true, then a value ofDouble.NaNis returned, and a message is written to the error-log. -
equals
-
hashCode
public int hashCode() -
toString
-