Package org.intermine.dataloader
Class ObjectStoreDataLoader
- java.lang.Object
-
- org.intermine.dataloader.DataLoader
-
- org.intermine.dataloader.ObjectStoreDataLoader
-
public class ObjectStoreDataLoader extends DataLoader
Loads information from an ObjectStore into the InterMine database.- Author:
- Matthew Wakeling
-
-
Constructor Summary
Constructors Constructor Description ObjectStoreDataLoader(IntegrationWriter iw)
Construct an ObjectStoreDataLoader
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
process(ObjectStore os, Source source, Source skelSource)
Performs the loading operation, reading data from the given ObjectStore, which must use the same model as the destination IntegrationWriter.void
process(ObjectStore os, Source source, Source skelSource, java.lang.Class<? extends FastPathObject> queryClass)
Loads only a specified class reading data from the given ObjectStore, which must use the same model as the destination IntegrationWriter.-
Methods inherited from class org.intermine.dataloader.DataLoader
getIntegrationWriter
-
-
-
-
Constructor Detail
-
ObjectStoreDataLoader
public ObjectStoreDataLoader(IntegrationWriter iw)
Construct an ObjectStoreDataLoader- Parameters:
iw
- an IntegrationWriter to which to write
-
-
Method Detail
-
process
public void process(ObjectStore os, Source source, Source skelSource) throws ObjectStoreException
Performs the loading operation, reading data from the given ObjectStore, which must use the same model as the destination IntegrationWriter.- Parameters:
os
- the ObjectStore from which to read datasource
- the main SourceskelSource
- the skeleton Source- Throws:
ObjectStoreException
- if an error occurs on either the source or the destination
-
process
public void process(ObjectStore os, Source source, Source skelSource, java.lang.Class<? extends FastPathObject> queryClass) throws ObjectStoreException
Loads only a specified class reading data from the given ObjectStore, which must use the same model as the destination IntegrationWriter. If the class is InterMineObject then all data will be loaded.- Parameters:
os
- the ObjectStore from which to read datasource
- the main SourceskelSource
- the skeleton SourcequeryClass
- the class to load data for- Throws:
ObjectStoreException
- if an error occurs on either the source or the destination
-
-