iReport是否支持MapReduce? (与MongoDB的) 我想知道我是否可以把地图上的JasperServer在这个窗口减少查询,如果没有对报告(当您上传您的.jrxml你有一个“查询”选项卡)MapReduce和iReport/Jasperserver(MongoDB)?
感谢
iReport是否支持MapReduce? (与MongoDB的) 我想知道我是否可以把地图上的JasperServer在这个窗口减少查询,如果没有对报告(当您上传您的.jrxml你有一个“查询”选项卡)MapReduce和iReport/Jasperserver(MongoDB)?
感谢
是的,它的确如此。例如:
{
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'
}
}
望着Jasperforge论坛,它似乎支持在Windows中的MapReduce查询按本更新 -
http://jasperforge.org/plugins/espforum/view.php?group_id=83&forumid=101&topicid=96980
我没有测试此我自己,但它看起来像iReport的让你运行你想要的任何Mongo查询。
谢谢!我只想要一个例子:) – Louis