Package org.intermine.task
Class TSVFileReaderTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- org.intermine.task.DynamicAttributeTask
-
- org.intermine.task.DirectDataLoaderTask
-
- org.intermine.task.FileDirectDataLoaderTask
-
- org.intermine.task.TSVFileReaderTask
-
public class TSVFileReaderTask extends FileDirectDataLoaderTask
Read a file of tab separated values. Use one column as the key to look up objects and use the other columns to set fields in that object.- Author:
- Kim Rutherford
-
-
Field Summary
-
Fields inherited from class org.intermine.task.FileDirectDataLoaderTask
fileSets
-
Fields inherited from class org.intermine.task.DirectDataLoaderTask
sourceName
-
-
Constructor Summary
Constructors Constructor Description TSVFileReaderTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
processFile(java.io.File file)
Query all objects of the class given by the className specified in the configurationFile.void
setConfigurationFile(java.io.File configurationFile)
Set the configuration file to use.-
Methods inherited from class org.intermine.task.FileDirectDataLoaderTask
addFileSet, process
-
Methods inherited from class org.intermine.task.DirectDataLoaderTask
execute, getDirectDataLoader, getIntegrationWriter, setIgnoreDuplicates, setIntegrationWriterAlias, setSourceName, setSourceType
-
Methods inherited from class org.intermine.task.DynamicAttributeTask
configureDynamicAttributes
-
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
Method Detail
-
setConfigurationFile
public void setConfigurationFile(java.io.File configurationFile)
Set the configuration file to use.- Parameters:
configurationFile
- the configuration File
-
processFile
public void processFile(java.io.File file)
Query all objects of the class given by the className specified in the configurationFile. Set fields in the objects by using the tab separated files as input.- Specified by:
processFile
in classFileDirectDataLoaderTask
- Parameters:
file
- the File to process- Throws:
org.apache.tools.ant.BuildException
- if an ObjectStore method fails
-
-