什么取代了 MongoDB AggregationOutput 类?

use*_*688 5 java mongodb

所有方法都已被弃用,但我无法找到用于与 java 驱动程序聚合的替代类。

moh*_*ias 0

MongoAPI Docs不知道哪个类取代了 AggregationOutput。

但就功能而言,AggregationOutput类用于存储 mongo 查询的结果集。对象aggregationOutput.results()将提供一个文档数组,您可以使用迭代器对其进行迭代以获取各个文档。

DBCursor在这种情况下,势均力敌的比赛也是如此。