Hotter docs
This commit is contained in:
parent
bee33f763a
commit
a3fbd3e1a1
|
@ -161,8 +161,6 @@ public class BulkExportJobConfig {
|
|||
return myStepBuilderFactory.get("groupBulkExportGenerateResourceFilesStep")
|
||||
.<List<ResourcePersistentId>, List<IBaseResource>> chunk(CHUNK_SIZE) //1000 resources per generated file, as the reader returns 10 resources at a time.
|
||||
.reader(groupBulkItemReader())
|
||||
// .processor(myPidToIBaseResourceProcessor)
|
||||
// .processor(myGoldenResourceAnnotatingProcessor)
|
||||
.processor(inflateResourceThenAnnotateWithGoldenResourceProcessor())
|
||||
.writer(resourceToFileWriter())
|
||||
.listener(bulkExportGenerateResourceFilesStepListener())
|
||||
|
|
|
@ -237,10 +237,6 @@ public class GroupBulkItemReader extends BaseBulkItemReader implements ItemReade
|
|||
return expandedIds;
|
||||
}
|
||||
|
||||
private void populateMdmResourceCacheIfNeeded(Map<Long, Set<Long>> goldenResourceToSourcePidMap) {
|
||||
|
||||
}
|
||||
|
||||
private void queryResourceTypeWithReferencesToPatients(Set<ResourcePersistentId> myReadPids, List<String> idChunk) {
|
||||
//Build SP map
|
||||
//First, inject the _typeFilters and _since from the export job
|
||||
|
|
|
@ -21,6 +21,13 @@ public class MdmExpansionCacheSvc {
|
|||
|
||||
private final ConcurrentHashMap<String, String> mySourceToGoldenIdCache = new ConcurrentHashMap<>();
|
||||
|
||||
/**
|
||||
* Lookup a given resource's golden resource ID in the cache. Note that if you pass this function the resource ID of a
|
||||
* golden resource, it will just return itself.
|
||||
*
|
||||
* @param theSourceId the resource ID of the source resource ,e.g. PAT123
|
||||
* @return the resource ID of the associated golden resource.
|
||||
*/
|
||||
public String getGoldenResourceId(String theSourceId) {
|
||||
ourLog.debug(buildLogMessage("About to lookup cached resource ID " + theSourceId));
|
||||
String goldenResourceId = mySourceToGoldenIdCache.get(theSourceId);
|
||||
|
|
Loading…
Reference in New Issue