public interface LabelledResultsCollector
LabelledResultsVector
as they are calculated, and writes to the file-system.Modifier and Type | Method and Description |
---|---|
void |
add(LabelledResultsVector results)
Adds a results-element to be written.
|
void |
flushAndClose(Optional<NamedFeatureStore<FeatureInputResults>> featuresAggregate,
boolean includeGroups,
java.util.function.Function<InputOutputContext,FeatureCSVWriterFactory> csvWriterCreator,
FeatureOutputMetadata outputMetadata,
InputOutputContext context)
Writes any queued (but not yet written elements to the file-system), and closes open
file-handles.
|
void add(LabelledResultsVector results)
This should be called once for each set of results to be written.
results
- the results.void flushAndClose(Optional<NamedFeatureStore<FeatureInputResults>> featuresAggregate, boolean includeGroups, java.util.function.Function<InputOutputContext,FeatureCSVWriterFactory> csvWriterCreator, FeatureOutputMetadata outputMetadata, InputOutputContext context) throws OutputWriteFailedException
This should be called once only after all calls to add(LabelledResultsVector)
are completed.
featuresAggregate
- aggregate-features.includeGroups
- iff true a group-column is included in the CSV file and the group
exports occur, otherwise not.csvWriterCreator
- creates a CSV writer for a particular IO-context.outputMetadata
- metadata for writing features to the file-system with CSV and other
formats.context
- input-output context.OutputWriteFailedException
- if writing fails.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.