T
- type of object that describes all rows of feature calculations.public abstract class FeatureTableCSVGenerator<T> extends CSVGenerator<T>
Generator
that outputs a feature-table in CSV format.Constructor and Description |
---|
FeatureTableCSVGenerator(List<String> headerNames) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
writeFeaturesToCSV(CSVWriter writer,
T allFeatureResults,
List<String> headerNames)
Writes the features to the CSV-file.
|
void |
writeToFile(T element,
OutputWriteSettings settings,
Path filePath) |
selectFileExtension
transform
write, writeWithIndex
public void writeToFile(T element, OutputWriteSettings settings, Path filePath) throws OutputWriteFailedException
writeToFile
in class SingleFileTypeGenerator<T,T>
OutputWriteFailedException
protected abstract void writeFeaturesToCSV(CSVWriter writer, T allFeatureResults, List<String> headerNames) throws OutputWriteFailedException
writer
- the write to useallFeatureResults
- all rows to writeheaderNames
- header-names for columns, corresponding to the data in rows
.OutputWriteFailedException
- if the output cannot be written.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.