MapReduce和iReport/Jasperserver(MongoDB)?
iReport是否支持MapReduce?(与MongoDB合作) 我想知道我是否可以在此窗口中放置Map Reduce查询,或者是否可以在jasperserver上的报告中放置(当您上载.jrxml时,您有一个“查询”选项卡)MapReduce和iReport/Jasperserver(MongoDB)?,mongodb,jasper-reports,mapreduce,ireport,jasperserver,Mongodb,Jasper Reports,Mapreduce,Ireport,Jasperserver,iReport是否支持MapReduce?(与MongoDB合作) 我想知道我是否可以在此窗口中放置Map Reduce查询,或者是否可以在jasperserver上的报告中放置(当您上载.jrxml时,您有一个“查询”选项卡) 感谢查看Jasperforge论坛,根据此更新,它似乎支持Windows中的MapReduce查询- 我自己还没有测试过,但iReport似乎允许您运行任何您想要的Mongo查询。是的,它可以。例如: { collectionName : 'dataByZipCo
感谢查看Jasperforge论坛,根据此更新,它似乎支持Windows中的MapReduce查询-
我自己还没有测试过,但iReport似乎允许您运行任何您想要的Mongo查询。是的,它可以。例如:
{
collectionName : 'dataByZipCode',
sort : {
'value.population' : -1,
},
mapReduce : {
map : 'function () {
emit (this.state, {population : this.pop});
}',
reduce : 'function (key, values) {
var total = 0;
for( var index = 0; index < values.length; index ++) {
total += values[index].population;
}
return {population : total}
}',
out : 'totalPopulation'
}
}
{
collectionName:'dataByZipCode',
排序:{
“值.总体”:-1,
},
mapReduce:{
map:'函数(){
emit(this.state,{population:this.pop});
}',
reduce:'函数(键、值){
var合计=0;
对于(var index=0;index
请参见谢谢!我只想举个例子:)