log
.info("Merging an insert job with another insert job");
RemoteDocList prevDocList = prev.list;
RemoteDocList curDocList = job.list;
for (Iterator itr = curDocList.docList.iterator(); itr.hasNext(); ) {
RemoteOneNodeList oneNodeList = (RemoteOneNodeList)itr.next();
prevDocList.add(oneNodeList);
}
} else {
log
.warn("Found an update job prior to an insert job; ignored");
}
} else {
batchJobs.put(job.key, job);
}
} else {
if (prev != null) {
if (!prev.insert) {
log
.info("Merging an update job with another update job");
RemoteDocList prevDocList = prev.list;
RemoteDocList curDocList = job.list;
for (Iterator itr = curDocList.docList.iterator(); itr.hasNext(); ) {
RemoteOneNodeList oneNodeList = (RemoteOneNodeList)itr.next();
prevDocList.add(oneNodeList);
}
} else {
log
.warn("Found an insert job prior to an update job; ignored");