org.intermine.dataloader
Class ParallelBatchingFetcher
java.lang.Object
org.intermine.dataloader.BaseEquivalentObjectFetcher
org.intermine.dataloader.HintingFetcher
org.intermine.dataloader.BatchingFetcher
org.intermine.dataloader.ParallelBatchingFetcher
- All Implemented Interfaces:
- EquivalentObjectFetcher
public class ParallelBatchingFetcher
- extends BatchingFetcher
Class providing EquivalentObjectFetcher functionality that fetches batches of equivalent objects
in parallel to improve performance.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParallelBatchingFetcher
public ParallelBatchingFetcher(BaseEquivalentObjectFetcher fetcher,
DataTracker dataTracker,
Source source)
- Constructor
- Parameters:
fetcher - another EquivalentObjectFetcherdataTracker - a DataTracker object to pass prefetch instructions tosource - the data Source that is being loaded
close
public void close(Source source)
- Close method - prints out summary data.
- Overrides:
close in class BatchingFetcher
- Parameters:
source - the Source used
doPks
protected void doPks(java.util.Map<PrimaryKey,ClassDescriptor> pksToDo,
java.util.Map<InterMineObject,java.util.Set<InterMineObject>> results,
java.util.Map<ClassDescriptor,java.util.List<InterMineObject>> cldToObjectsForCld,
long time1)
throws ObjectStoreException
- Fetches data for the given primary keys.
- Overrides:
doPks in class BatchingFetcher
- Parameters:
pksToDo - a Map of the primary keys to fetchresults - a Map to hold results that are to be added to the cachecldToObjectsForCld - a Map of Lists of objects relevant to PrimaryKeystime1 - the time that processing started
- Throws:
ObjectStoreException - if something goes wrong