Package org.intermine.task
Class FileDirectDataLoaderTask
- 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
-
- Direct Known Subclasses:
TSVFileReaderTask
public abstract class FileDirectDataLoaderTask extends DirectDataLoaderTask
A DirectDataLoaderTask for files.- Author:
- Kim Rutherford
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<org.apache.tools.ant.types.FileSet>
fileSets
-
Fields inherited from class org.intermine.task.DirectDataLoaderTask
sourceName
-
-
Constructor Summary
Constructors Constructor Description FileDirectDataLoaderTask()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
addFileSet(org.apache.tools.ant.types.FileSet fileSet)
Add a FileSet to read from.void
process()
Called by execute() to process the data.abstract void
processFile(java.io.File file)
Called by process() once for each File we need to 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
-
addFileSet
public void addFileSet(org.apache.tools.ant.types.FileSet fileSet)
Add a FileSet to read from.- Parameters:
fileSet
- the FileSet
-
process
public void process()
Description copied from class:DirectDataLoaderTask
Called by execute() to process the data. This implementation should call DirectDataLoader.createObject() and then DirectDataLoader.store() while processing.- Specified by:
process
in classDirectDataLoaderTask
- See Also:
DirectDataLoaderTask.process()
-
processFile
public abstract void processFile(java.io.File file)
Called by process() once for each File we need to process. This should be implemented in the sub-classes to call DirectDataLoader.createObject() and DirectDataLoader.store().- Parameters:
file
- the File
-
-