public class CombineCSV extends Task<FileInput,CSVWriter>
No check occurs that the same number of rows/columns exist in the files being combined.
The following outputs are produced:
Output Name | Default? | Description |
---|---|---|
yes | A CSV combining the input CSV files. | |
inherited from Task |
Constructor and Description |
---|
CombineCSV() |
Modifier and Type | Method and Description |
---|---|
void |
afterAllJobsAreExecuted(CSVWriter writer,
InputOutputContext context)
Called once after all calls to
Task.executeJob(org.anchoranalysis.experiment.task.ParametersUnbound<T, S>) . |
CSVWriter |
beforeAnyJobIsExecuted(Outputter outputter,
ConcurrencyPlan concurrencyPlan,
List<FileInput> inputs,
ParametersExperiment parameters)
Called once before all calls to
Task.executeJob(org.anchoranalysis.experiment.task.ParametersUnbound<T, S>) . |
OutputEnabledMutable |
defaultOutputs()
If specified, default rules for determine which outputs are enabled or not.
|
void |
doJobOnInput(InputBound<FileInput,CSVWriter> parameters)
Performs the task on a particular input.
|
String |
getSeperator() |
boolean |
hasVeryQuickPerInputExecution()
Is the execution-time of the task per-input expected to be very quick to execute?
|
InputTypesExpected |
inputTypesExpected()
Highest class(es) that will function as a valid input.
|
boolean |
isAddName() |
boolean |
isFirstLineHeaders() |
boolean |
isTransposed() |
void |
setAddName(boolean addName) |
void |
setFirstLineHeaders(boolean firstLineHeaders) |
void |
setSeperator(String seperator) |
void |
setTransposed(boolean transposed) |
executeJob, isInputCompatibleWith
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public CSVWriter beforeAnyJobIsExecuted(Outputter outputter, ConcurrencyPlan concurrencyPlan, List<FileInput> inputs, ParametersExperiment parameters) throws ExperimentExecutionException
Task
Task.executeJob(org.anchoranalysis.experiment.task.ParametersUnbound<T, S>)
.beforeAnyJobIsExecuted
in class Task<FileInput,CSVWriter>
outputter
- the output-manager for the experiment (not for an individual job)concurrencyPlan
- available numbers of processors that can call Task.executeJob(org.anchoranalysis.experiment.task.ParametersUnbound<T, S>)
inputs
- a list of inputs, each will result in at least one call to Task.executeJob(ParametersUnbound)
.parameters
- the experiment-parameters.Task.executeJob(org.anchoranalysis.experiment.task.ParametersUnbound<T, S>)
and to Task.afterAllJobsAreExecuted(S, org.anchoranalysis.io.output.outputter.InputOutputContext)
.ExperimentExecutionException
- if a fatal error occurs executing this step of the
experiment.public boolean hasVeryQuickPerInputExecution()
Task
hasVeryQuickPerInputExecution
in class Task<FileInput,CSVWriter>
public InputTypesExpected inputTypesExpected()
Task
This is usually the class of T (or sometimes the absolute base class InputFromManager).
inputTypesExpected
in class Task<FileInput,CSVWriter>
public void doJobOnInput(InputBound<FileInput,CSVWriter> parameters) throws JobExecutionException
Task
doJobOnInput
in class Task<FileInput,CSVWriter>
parameters
- the input for the job.JobExecutionException
- if an error occurs executing a particular job, that is not
otherwise suppressed.public void afterAllJobsAreExecuted(CSVWriter writer, InputOutputContext context) throws ExperimentExecutionException
Task
Task.executeJob(org.anchoranalysis.experiment.task.ParametersUnbound<T, S>)
.afterAllJobsAreExecuted
in class Task<FileInput,CSVWriter>
writer
- the shared-statecontext
- IO-context for experiment (not for an individual job)ExperimentExecutionException
- if a fatal error occurs executing this step of the
experiment.public OutputEnabledMutable defaultOutputs()
Task
defaultOutputs
in class Task<FileInput,CSVWriter>
public String getSeperator()
public void setSeperator(String seperator)
public boolean isFirstLineHeaders()
public void setFirstLineHeaders(boolean firstLineHeaders)
public boolean isTransposed()
public void setTransposed(boolean transposed)
public boolean isAddName()
public void setAddName(boolean addName)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.