草庐IT

unfetchedEpisodes

全部标签

java - MongoDB 结果集在执行查询后被修改

在我的应用程序中有2个线程:抓取网站并将数据插入MongoDB检索抓取的网站并执行业务逻辑为了检索已抓取的网站,我使用以下查询:Documentquery=newDocument("fetchStatus",newDocument("$lte",fetchStatusParam));FindIterableunfetchedEpisodes=dbC_Episodes.find(query);结果我得到了所有剧集,它是fetchStatusParam小于或等于特定值。下一步,我将结果集的项存储在HashMap中,这是一个对象属性,以便跟踪它们:for(Documentdocument:u