问题描述
使用两个列表,可以按以下方式计算这些列表的元素明智乘法和结果列表的总和。
{
"_pipeline": [
{
"$match": {
"entityId": "5eb658d7"
}
},{
"$lookup": {
"from": "entity","localField": "_id","foriegnField": "entityId","as": "rating"
}
},{
"$group": {
"_id": null,"avg": {
"$avg": "$rating"
}
}
}
],"options": {}
}
如何以最佳,快速的方式在Scala中为两个迭代器执行此操作?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)