Class ObjectStoreDataLoader


  • public class ObjectStoreDataLoader
    extends DataLoader
    Loads information from an ObjectStore into the InterMine database.
    Author:
    Matthew Wakeling
    • 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 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 data
        source - the main Source
        skelSource - 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 data
        source - the main Source
        skelSource - the skeleton Source
        queryClass - the class to load data for
        Throws:
        ObjectStoreException - if an error occurs on either the source or the destination