Class CombineCSV
Object
org.anchoranalysis.bean.AnchorBean<org.anchoranalysis.experiment.bean.task.Task<T,S>>
org.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.io.input.file.FileInput,org.anchoranalysis.io.generator.tabular.CSVWriter>
org.anchoranalysis.plugin.io.bean.task.CombineCSV
public class CombineCSV
extends org.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.io.input.file.FileInput,org.anchoranalysis.io.generator.tabular.CSVWriter>
Combines multiple CSV files into a single CSV file.
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 |
|---|---|---|
| "combined" | yes | A CSV combining the input CSV files. |
inherited from Task |
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description CombineCSV() -
Method Summary
Modifier and Type Method Description voidafterAllJobsAreExecuted(org.anchoranalysis.io.generator.tabular.CSVWriter writer, org.anchoranalysis.io.output.outputter.InputOutputContext context)org.anchoranalysis.io.generator.tabular.CSVWriterbeforeAnyJobIsExecuted(org.anchoranalysis.io.output.outputter.Outputter outputter, org.anchoranalysis.inference.concurrency.ConcurrencyPlan concurrencyPlan, List<org.anchoranalysis.io.input.file.FileInput> inputs, org.anchoranalysis.experiment.task.ParametersExperiment parameters)org.anchoranalysis.io.output.enabled.OutputEnabledMutabledefaultOutputs()voiddoJobOnInput(org.anchoranalysis.experiment.task.InputBound<org.anchoranalysis.io.input.file.FileInput,org.anchoranalysis.io.generator.tabular.CSVWriter> parameters)StringgetSeperator()booleanhasVeryQuickPerInputExecution()org.anchoranalysis.experiment.task.InputTypesExpectedinputTypesExpected()booleanisAddName()booleanisFirstLineHeaders()booleanisTransposed()voidsetAddName(boolean addName)voidsetFirstLineHeaders(boolean firstLineHeaders)voidsetSeperator(String seperator)voidsetTransposed(boolean transposed)Methods inherited from class org.anchoranalysis.experiment.bean.task.Task
executeJob, isInputCompatibleWith
-
Constructor Details
-
CombineCSV
public CombineCSV()
-
-
Method Details
-
beforeAnyJobIsExecuted
public org.anchoranalysis.io.generator.tabular.CSVWriter beforeAnyJobIsExecuted(org.anchoranalysis.io.output.outputter.Outputter outputter, org.anchoranalysis.inference.concurrency.ConcurrencyPlan concurrencyPlan, List<org.anchoranalysis.io.input.file.FileInput> inputs, org.anchoranalysis.experiment.task.ParametersExperiment parameters) throws org.anchoranalysis.experiment.ExperimentExecutionException- Specified by:
beforeAnyJobIsExecutedin classorg.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.io.input.file.FileInput,org.anchoranalysis.io.generator.tabular.CSVWriter>- Throws:
org.anchoranalysis.experiment.ExperimentExecutionException
-
hasVeryQuickPerInputExecution
public boolean hasVeryQuickPerInputExecution()- Specified by:
hasVeryQuickPerInputExecutionin classorg.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.io.input.file.FileInput,org.anchoranalysis.io.generator.tabular.CSVWriter>
-
inputTypesExpected
public org.anchoranalysis.experiment.task.InputTypesExpected inputTypesExpected()- Specified by:
inputTypesExpectedin classorg.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.io.input.file.FileInput,org.anchoranalysis.io.generator.tabular.CSVWriter>
-
doJobOnInput
public void doJobOnInput(org.anchoranalysis.experiment.task.InputBound<org.anchoranalysis.io.input.file.FileInput,org.anchoranalysis.io.generator.tabular.CSVWriter> parameters) throws org.anchoranalysis.experiment.JobExecutionException- Specified by:
doJobOnInputin classorg.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.io.input.file.FileInput,org.anchoranalysis.io.generator.tabular.CSVWriter>- Throws:
org.anchoranalysis.experiment.JobExecutionException
-
afterAllJobsAreExecuted
public void afterAllJobsAreExecuted(org.anchoranalysis.io.generator.tabular.CSVWriter writer, org.anchoranalysis.io.output.outputter.InputOutputContext context) throws org.anchoranalysis.experiment.ExperimentExecutionException- Specified by:
afterAllJobsAreExecutedin classorg.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.io.input.file.FileInput,org.anchoranalysis.io.generator.tabular.CSVWriter>- Throws:
org.anchoranalysis.experiment.ExperimentExecutionException
-
defaultOutputs
public org.anchoranalysis.io.output.enabled.OutputEnabledMutable defaultOutputs()- Overrides:
defaultOutputsin classorg.anchoranalysis.experiment.bean.task.Task<org.anchoranalysis.io.input.file.FileInput,org.anchoranalysis.io.generator.tabular.CSVWriter>
-
getSeperator
-
setSeperator
-
isFirstLineHeaders
public boolean isFirstLineHeaders() -
setFirstLineHeaders
public void setFirstLineHeaders(boolean firstLineHeaders) -
isTransposed
public boolean isTransposed() -
setTransposed
public void setTransposed(boolean transposed) -
isAddName
public boolean isAddName() -
setAddName
public void setAddName(boolean addName)
-