Sco*_*erg 8 php couchdb mapreduce
我正在尝试在PHPillow中执行一个reduce函数(MapReduce),目前它没有文档,但我真的需要这样做.有没有人有一个在PHPillow中实现Reduce功能的例子?
http://arbitracker.org/phpillow/download.html < - 这是PHPillow
从Futon或普通的地图功能来看,我没有遇到任何问题,这就是我所担心的减少功能.
这是在代码中
* A reduce function may be used to aggregate / reduce the results
* calculated by a view function. See the CouchDB documentation for more
* results: @TODO: Not yet documented.
*
* Each view reduce function MUST have a view definition with the same
* name, otherwise there is nothing to reduce.
Run Code Online (Sandbox Code Playgroud)
谢谢你的帮助,
--Scott
首先我要说的是我不太了解 PHPillow 或 CouchDB。
但是,从表面上看,Reduce 函数是在 CouchDb 服务器上编写并注册的。然后在 view_file.php 中引用它 - 按照示例定义数组...第 35-57 行。
然后,当您调用 verifyView() 时,它将执行定义的减少,这反过来意味着您可以通过 $views[$name]['reduce'] 访问它。
正如我所说,我只是根据课程中的少量信息和 couchdb 的有关 reduce 的信息进行猜测。
| 归档时间: |
|
| 查看次数: |
446 次 |
| 最近记录: |