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.
|
Method Summary |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectStoreDataLoader
public ObjectStoreDataLoader(IntegrationWriter iw)
- Construct an ObjectStoreDataLoader
- Parameters:
iw - an IntegrationWriter to which to write
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