YUKI Hiroshi
null+****@clear*****
Thu Feb 27 14:43:37 JST 2014
YUKI Hiroshi 2014-02-27 14:43:37 +0900 (Thu, 27 Feb 2014) New Revision: d9aaffe20468d9073eab6fc40c6c951a2e39097c https://github.com/droonga/droonga.org/commit/d9aaffe20468d9073eab6fc40c6c951a2e39097c Message: Test the implemented command Modified files: tutorial/plugin-development/handler/index.md Modified: tutorial/plugin-development/handler/index.md (+22 -0) =================================================================== --- tutorial/plugin-development/handler/index.md 2014-02-27 14:35:37 +0900 (e6dddb3) +++ tutorial/plugin-development/handler/index.md 2014-02-27 14:43:37 +0900 (7b8a306) @@ -282,6 +282,28 @@ See the [class reference of Rroonga][Groonga::Context]. You can use any feature of Rroonga via `@context`. For now, we simply access to the table itself by its name and read the value of its `size` method - it returns the number of records. +Then, test it again. + +~~~ +# kill $(cat fluentd.pid) +# RUBYLIB=./lib fluentd --config fluentd.conf --log fluentd.log --daemon fluentd.pid +# droonga-request --tag starbucks count-records.json +Elapsed time: 0.01494 +[ + "droonga.message", + 1392621168, + { + "inReplyTo": "1392621168.0119512", + "statusCode": 200, + "type": "countRecords.result", + "body": [12, 12, 11] + } +] +~~~ + +Because there are totally 35 records, they are stored evenly like above. + + ## Read-write handler (TBD) -------------- next part -------------- HTML����������������������������...Download