loadObjectsFromQueuesById(objectsById,
objectQueuesById,
neededObjectIds)
|
|
objectsById:
Dictionary to be populated with (id: object) instances pulled out of the
respective objectQueues from objectQueuesById
objectQueuesById:
The "cache" of objects, keyed by ID. Actually store a Queue of possibly multiple objects
for each ID, and just retrieve the first available to store in objectsById.
neededObjectIds:
Set of IDs of the objects to look for and load from the objectQueues
return:
Returns the set of "newObjectIds." That is, the IDs of objects which were needed but were NOT
found to be available in the objectQueues. Thus, caller will have to make own arrangements
to fill in these blanks.
|