rroonga 1.2.7-x86-mingw32 → 1.3.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -0
- data/Rakefile +1 -0
- data/bin/grntest-log-analyze +123 -0
- data/bin/groonga-query-log-extract +117 -0
- data/ext/groonga/rb-grn-accessor.c +7 -5
- data/ext/groonga/rb-grn-array-cursor.c +1 -1
- data/ext/groonga/rb-grn-array.c +34 -44
- data/ext/groonga/rb-grn-column.c +74 -38
- data/ext/groonga/rb-grn-context.c +41 -16
- data/ext/groonga/rb-grn-database.c +50 -43
- data/ext/groonga/rb-grn-double-array-trie-cursor.c +40 -0
- data/ext/groonga/rb-grn-double-array-trie.c +530 -0
- data/ext/groonga/rb-grn-encoding-support.c +1 -1
- data/ext/groonga/rb-grn-encoding.c +1 -1
- data/ext/groonga/rb-grn-exception.c +1 -1
- data/ext/groonga/rb-grn-expression-builder.c +1 -1
- data/ext/groonga/rb-grn-expression.c +63 -51
- data/ext/groonga/rb-grn-fix-size-column.c +7 -7
- data/ext/groonga/rb-grn-hash-cursor.c +1 -1
- data/ext/groonga/rb-grn-hash.c +42 -39
- data/ext/groonga/rb-grn-index-column.c +35 -31
- data/ext/groonga/rb-grn-index-cursor.c +1 -1
- data/ext/groonga/rb-grn-logger.c +23 -18
- data/ext/groonga/rb-grn-object.c +69 -40
- data/ext/groonga/rb-grn-operator.c +1 -1
- data/ext/groonga/rb-grn-patricia-trie-cursor.c +1 -1
- data/ext/groonga/rb-grn-patricia-trie.c +122 -90
- data/ext/groonga/rb-grn-plugin.c +8 -7
- data/ext/groonga/rb-grn-posting.c +1 -1
- data/ext/groonga/rb-grn-procedure.c +1 -1
- data/ext/groonga/rb-grn-query.c +12 -12
- data/ext/groonga/rb-grn-record.c +1 -1
- data/ext/groonga/rb-grn-snippet.c +26 -19
- data/ext/groonga/rb-grn-table-cursor-key-support.c +1 -1
- data/ext/groonga/rb-grn-table-cursor.c +4 -3
- data/ext/groonga/rb-grn-table-key-support.c +23 -23
- data/ext/groonga/rb-grn-table.c +280 -149
- data/ext/groonga/rb-grn-type.c +11 -7
- data/ext/groonga/rb-grn-utils.c +81 -9
- data/ext/groonga/rb-grn-variable-size-column.c +1 -1
- data/ext/groonga/rb-grn-variable.c +2 -2
- data/ext/groonga/rb-grn-view-accessor.c +1 -1
- data/ext/groonga/rb-grn-view-cursor.c +1 -1
- data/ext/groonga/rb-grn-view-record.c +1 -1
- data/ext/groonga/rb-grn-view.c +43 -34
- data/ext/groonga/rb-grn.h +10 -2
- data/ext/groonga/rb-groonga.c +1 -1
- data/lib/1.8/groonga.so +0 -0
- data/lib/1.9/groonga.so +0 -0
- data/lib/groonga/context.rb +16 -41
- data/lib/groonga/dumper.rb +41 -10
- data/lib/groonga/expression-builder-19.rb +40 -0
- data/lib/groonga/expression-builder.rb +56 -26
- data/lib/groonga/grntest-log.rb +206 -0
- data/lib/groonga/pagination.rb +21 -19
- data/lib/groonga/patricia-trie.rb +7 -10
- data/lib/groonga/posting.rb +1 -1
- data/lib/groonga/query-log.rb +348 -0
- data/lib/groonga/record.rb +47 -143
- data/lib/groonga/schema.rb +679 -406
- data/lib/groonga/view-record.rb +4 -10
- data/lib/groonga.rb +4 -2
- data/rroonga-build.rb +1 -1
- data/test/groonga-test-utils.rb +8 -0
- data/test/test-array.rb +25 -4
- data/test/test-column.rb +8 -8
- data/test/test-database.rb +2 -3
- data/test/test-double-array-trie.rb +164 -0
- data/test/test-expression-builder.rb +2 -2
- data/test/test-expression.rb +10 -9
- data/test/test-gqtp.rb +2 -2
- data/test/test-hash.rb +32 -8
- data/test/test-patricia-trie.rb +34 -10
- data/test/test-query-log.rb +258 -0
- data/test/test-record.rb +6 -5
- data/test/test-schema-create-table.rb +8 -0
- data/test/test-schema-dumper.rb +6 -0
- data/test/test-schema.rb +491 -234
- data/test/test-table-select.rb +9 -0
- data/test/test-table.rb +17 -24
- data/vendor/local/bin/grntest.exe +0 -0
- data/vendor/local/bin/groonga-query-log-analyzer +22 -17
- data/vendor/local/bin/groonga.exe +0 -0
- data/vendor/local/bin/libgroonga-0.dll +0 -0
- data/vendor/local/bin/libmecab-1.dll +0 -0
- data/vendor/local/bin/mecab-config +2 -2
- data/vendor/local/bin/mecab.exe +0 -0
- data/vendor/local/include/groonga/groonga.h +251 -5
- data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.la +2 -2
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.la +2 -2
- data/vendor/local/lib/libgroonga.a +0 -0
- data/vendor/local/lib/libgroonga.dll.a +0 -0
- data/vendor/local/lib/libgroonga.la +1 -1
- data/vendor/local/lib/libmecab.a +0 -0
- data/vendor/local/lib/libmecab.dll.a +0 -0
- data/vendor/local/lib/libmecab.la +1 -1
- data/vendor/local/lib/pkgconfig/groonga.pc +3 -2
- data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
- data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/en/html/_images/geo-points.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/characteristic.txt +32 -31
- data/vendor/local/share/doc/groonga/en/html/_sources/commands/select.txt +7 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/documentation/i18n.txt +6 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/executables/grntest.txt +6 -6
- data/vendor/local/share/doc/groonga/en/html/_sources/geolocation_search.txt +52 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/index.txt +1 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/install.txt +31 -40
- data/vendor/local/share/doc/groonga/en/html/_sources/news/senna.txt +109 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +118 -0
- data/vendor/local/share/doc/groonga/{ja/html/_sources/tutorial/tutorial03.txt → en/html/_sources/tutorial/data.txt} +5 -5
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/{tutorial05.txt → drilldown.txt} +8 -7
- data/vendor/local/share/doc/groonga/{source/tutorial/tutorial06.txt → en/html/_sources/tutorial/index.txt} +8 -8
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/introduction.txt +297 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/{tutorial09.txt → lexicon.txt} +0 -0
- data/vendor/local/share/doc/groonga/{source/tutorial/tutorial07.txt → en/html/_sources/tutorial/match_columns.txt} +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/{tutorial10.txt → micro_blog.txt} +17 -17
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/network.txt +103 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/{tutorial08.txt → patricia_trie.txt} +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/query_expansion.txt +57 -0
- data/vendor/local/share/doc/groonga/{source/tutorial/tutorial04.txt → en/html/_sources/tutorial/search.txt} +17 -12
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial.txt +11 -2
- data/vendor/local/share/doc/groonga/en/html/_static/groonga.css +9 -0
- data/vendor/local/share/doc/groonga/en/html/characteristic.html +46 -46
- data/vendor/local/share/doc/groonga/en/html/command_version.html +30 -30
- data/vendor/local/share/doc/groonga/en/html/commands/cache_limit.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/check.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/clearlock.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/column_create.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/column_list.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/column_remove.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/define_selector.html +36 -36
- data/vendor/local/share/doc/groonga/en/html/commands/defrag.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/delete.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/dump.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/commands/load.html +36 -36
- data/vendor/local/share/doc/groonga/en/html/commands/log_level.html +36 -36
- data/vendor/local/share/doc/groonga/en/html/commands/log_put.html +36 -36
- data/vendor/local/share/doc/groonga/en/html/commands/log_reopen.html +38 -38
- data/vendor/local/share/doc/groonga/en/html/commands/quit.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/commands/select.html +44 -39
- data/vendor/local/share/doc/groonga/en/html/commands/shutdown.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/commands/status.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/suggest.html +47 -47
- data/vendor/local/share/doc/groonga/en/html/commands/table_create.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/table_list.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/table_remove.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/view_add.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands.html +41 -41
- data/vendor/local/share/doc/groonga/en/html/community.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/contribution/development/document.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/contribution/development.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +13 -7
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/contribution/report.html +12 -12
- data/vendor/local/share/doc/groonga/en/html/contribution.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/executables/grnslap.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/executables/grntest.html +55 -55
- data/vendor/local/share/doc/groonga/en/html/executables/groonga-http.html +30 -30
- data/vendor/local/share/doc/groonga/en/html/executables/groonga-suggest-create-dataset.html +36 -36
- data/vendor/local/share/doc/groonga/en/html/executables/groonga.html +36 -36
- data/vendor/local/share/doc/groonga/en/html/executables.html +22 -22
- data/vendor/local/share/doc/groonga/en/html/expr.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/functions/edit_distance.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/functions/geo_distance.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/functions/geo_in_circle.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/functions/geo_in_rectangle.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/functions/now.html +30 -30
- data/vendor/local/share/doc/groonga/en/html/functions/rand.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/functions.html +23 -23
- data/vendor/local/share/doc/groonga/en/html/genindex.html +17 -17
- data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +176 -0
- data/vendor/local/share/doc/groonga/en/html/index.html +149 -138
- data/vendor/local/share/doc/groonga/en/html/install.html +57 -65
- data/vendor/local/share/doc/groonga/en/html/limitations.html +17 -17
- data/vendor/local/share/doc/groonga/en/html/log.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/news/0.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/senna.html +281 -0
- data/vendor/local/share/doc/groonga/en/html/news.html +219 -65
- data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/en/html/pseudo_column.html +22 -22
- data/vendor/local/share/doc/groonga/en/html/reference.html +69 -69
- data/vendor/local/share/doc/groonga/en/html/search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/en/html/spec/search.html +28 -28
- data/vendor/local/share/doc/groonga/en/html/spec.html +15 -15
- data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +12 -12
- data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/suggest.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +19 -19
- data/vendor/local/share/doc/groonga/en/html/tutorial/{tutorial03.html → data.html} +32 -32
- data/vendor/local/share/doc/groonga/en/html/tutorial/{tutorial05.html → drilldown.html} +31 -31
- data/vendor/local/share/doc/groonga/en/html/tutorial/{tutorial06.html → index.html} +44 -44
- data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +438 -0
- data/vendor/local/share/doc/groonga/en/html/tutorial/{tutorial09.html → lexicon.html} +16 -16
- data/vendor/local/share/doc/groonga/en/html/tutorial/{tutorial07.html → match_columns.html} +39 -39
- data/vendor/local/share/doc/groonga/en/html/tutorial/{tutorial10.html → micro_blog.html} +43 -43
- data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +236 -0
- data/vendor/local/share/doc/groonga/en/html/tutorial/{tutorial08.html → patricia_trie.html} +27 -27
- data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +197 -0
- data/vendor/local/share/doc/groonga/en/html/tutorial/{tutorial04.html → search.html} +41 -35
- data/vendor/local/share/doc/groonga/en/html/tutorial.html +60 -55
- data/vendor/local/share/doc/groonga/en/html/type.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_images/geo-points.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/characteristic.txt +32 -31
- data/vendor/local/share/doc/groonga/ja/html/_sources/commands/select.txt +7 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/documentation/i18n.txt +6 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/executables/grntest.txt +6 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/geolocation_search.txt +52 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/index.txt +1 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/install.txt +31 -40
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/senna.txt +109 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +118 -0
- data/vendor/local/share/doc/groonga/{en/html/_sources/tutorial/tutorial03.txt → ja/html/_sources/tutorial/data.txt} +5 -5
- data/vendor/local/share/doc/groonga/{source/tutorial/tutorial05.txt → ja/html/_sources/tutorial/drilldown.txt} +8 -7
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/{tutorial06.txt → index.txt} +8 -8
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/introduction.txt +297 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/{tutorial09.txt → lexicon.txt} +0 -0
- data/vendor/local/share/doc/groonga/{en/html/_sources/tutorial/tutorial07.txt → ja/html/_sources/tutorial/match_columns.txt} +4 -4
- data/vendor/local/share/doc/groonga/{source/tutorial/tutorial10.txt → ja/html/_sources/tutorial/micro_blog.txt} +17 -17
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/network.txt +103 -0
- data/vendor/local/share/doc/groonga/{source/tutorial/tutorial08.txt → ja/html/_sources/tutorial/patricia_trie.txt} +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/query_expansion.txt +57 -0
- data/vendor/local/share/doc/groonga/{en/html/_sources/tutorial/tutorial04.txt → ja/html/_sources/tutorial/search.txt} +17 -12
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial.txt +11 -2
- data/vendor/local/share/doc/groonga/ja/html/_static/groonga.css +9 -0
- data/vendor/local/share/doc/groonga/ja/html/characteristic.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/command_version.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/commands/cache_limit.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/check.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/clearlock.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/column_create.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/column_list.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/column_remove.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/define_selector.html +36 -36
- data/vendor/local/share/doc/groonga/ja/html/commands/defrag.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/delete.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/dump.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/commands/load.html +36 -36
- data/vendor/local/share/doc/groonga/ja/html/commands/log_level.html +36 -36
- data/vendor/local/share/doc/groonga/ja/html/commands/log_put.html +36 -36
- data/vendor/local/share/doc/groonga/ja/html/commands/log_reopen.html +38 -38
- data/vendor/local/share/doc/groonga/ja/html/commands/quit.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/commands/select.html +44 -39
- data/vendor/local/share/doc/groonga/ja/html/commands/shutdown.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/commands/status.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/suggest.html +47 -47
- data/vendor/local/share/doc/groonga/ja/html/commands/table_create.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/table_list.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/table_remove.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/view_add.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands.html +41 -41
- data/vendor/local/share/doc/groonga/ja/html/community.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/document.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +13 -8
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +12 -12
- data/vendor/local/share/doc/groonga/ja/html/contribution.html +10 -10
- data/vendor/local/share/doc/groonga/ja/html/executables/grnslap.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/executables/grntest.html +55 -55
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga-http.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga-suggest-create-dataset.html +36 -36
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga.html +36 -36
- data/vendor/local/share/doc/groonga/ja/html/executables.html +22 -22
- data/vendor/local/share/doc/groonga/ja/html/expr.html +26 -26
- data/vendor/local/share/doc/groonga/ja/html/functions/edit_distance.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/functions/geo_distance.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_circle.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_rectangle.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/functions/now.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/functions/rand.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/functions.html +23 -23
- data/vendor/local/share/doc/groonga/ja/html/genindex.html +17 -17
- data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +165 -0
- data/vendor/local/share/doc/groonga/ja/html/index.html +144 -133
- data/vendor/local/share/doc/groonga/ja/html/install.html +52 -65
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +17 -17
- data/vendor/local/share/doc/groonga/ja/html/log.html +26 -26
- data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/senna.html +282 -0
- data/vendor/local/share/doc/groonga/ja/html/news.html +203 -63
- data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/ja/html/pseudo_column.html +22 -22
- data/vendor/local/share/doc/groonga/ja/html/reference.html +69 -69
- data/vendor/local/share/doc/groonga/ja/html/search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/ja/html/spec/search.html +28 -28
- data/vendor/local/share/doc/groonga/ja/html/spec.html +15 -15
- data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +12 -12
- data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest.html +10 -10
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +26 -26
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +19 -19
- data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial03.html → data.html} +31 -31
- data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial05.html → drilldown.html} +31 -31
- data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial06.html → index.html} +44 -44
- data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial01.html → introduction.html} +140 -129
- data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial09.html → lexicon.html} +16 -16
- data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial07.html → match_columns.html} +39 -39
- data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial10.html → micro_blog.html} +43 -43
- data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial02.html → network.html} +56 -58
- data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial08.html → patricia_trie.html} +27 -27
- data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +198 -0
- data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial04.html → search.html} +41 -35
- data/vendor/local/share/doc/groonga/ja/html/tutorial.html +59 -54
- data/vendor/local/share/doc/groonga/ja/html/type.html +30 -30
- data/vendor/local/share/doc/groonga/source/characteristic.txt +32 -31
- data/vendor/local/share/doc/groonga/source/commands/select.txt +7 -1
- data/vendor/local/share/doc/groonga/source/commands/suggest-completion.log +5 -0
- data/vendor/local/share/doc/groonga/source/commands/suggest-correction.log +5 -0
- data/vendor/local/share/doc/groonga/source/commands/suggest-learn-completion.log +13 -0
- data/vendor/local/share/doc/groonga/source/commands/suggest-learn-correction.log +15 -0
- data/vendor/local/share/doc/groonga/source/commands/suggest-learn-suggestion.log +9 -0
- data/vendor/local/share/doc/groonga/source/commands/suggest-mixed.log +5 -0
- data/vendor/local/share/doc/groonga/source/commands/suggest-suggestion.log +5 -0
- data/vendor/local/share/doc/groonga/source/conf.py +1 -1
- data/vendor/local/share/doc/groonga/source/contribution/documentation/i18n.txt +6 -0
- data/vendor/local/share/doc/groonga/source/example/completion-1.log +2 -2
- data/vendor/local/share/doc/groonga/source/example/correction-1.log +2 -2
- data/vendor/local/share/doc/groonga/source/example/suggestion-1.log +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial03-1.log → tutorial/data-1.log} +0 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial03-2.log → tutorial/data-2.log} +0 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial03-3.log → tutorial/data-3.log} +0 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial05-1.log → tutorial/drilldown-1.log} +6 -6
- data/vendor/local/share/doc/groonga/source/example/tutorial/drilldown-2.log +5 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial05-3.log → tutorial/drilldown-3.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/drilldown-4.log +5 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial05-5.log → tutorial/drilldown-5.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial05-6.log → tutorial/drilldown-6.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/index-1.log +25 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial06-2.log → tutorial/index-2.log} +4 -4
- data/vendor/local/share/doc/groonga/source/example/tutorial/index-3.log +21 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial06-4.log → tutorial/index-4.log} +3 -3
- data/vendor/local/share/doc/groonga/source/example/{tutorial06-5.log → tutorial/index-5.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial06-6.log → tutorial/index-6.log} +5 -5
- data/vendor/local/share/doc/groonga/source/example/{tutorial06-7.log → tutorial/index-7.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-1.log +18 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-10.log +5 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial01-11.log → tutorial/introduction-11.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial01-12.log → tutorial/introduction-12.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-13.log +5 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-14.log +9 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-15.log +5 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-16.log +5 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial01-17.log → tutorial/introduction-17.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-2.log +10 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-3.log +10 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-4.log +7 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial01-5.log → tutorial/introduction-5.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial01-6.log → tutorial/introduction-6.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial01-7.log → tutorial/introduction-7.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial01-8.log → tutorial/introduction-8.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-9.log +5 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial07-1.log → tutorial/match_columns-1.log} +8 -8
- data/vendor/local/share/doc/groonga/source/example/{tutorial07-2.log → tutorial/match_columns-2.log} +4 -4
- data/vendor/local/share/doc/groonga/source/example/{tutorial07-3.log → tutorial/match_columns-3.log} +7 -7
- data/vendor/local/share/doc/groonga/source/example/{tutorial07-4.log → tutorial/match_columns-4.log} +4 -4
- data/vendor/local/share/doc/groonga/source/example/{tutorial10-1.log → tutorial/micro_blog-1.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial10-10.log → tutorial/micro_blog-10.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial10-2.log → tutorial/micro_blog-2.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial10-3.log → tutorial/micro_blog-3.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial10-4.log → tutorial/micro_blog-4.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial10-5.log → tutorial/micro_blog-5.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/micro_blog-6.log +5 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial10-7.log → tutorial/micro_blog-7.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial10-8.log → tutorial/micro_blog-8.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial10-9.log → tutorial/micro_blog-9.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/network-1.log +8 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial02-2.log → tutorial/network-2.log} +1 -1
- data/vendor/local/share/doc/groonga/source/example/{tutorial02-3.log → tutorial/network-3.log} +3 -3
- data/vendor/local/share/doc/groonga/source/example/{tutorial08-1.log → tutorial/patricia_trie-1.log} +4 -4
- data/vendor/local/share/doc/groonga/source/example/{tutorial08-2.log → tutorial/patricia_trie-2.log} +6 -6
- data/vendor/local/share/doc/groonga/source/example/tutorial/query_expansion-1.log +27 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/query_expansion-2.log +7 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/query_expansion-3.log +7 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial04-1.log → tutorial/search-1.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/search-2.log +7 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/search-3.log +7 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial04-4.log → tutorial/search-4.log} +4 -4
- data/vendor/local/share/doc/groonga/source/example/{tutorial04-5.log → tutorial/search-5.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/search-6.log +5 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial04-7.log → tutorial/search-7.log} +2 -2
- data/vendor/local/share/doc/groonga/source/executables/grntest.txt +6 -6
- data/vendor/local/share/doc/groonga/source/geolocation_search.txt +52 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/array.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/array.svg +188 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/columns.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/columns.svg +501 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/hash-table.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/hash-table.svg +275 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/index-column.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/index-column.svg +899 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/inverted-index.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/inverted-index.svg +249 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/patricia-trie.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/patricia-trie.svg +275 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/prefix-search.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/prefix-search.svg +743 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/record-id.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/record-id.svg +261 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/record.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/record.svg +228 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/scalar-column.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/scalar-column.svg +241 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-bigram-index-column-value.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-bigram-index-column-value.svg +879 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-bigram-token-id.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-bigram-token-id.svg +879 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-bigram.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-bigram.svg +879 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-choose-tokenizer.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-choose-tokenizer.svg +602 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-first-index-column-value.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-first-index-column-value.svg +600 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-first-token-id.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-first-token-id.svg +600 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-initial-state.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-initial-state.svg +600 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-on-key-table.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-on-key-table.svg +917 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-result.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-result.svg +600 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-second-index-column-value.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-second-index-column-value.svg +600 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-second-token-id.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-second-token-id.svg +600 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/tokenizer.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/tokenizer.svg +561 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-initial.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-initial.svg +389 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-process-first-data-first-token.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-process-first-data-first-token.svg +469 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-process-first-data-second-token.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-process-first-data-second-token.svg +514 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-process-second-data-first-token.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-process-second-data-first-token.svg +595 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-process-second-data-second-token.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-process-second-data-second-token.svg +600 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-save-first-data.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-save-first-data.svg +424 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-save-second-data.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-save-second-data.svg +549 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/vector-column.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/vector-column.svg +241 -0
- data/vendor/local/share/doc/groonga/source/images/geo-encode-leading-2bit.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/geo-encode-leading-2bit.svg +203 -0
- data/vendor/local/share/doc/groonga/source/images/geo-encode-leading-4bit.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/geo-encode-leading-4bit.svg +264 -0
- data/vendor/local/share/doc/groonga/source/images/geo-in-rectangle.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/geo-points-distance.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/geo-points-distance.svg +317 -0
- data/vendor/local/share/doc/groonga/source/images/geo-points-in-circle.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/geo-points-in-circle.svg +306 -0
- data/vendor/local/share/doc/groonga/source/images/geo-points-in-rectangle.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/geo-points-in-rectangle.svg +304 -0
- data/vendor/local/share/doc/groonga/source/images/geo-points-sort.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/geo-points-sort.svg +383 -0
- data/vendor/local/share/doc/groonga/source/images/geo-points.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/geo-points.svg +296 -0
- data/vendor/local/share/doc/groonga/source/images/geo-search-in-circle.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/geo-search-in-circle.svg +287 -0
- data/vendor/local/share/doc/groonga/source/images/geo-search-in-rectangle.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/geo-search-in-rectangle.svg +174 -0
- data/vendor/local/share/doc/groonga/source/index.txt +1 -0
- data/vendor/local/share/doc/groonga/source/install.txt +31 -40
- data/vendor/local/share/doc/groonga/source/news/senna.txt +109 -0
- data/vendor/local/share/doc/groonga/source/news.txt +118 -0
- data/vendor/local/share/doc/groonga/source/tutorial/{tutorial03.txt → data.txt} +5 -5
- data/vendor/local/share/doc/groonga/{ja/html/_sources/tutorial/tutorial05.txt → source/tutorial/drilldown.txt} +8 -7
- data/vendor/local/share/doc/groonga/{en/html/_sources/tutorial/tutorial06.txt → source/tutorial/index.txt} +8 -8
- data/vendor/local/share/doc/groonga/source/tutorial/introduction.txt +297 -0
- data/vendor/local/share/doc/groonga/source/tutorial/{tutorial09.txt → lexicon.txt} +0 -0
- data/vendor/local/share/doc/groonga/{ja/html/_sources/tutorial/tutorial07.txt → source/tutorial/match_columns.txt} +4 -4
- data/vendor/local/share/doc/groonga/{ja/html/_sources/tutorial/tutorial10.txt → source/tutorial/micro_blog.txt} +17 -17
- data/vendor/local/share/doc/groonga/source/tutorial/network.txt +103 -0
- data/vendor/local/share/doc/groonga/{ja/html/_sources/tutorial/tutorial08.txt → source/tutorial/patricia_trie.txt} +4 -4
- data/vendor/local/share/doc/groonga/source/tutorial/query_expansion.txt +57 -0
- data/vendor/local/share/doc/groonga/{ja/html/_sources/tutorial/tutorial04.txt → source/tutorial/search.txt} +17 -12
- data/vendor/local/share/doc/groonga/source/tutorial.txt +11 -2
- data/vendor/local/share/man/ja/man1/groonga.1 +449 -772
- data/vendor/local/share/man/man1/groonga.1 +591 -875
- metadata +232 -124
- data/vendor/local/etc/groonga/init.d/redhat/groonga +0 -160
- data/vendor/local/etc/groonga/init.d/redhat/sysconfig/groonga +0 -8
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/tutorial01.txt +0 -296
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/tutorial02.txt +0 -102
- data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial01.html +0 -409
- data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial02.html +0 -235
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/tutorial01.txt +0 -296
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/tutorial02.txt +0 -102
- data/vendor/local/share/doc/groonga/source/example/tutorial01-1.log +0 -6
- data/vendor/local/share/doc/groonga/source/example/tutorial01-10.log +0 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial01-13.log +0 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial01-14.log +0 -9
- data/vendor/local/share/doc/groonga/source/example/tutorial01-15.log +0 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial01-16.log +0 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial01-2.log +0 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial01-3.log +0 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial01-4.log +0 -7
- data/vendor/local/share/doc/groonga/source/example/tutorial01-9.log +0 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial02-1.log +0 -8
- data/vendor/local/share/doc/groonga/source/example/tutorial04-2.log +0 -7
- data/vendor/local/share/doc/groonga/source/example/tutorial04-3.log +0 -7
- data/vendor/local/share/doc/groonga/source/example/tutorial04-6.log +0 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial05-2.log +0 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial05-4.log +0 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial06-1.log +0 -25
- data/vendor/local/share/doc/groonga/source/example/tutorial06-3.log +0 -21
- data/vendor/local/share/doc/groonga/source/example/tutorial10-6.log +0 -5
- data/vendor/local/share/doc/groonga/source/tutorial/tutorial01.txt +0 -296
- data/vendor/local/share/doc/groonga/source/tutorial/tutorial02.txt +0 -102
- data/vendor/local/share/groonga/munin/plugins/groonga_cpu_load +0 -47
- data/vendor/local/share/groonga/munin/plugins/groonga_cpu_time +0 -57
- data/vendor/local/share/groonga/munin/plugins/groonga_disk +0 -162
- data/vendor/local/share/groonga/munin/plugins/groonga_memory +0 -51
- data/vendor/local/share/groonga/munin/plugins/groonga_n_records +0 -110
- data/vendor/local/share/groonga/munin/plugins/groonga_query_performance +0 -133
- data/vendor/local/share/groonga/munin/plugins/groonga_status +0 -84
@@ -1,57 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
#%# family=auto
|
4
|
-
#%# capabilities=autoconf
|
5
|
-
|
6
|
-
label = ENV["label"]
|
7
|
-
pid_file = ENV["pid_file"]
|
8
|
-
|
9
|
-
command = ARGV.shift
|
10
|
-
|
11
|
-
case command
|
12
|
-
when "autoconf", "detect"
|
13
|
-
if pid_file.nil?
|
14
|
-
puts "no (PID file isn't specified by env.pid_file)"
|
15
|
-
exit(false)
|
16
|
-
elsif File.exist?(pid_file)
|
17
|
-
puts "yes"
|
18
|
-
exit(true)
|
19
|
-
else
|
20
|
-
puts "no (PID file doesn't exist: #{pid_file})"
|
21
|
-
exit(false)
|
22
|
-
end
|
23
|
-
when "config"
|
24
|
-
if label
|
25
|
-
title = "groonga: #{label}: CPU time"
|
26
|
-
else
|
27
|
-
title = "groonga: CPU time"
|
28
|
-
end
|
29
|
-
puts <<EOF
|
30
|
-
graph_title #{title}
|
31
|
-
graph_vlabel CPU time (days)
|
32
|
-
graph_category groonga
|
33
|
-
graph_info groonga CPU time
|
34
|
-
|
35
|
-
cpu_time.label CPU time
|
36
|
-
cpu_time.type GAUGE
|
37
|
-
EOF
|
38
|
-
exit(true)
|
39
|
-
end
|
40
|
-
|
41
|
-
groonga_pid = File.read(pid_file).strip
|
42
|
-
time = `ps h -o time -p #{groonga_pid}`.chomp
|
43
|
-
if /\A(?:(\d+)-)?(\d+):(\d+):(\d+)\z/ =~ time
|
44
|
-
day, hours, minutes, seconds, = $1, $2, $3, $4
|
45
|
-
day = (day || 0).to_i
|
46
|
-
hours = hours.to_i
|
47
|
-
minutes = minutes.to_i
|
48
|
-
seconds = seconds.to_i
|
49
|
-
time_in_seconds = seconds + minutes * 60 + hours * 60 * 60
|
50
|
-
day_in_seconds = 60 * 60 * 24
|
51
|
-
fraction_in_day = time_in_seconds.to_f / day_in_seconds.to_f
|
52
|
-
cpu_time_in_day = day + fraction_in_day
|
53
|
-
puts "cpu_time.value #{cpu_time_in_day}"
|
54
|
-
else
|
55
|
-
puts "invalid time format: <#{time}>"
|
56
|
-
exit(false)
|
57
|
-
end
|
@@ -1,162 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
#%# family=auto
|
4
|
-
#%# capabilities=autoconf
|
5
|
-
|
6
|
-
require 'shellwords'
|
7
|
-
require 'json'
|
8
|
-
require 'English'
|
9
|
-
|
10
|
-
label = ENV["label"]
|
11
|
-
@groonga = ENV["groonga"] || "groonga"
|
12
|
-
@du = ENV["du"] || "du"
|
13
|
-
@path = ENV["path"]
|
14
|
-
|
15
|
-
command = ARGV.shift
|
16
|
-
|
17
|
-
def parse(success, result)
|
18
|
-
if success
|
19
|
-
begin
|
20
|
-
status, body = JSON.parse(result)
|
21
|
-
return_code, start_time, elapsed, error_message = status
|
22
|
-
if return_code.zero?
|
23
|
-
[success, body]
|
24
|
-
else
|
25
|
-
[false, error_message]
|
26
|
-
end
|
27
|
-
rescue JSON::ParserError
|
28
|
-
[false, $!.message]
|
29
|
-
end
|
30
|
-
else
|
31
|
-
[success, result]
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
def run(command, *args)
|
36
|
-
path = Shellwords.shellescape(@path)
|
37
|
-
result = `#{@groonga} #{path} #{command} #{args.join(' ')} 2>&1`
|
38
|
-
parse($?.success?, result)
|
39
|
-
end
|
40
|
-
|
41
|
-
def parse_list(header, list)
|
42
|
-
list.collect do |item|
|
43
|
-
parsed_item = {}
|
44
|
-
header.each_with_index do |(name, type), i|
|
45
|
-
parsed_item[name] = item[i]
|
46
|
-
end
|
47
|
-
parsed_item
|
48
|
-
end
|
49
|
-
end
|
50
|
-
|
51
|
-
def schema
|
52
|
-
tables = []
|
53
|
-
success, table_list_body = run("table_list")
|
54
|
-
unless success
|
55
|
-
puts "error: #{table_list_body}"
|
56
|
-
exit(false)
|
57
|
-
end
|
58
|
-
parse_list(table_list_body[0], table_list_body[1..-1]).each do |table|
|
59
|
-
table_name = table["name"]
|
60
|
-
table["key"] = "table_#{table_name}"
|
61
|
-
success, column_list_body = run("column_list", table_name)
|
62
|
-
unless success
|
63
|
-
puts "error: #{column_list_body}"
|
64
|
-
exit(false)
|
65
|
-
end
|
66
|
-
table["columns"] = parse_list(column_list_body[0], column_list_body[1..-1])
|
67
|
-
table["columns"].each do |column|
|
68
|
-
column["key"] = "column_#{table_name}_#{column['name']}"
|
69
|
-
column["full_name"] = "#{table_name}.#{column['name']}"
|
70
|
-
end
|
71
|
-
tables << table
|
72
|
-
end
|
73
|
-
tables
|
74
|
-
end
|
75
|
-
|
76
|
-
def parse_du_result(result)
|
77
|
-
usages = {}
|
78
|
-
result.each_line do |line|
|
79
|
-
if /\A(\d+)\s+/ =~ line
|
80
|
-
usage = $1
|
81
|
-
path = $POSTMATCH.strip
|
82
|
-
usages[path] = usage.to_i
|
83
|
-
end
|
84
|
-
end
|
85
|
-
usages
|
86
|
-
end
|
87
|
-
|
88
|
-
case command
|
89
|
-
when "autoconf", "detect"
|
90
|
-
success, body = run("status")
|
91
|
-
if success
|
92
|
-
puts "yes"
|
93
|
-
exit(true)
|
94
|
-
else
|
95
|
-
puts "no (#{body})"
|
96
|
-
exit(false)
|
97
|
-
end
|
98
|
-
when "config"
|
99
|
-
if label.nil?
|
100
|
-
title = "groonga: disk usage"
|
101
|
-
else
|
102
|
-
title = "groonga: #{label}: disk usage"
|
103
|
-
end
|
104
|
-
puts <<EOF
|
105
|
-
graph_title #{title}
|
106
|
-
graph_vlabel Bytes
|
107
|
-
graph_category groonga
|
108
|
-
graph_info disk usage in groonga tables and columns
|
109
|
-
graph_args --base 1024
|
110
|
-
graph_total Total
|
111
|
-
|
112
|
-
database.label Database
|
113
|
-
database.draw AREA
|
114
|
-
EOF
|
115
|
-
schema.each do |table|
|
116
|
-
table_key = table["key"]
|
117
|
-
table_name = table["name"]
|
118
|
-
puts <<EOF
|
119
|
-
|
120
|
-
#{table_key}.label #{table_name}
|
121
|
-
#{table_key}.draw STACK
|
122
|
-
EOF
|
123
|
-
table["columns"].each do |column|
|
124
|
-
column_key = column["key"]
|
125
|
-
column_name = column["full_name"]
|
126
|
-
puts <<EOF
|
127
|
-
|
128
|
-
#{column_key}.label #{column_name}
|
129
|
-
#{column_key}.draw STACK
|
130
|
-
EOF
|
131
|
-
end
|
132
|
-
end
|
133
|
-
exit(true)
|
134
|
-
end
|
135
|
-
|
136
|
-
path = Shellwords.shellescape(@path)
|
137
|
-
du_result = `#{@du} -B1 #{path}*`
|
138
|
-
unless $?.success?
|
139
|
-
puts("error: #{du_result}")
|
140
|
-
exit(false)
|
141
|
-
end
|
142
|
-
usages = parse_du_result(du_result)
|
143
|
-
usage = usages[@path] || 0
|
144
|
-
puts <<EOF
|
145
|
-
database.value #{usage}
|
146
|
-
EOF
|
147
|
-
schema.each do |table|
|
148
|
-
table_key = table["key"]
|
149
|
-
table_name = table["name"]
|
150
|
-
usage = usages[table["path"]] || 0
|
151
|
-
puts <<EOF
|
152
|
-
#{table_key}.value #{usage}
|
153
|
-
EOF
|
154
|
-
table["columns"].each do |column|
|
155
|
-
column_key = column["key"]
|
156
|
-
usage = usages[column["path"]] || 0
|
157
|
-
usage += usages["#{column['path']}.c"] || 0
|
158
|
-
puts <<EOF
|
159
|
-
#{column_key}.value #{usage}
|
160
|
-
EOF
|
161
|
-
end
|
162
|
-
end
|
@@ -1,51 +0,0 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
|
3
|
-
#%# family=auto
|
4
|
-
#%# capabilities=autoconf
|
5
|
-
|
6
|
-
case "$1" in
|
7
|
-
autoconf|detect)
|
8
|
-
if [ -z "${pid_file}" ]; then
|
9
|
-
echo "no (PID file isn't specified by env.pid_file)"
|
10
|
-
exit 1
|
11
|
-
elif [ -f "${pid_file}" ]; then
|
12
|
-
echo "yes"
|
13
|
-
exit 0
|
14
|
-
else
|
15
|
-
echo "no (PID file doesn't exist: ${pid_file})"
|
16
|
-
exit 1
|
17
|
-
fi
|
18
|
-
;;
|
19
|
-
config)
|
20
|
-
if [ -z "${label}" ]; then
|
21
|
-
title="groonga: memory usage"
|
22
|
-
else
|
23
|
-
title="groonga: ${label}: memory usage"
|
24
|
-
fi
|
25
|
-
cat <<EOF
|
26
|
-
graph_title ${title}
|
27
|
-
graph_vlabel memory usage
|
28
|
-
graph_category groonga
|
29
|
-
graph_info groonga memory usage
|
30
|
-
|
31
|
-
rss.label resident set size
|
32
|
-
rss.type GAUGE
|
33
|
-
vsz.label virtual memory size
|
34
|
-
vsz.type GAUGE
|
35
|
-
EOF
|
36
|
-
exit 0
|
37
|
-
;;
|
38
|
-
*)
|
39
|
-
esac
|
40
|
-
|
41
|
-
if [ -z "${pid_file}" ]; then
|
42
|
-
echo "PID file isn't specified by env.pid_file"
|
43
|
-
exit 1
|
44
|
-
fi
|
45
|
-
|
46
|
-
groonga_pid=$(cat ${pid_file})
|
47
|
-
read rss_in_kb vsz_in_kb <<EOC
|
48
|
-
$(ps h -o rss,vsz -p ${groonga_pid})
|
49
|
-
EOC
|
50
|
-
echo "rss.value ${rss_in_kb}000"
|
51
|
-
echo "vsz.value ${vsz_in_kb}000"
|
@@ -1,110 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
#%# family=auto
|
4
|
-
#%# capabilities=autoconf
|
5
|
-
|
6
|
-
require 'shellwords'
|
7
|
-
require 'json'
|
8
|
-
|
9
|
-
label = ENV["label"]
|
10
|
-
@groonga = ENV["groonga"] || "groonga"
|
11
|
-
@host = ENV["host"] || "localhost"
|
12
|
-
@port = ENV["port"] || 10041
|
13
|
-
@path = ENV["path"]
|
14
|
-
|
15
|
-
command = ARGV.shift
|
16
|
-
|
17
|
-
def parse(success, result)
|
18
|
-
if success
|
19
|
-
begin
|
20
|
-
status, body = JSON.parse(result)
|
21
|
-
return_code, start_time, elapsed, error_message = status
|
22
|
-
if return_code.zero?
|
23
|
-
[success, body]
|
24
|
-
else
|
25
|
-
[false, error_message]
|
26
|
-
end
|
27
|
-
rescue JSON::ParserError
|
28
|
-
[false, $!.message]
|
29
|
-
end
|
30
|
-
else
|
31
|
-
[success, result]
|
32
|
-
end
|
33
|
-
end
|
34
|
-
|
35
|
-
def run(command, *args)
|
36
|
-
if @path
|
37
|
-
path = Shellwords.shellescape(@path)
|
38
|
-
result = `#{@groonga} #{path} #{command} #{args.join(' ')} 2>&1`
|
39
|
-
else
|
40
|
-
groonga = "#{@groonga} -p #{@port} -c #{@host}"
|
41
|
-
result = `#{groonga} #{command} #{args.join(' ')} 2>&1`
|
42
|
-
end
|
43
|
-
parse($?.success?, result)
|
44
|
-
end
|
45
|
-
|
46
|
-
def parse_list(header, list)
|
47
|
-
list.collect do |item|
|
48
|
-
parsed_item = {}
|
49
|
-
header.each_with_index do |(name, type), i|
|
50
|
-
parsed_item[name] = item[i]
|
51
|
-
end
|
52
|
-
parsed_item
|
53
|
-
end
|
54
|
-
end
|
55
|
-
|
56
|
-
case command
|
57
|
-
when "autoconf", "detect"
|
58
|
-
success, body = run("status")
|
59
|
-
if success
|
60
|
-
puts "yes"
|
61
|
-
exit(true)
|
62
|
-
else
|
63
|
-
puts "no (#{body})"
|
64
|
-
exit(false)
|
65
|
-
end
|
66
|
-
when "config"
|
67
|
-
if label.nil?
|
68
|
-
title = "groonga: number of records"
|
69
|
-
else
|
70
|
-
title = "groonga: #{label}: number of records"
|
71
|
-
end
|
72
|
-
puts <<EOF
|
73
|
-
graph_title #{title}
|
74
|
-
graph_vlabel records
|
75
|
-
graph_category groonga
|
76
|
-
graph_info number of records in groonga table
|
77
|
-
EOF
|
78
|
-
success, body = run("table_list")
|
79
|
-
unless success
|
80
|
-
puts "error: #{body}"
|
81
|
-
exit(false)
|
82
|
-
end
|
83
|
-
parse_list(body[0], body[1..-1]).each do |table|
|
84
|
-
name = table["name"]
|
85
|
-
puts <<EOF
|
86
|
-
|
87
|
-
#{name}.label #{name}
|
88
|
-
#{name}.type GAUGE
|
89
|
-
EOF
|
90
|
-
end
|
91
|
-
exit(true)
|
92
|
-
end
|
93
|
-
|
94
|
-
success, body = run("table_list")
|
95
|
-
unless success
|
96
|
-
puts("error: #{body}")
|
97
|
-
exit(false)
|
98
|
-
end
|
99
|
-
parse_list(body[0], body[1..-1]).each do |table|
|
100
|
-
name = table["name"]
|
101
|
-
success, body = run("select", "#{name} --limit 0")
|
102
|
-
unless success
|
103
|
-
puts("error: #{body}")
|
104
|
-
exit(false)
|
105
|
-
end
|
106
|
-
n_records = body[0][0][0]
|
107
|
-
puts <<EOF
|
108
|
-
#{name}.value #{n_records}
|
109
|
-
EOF
|
110
|
-
end
|
@@ -1,133 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
#%# family=auto
|
4
|
-
#%# capabilities=autoconf
|
5
|
-
|
6
|
-
require 'English'
|
7
|
-
require 'strscan'
|
8
|
-
|
9
|
-
label = ENV["label"]
|
10
|
-
|
11
|
-
@log_path = ENV["log_path"]
|
12
|
-
|
13
|
-
command = ARGV.shift
|
14
|
-
|
15
|
-
case command
|
16
|
-
when "autoconf", "detect"
|
17
|
-
if @log_path.nil?
|
18
|
-
puts "no (query log file path isn't specified by env.log_path)"
|
19
|
-
exit(false)
|
20
|
-
end
|
21
|
-
unless File.readable?(@log_path)
|
22
|
-
puts "no (query log file isn't readable: <#{@log_path}>)"
|
23
|
-
exit(false)
|
24
|
-
end
|
25
|
-
puts "yes"
|
26
|
-
exit(true)
|
27
|
-
when "config"
|
28
|
-
if label.nil?
|
29
|
-
title = "groonga: query performance"
|
30
|
-
else
|
31
|
-
title = "groonga: #{label}: query performance"
|
32
|
-
end
|
33
|
-
puts <<EOF
|
34
|
-
graph_title #{title}
|
35
|
-
graph_vlabel seconds
|
36
|
-
graph_category groonga
|
37
|
-
graph_info groonga query performance
|
38
|
-
|
39
|
-
longest.label Longest
|
40
|
-
average.label Average
|
41
|
-
median.label Median
|
42
|
-
EOF
|
43
|
-
exit(true)
|
44
|
-
end
|
45
|
-
|
46
|
-
class ReverseLineReader
|
47
|
-
def initialize(io)
|
48
|
-
@io = io
|
49
|
-
@io.seek(0, IO::SEEK_END)
|
50
|
-
@buffer = ""
|
51
|
-
@data = ""
|
52
|
-
end
|
53
|
-
|
54
|
-
def each
|
55
|
-
separator = $/
|
56
|
-
separator_length = separator.length
|
57
|
-
while read_to_buffer
|
58
|
-
loop do
|
59
|
-
index = @buffer.rindex(separator, @buffer.length - 1 - separator_length)
|
60
|
-
break if index.nil? or index.zero?
|
61
|
-
last_line = @buffer.slice!((index + separator_length)..-1)
|
62
|
-
yield(last_line)
|
63
|
-
end
|
64
|
-
end
|
65
|
-
yield(@buffer) unless @buffer.empty?
|
66
|
-
end
|
67
|
-
|
68
|
-
private
|
69
|
-
BYTES_PER_READ = 4096
|
70
|
-
def read
|
71
|
-
position = @io.pos
|
72
|
-
if position < BYTES_PER_READ
|
73
|
-
bytes_per_read = position
|
74
|
-
else
|
75
|
-
bytes_per_read = BYTES_PER_READ
|
76
|
-
end
|
77
|
-
|
78
|
-
if bytes_per_read.zero?
|
79
|
-
@data.replace("")
|
80
|
-
else
|
81
|
-
@io.seek(-bytes_per_read, IO::SEEK_CUR)
|
82
|
-
@io.read(bytes_per_read, @data)
|
83
|
-
@io.seek(-bytes_per_read, IO::SEEK_CUR)
|
84
|
-
end
|
85
|
-
|
86
|
-
@data
|
87
|
-
end
|
88
|
-
|
89
|
-
def read_to_buffer
|
90
|
-
data = read
|
91
|
-
if data.empty?
|
92
|
-
false
|
93
|
-
else
|
94
|
-
@buffer.insert(0, data)
|
95
|
-
true
|
96
|
-
end
|
97
|
-
end
|
98
|
-
end
|
99
|
-
|
100
|
-
span = 60 * 5 # 5min
|
101
|
-
mega = 1_000_000.0
|
102
|
-
now = Time.now
|
103
|
-
elapsed_times = []
|
104
|
-
File.open(@log_path) do |log_file|
|
105
|
-
ReverseLineReader.new(log_file).each do |line|
|
106
|
-
case line
|
107
|
-
when /\A(\d+)-(\d+)-(\d+) (\d+):(\d+):(\d+)\.(\d+)\|([\da-f])+\|<(\d+) rc=0$/
|
108
|
-
_, year, month, day, hour, minutes, seconds, milliseconds,
|
109
|
-
context, elapsed = $LAST_MATCH_INFO.to_a
|
110
|
-
time_stamp = Time.local(year, month, day,
|
111
|
-
hour, minutes, seconds, milliseconds)
|
112
|
-
difference = now - time_stamp
|
113
|
-
break if difference > span
|
114
|
-
elapsed_in_micro_seconds = elapsed.to_i / mega
|
115
|
-
elapsed_times << elapsed_in_micro_seconds
|
116
|
-
end
|
117
|
-
end
|
118
|
-
end
|
119
|
-
|
120
|
-
sorted_elapsed_times = elapsed_times.sort
|
121
|
-
if sorted_elapsed_times.empty?
|
122
|
-
longest = 0
|
123
|
-
average = 0
|
124
|
-
median = 0
|
125
|
-
else
|
126
|
-
longest = sorted_elapsed_times.last
|
127
|
-
average = sorted_elapsed_times.inject(&:+) / sorted_elapsed_times.size.to_f
|
128
|
-
median = sorted_elapsed_times[sorted_elapsed_times.size / 2]
|
129
|
-
end
|
130
|
-
|
131
|
-
puts "longest.value #{longest}"
|
132
|
-
puts "average.value #{average}"
|
133
|
-
puts "median.value #{median}"
|
@@ -1,84 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
#%# family=auto
|
4
|
-
#%# capabilities=autoconf
|
5
|
-
|
6
|
-
require 'json'
|
7
|
-
|
8
|
-
label = ENV["label"]
|
9
|
-
@groonga = ENV["groonga"] || "groonga"
|
10
|
-
@host = ENV["host"] || "localhost"
|
11
|
-
@port = ENV["port"] || 10041
|
12
|
-
|
13
|
-
command = ARGV.shift
|
14
|
-
|
15
|
-
def parse(success, result)
|
16
|
-
if success
|
17
|
-
begin
|
18
|
-
status, body = JSON.parse(result)
|
19
|
-
return_code, start_time, elapsed, error_message = status
|
20
|
-
if return_code.zero?
|
21
|
-
[success, body]
|
22
|
-
else
|
23
|
-
[false, error_message]
|
24
|
-
end
|
25
|
-
rescue JSON::ParserError
|
26
|
-
[false, $!.message]
|
27
|
-
end
|
28
|
-
else
|
29
|
-
[success, result]
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
def run(command, *args)
|
34
|
-
groonga = "#{@groonga} -p #{@port} -c #{@host}"
|
35
|
-
result = `#{groonga} #{command} #{args.join(' ')} 2>&1`
|
36
|
-
parse($?.success?, result)
|
37
|
-
end
|
38
|
-
|
39
|
-
def parse_list(header, list)
|
40
|
-
list.collect do |item|
|
41
|
-
parsed_item = {}
|
42
|
-
header.each_with_index do |(name, type), i|
|
43
|
-
parsed_item[name] = item[i]
|
44
|
-
end
|
45
|
-
parsed_item
|
46
|
-
end
|
47
|
-
end
|
48
|
-
|
49
|
-
case command
|
50
|
-
when "autoconf", "detect"
|
51
|
-
success, body = run("status")
|
52
|
-
if success
|
53
|
-
puts "yes"
|
54
|
-
exit(true)
|
55
|
-
else
|
56
|
-
puts "no (#{body})"
|
57
|
-
exit(false)
|
58
|
-
end
|
59
|
-
when "config"
|
60
|
-
if label.nil?
|
61
|
-
title = "groonga: status"
|
62
|
-
else
|
63
|
-
title = "groonga: #{label}: status"
|
64
|
-
end
|
65
|
-
puts <<EOF
|
66
|
-
graph_title #{title}
|
67
|
-
graph_vlabel status
|
68
|
-
graph_category groonga
|
69
|
-
graph_info groonga status
|
70
|
-
|
71
|
-
alloc_count.label alloc count
|
72
|
-
alloc_count.type GAUGE
|
73
|
-
EOF
|
74
|
-
exit(true)
|
75
|
-
end
|
76
|
-
|
77
|
-
success, body = run("status")
|
78
|
-
unless success
|
79
|
-
puts("error: #{body}")
|
80
|
-
exit(false)
|
81
|
-
end
|
82
|
-
puts <<EOF
|
83
|
-
alloc_count.value #{body["alloc_count"]}
|
84
|
-
EOF
|