rroonga 2.0.0-x86-mingw32 → 2.0.1-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +3 -2
- data/ext/groonga/rb-grn-expression.c +4 -3
- data/ext/groonga/rb-grn-object.c +13 -0
- data/ext/groonga/rb-grn-snippet.c +32 -126
- data/ext/groonga/rb-grn.h +14 -11
- data/lib/1.8/groonga.so +0 -0
- data/lib/1.9/groonga.so +0 -0
- data/rroonga-build.rb +1 -1
- data/vendor/local/bin/{grntest.exe → groonga-benchmark.exe} +0 -0
- 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/libmsgpack-3.dll +0 -0
- data/vendor/local/bin/libmsgpackc-2.dll +0 -0
- data/vendor/local/bin/mecab.exe +0 -0
- data/vendor/local/include/groonga/groonga/plugin.h +1 -1
- data/vendor/local/include/groonga/groonga.h +10 -3
- 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/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/libgroonga.a +0 -0
- data/vendor/local/lib/libgroonga.dll.a +0 -0
- data/vendor/local/lib/libmecab.a +0 -0
- data/vendor/local/lib/libmecab.dll.a +0 -0
- data/vendor/local/lib/libmsgpack.a +0 -0
- data/vendor/local/lib/libmsgpack.dll.a +0 -0
- data/vendor/local/lib/libmsgpackc.a +0 -0
- data/vendor/local/lib/libmsgpackc.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/groonga.pc +2 -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/_sources/commands/suggest.txt +19 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/community.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/install.txt +72 -8
- data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +45 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/data.txt +112 -33
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/introduction.txt +109 -99
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/network.txt +76 -40
- data/vendor/local/share/doc/groonga/en/html/_sources/type.txt +30 -21
- data/vendor/local/share/doc/groonga/en/html/_static/favicon.ico +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/groonga.css +309 -101
- data/vendor/local/share/doc/groonga/en/html/_static/jquery.js +4 -154
- data/vendor/local/share/doc/groonga/en/html/_static/logo.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/navigation-bar.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/underscore.js +29 -21
- data/vendor/local/share/doc/groonga/en/html/characteristic.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/command_version.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/cache_limit.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/check.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/clearlock.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/column_create.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/column_list.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/column_remove.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/define_selector.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/defrag.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/delete.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/dump.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/load.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/log_level.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/log_put.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/log_reopen.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/quit.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/select.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/shutdown.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/status.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/suggest.html +21 -1
- data/vendor/local/share/doc/groonga/en/html/commands/table_create.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/table_list.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/table_remove.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/view_add.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/community.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/contribution/development/document.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/contribution/development.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/contribution/report.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/contribution.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/executables/grnslap.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/executables/grntest.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/executables/groonga-http.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/executables/groonga-suggest-create-dataset.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/executables/groonga.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/executables.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/expr.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/functions/edit_distance.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/functions/geo_distance.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/functions/geo_in_circle.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/functions/geo_in_rectangle.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/functions/now.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/functions/rand.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/functions.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/genindex.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/index.html +25 -18
- data/vendor/local/share/doc/groonga/en/html/indexing.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/install.html +59 -9
- data/vendor/local/share/doc/groonga/en/html/limitations.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/log.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/news/0.x.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/news/senna.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/news.html +66 -15
- data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/en/html/output.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/pseudo_column.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/reference.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/search.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/en/html/spec/search.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/spec.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/suggest.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +141 -53
- data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +112 -106
- data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +2 -2
- data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +92 -58
- data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial.html +21 -14
- data/vendor/local/share/doc/groonga/en/html/type.html +30 -22
- data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/commands/suggest.txt +19 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/community.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/install.txt +72 -8
- data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +45 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/data.txt +112 -33
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/introduction.txt +109 -99
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/network.txt +76 -40
- data/vendor/local/share/doc/groonga/ja/html/_sources/type.txt +30 -21
- data/vendor/local/share/doc/groonga/ja/html/_static/favicon.ico +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/groonga.css +309 -101
- data/vendor/local/share/doc/groonga/ja/html/_static/jquery.js +4 -154
- data/vendor/local/share/doc/groonga/ja/html/_static/logo.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/navigation-bar.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/underscore.js +29 -21
- data/vendor/local/share/doc/groonga/ja/html/characteristic.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/command_version.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/cache_limit.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/check.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/clearlock.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/column_create.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/column_list.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/column_remove.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/define_selector.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/defrag.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/delete.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/dump.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/load.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/log_level.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/log_put.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/log_reopen.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/quit.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/select.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/shutdown.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/status.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/suggest.html +19 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/table_create.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/table_list.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/table_remove.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/view_add.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/community.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/document.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/contribution.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/executables/grnslap.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/executables/grntest.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga-http.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga-suggest-create-dataset.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/executables.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/expr.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/functions/edit_distance.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/functions/geo_distance.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_circle.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_rectangle.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/functions/now.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/functions/rand.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/functions.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/genindex.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/index.html +25 -18
- data/vendor/local/share/doc/groonga/ja/html/indexing.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/install.html +72 -22
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/log.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/news/senna.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/news.html +60 -14
- data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/ja/html/output.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/pseudo_column.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/reference.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/search.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/ja/html/spec/search.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/spec.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/suggest.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +141 -53
- data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +108 -102
- data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +2 -2
- data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +92 -55
- data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial.html +21 -14
- data/vendor/local/share/doc/groonga/ja/html/type.html +30 -22
- data/vendor/local/share/doc/groonga/source/commands/suggest.txt +19 -0
- data/vendor/local/share/doc/groonga/source/community.txt +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-1.log +2 -15
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-2.log +11 -7
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-3.log +13 -7
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-4.log +13 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-5.log +13 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-6.log +13 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-7.log +10 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-8.log +10 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-1.log +0 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-10.log +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-11.log +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-12.log +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-13.log +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-14.log +2 -6
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-15.log +6 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-16.log +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-17.log +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-18.log +5 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-2.log +3 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-3.log +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-4.log +1 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-5.log +4 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-6.log +13 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-7.log +2 -13
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-8.log +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-9.log +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/network-1.log +1 -1
- data/vendor/local/share/doc/groonga/source/example/tutorial/network-3.log +6 -6
- data/vendor/local/share/doc/groonga/source/install.txt +72 -8
- data/vendor/local/share/doc/groonga/source/news.txt +45 -1
- data/vendor/local/share/doc/groonga/source/tutorial/data.txt +112 -33
- data/vendor/local/share/doc/groonga/source/tutorial/introduction.txt +109 -99
- data/vendor/local/share/doc/groonga/source/tutorial/network.txt +76 -40
- data/vendor/local/share/doc/groonga/source/type.txt +30 -21
- data/vendor/local/share/groonga/html/admin/css/admin.css +1 -1
- data/vendor/local/share/groonga/html/admin/favicon.ico +0 -0
- data/vendor/local/share/groonga/html/admin/favicon.png +0 -0
- data/vendor/local/share/groonga/html/admin/favicon.svg +107 -547
- data/vendor/local/share/groonga/html/admin/images/groonga.png +0 -0
- data/vendor/local/share/groonga/html/admin/index.html +1 -1
- data/vendor/local/share/groonga/images/logo/groonga-icon-foreground-white.png +0 -0
- data/vendor/local/share/groonga/images/logo/groonga-icon-foreground-white.svg +118 -0
- data/vendor/local/share/groonga/images/logo/groonga-icon-full-size.png +0 -0
- data/vendor/local/share/groonga/images/logo/groonga-icon-full-size.svg +97 -0
- data/vendor/local/share/groonga/images/logo/groonga-icon.png +0 -0
- data/vendor/local/share/groonga/images/logo/groonga-icon.svg +93 -0
- data/vendor/local/share/groonga/images/logo/groonga-logo-foreground-white.png +0 -0
- data/vendor/local/share/groonga/images/logo/groonga-logo-foreground-white.svg +108 -0
- data/vendor/local/share/groonga/images/logo/groonga-logo.png +0 -0
- data/vendor/local/share/groonga/images/logo/groonga-logo.svg +118 -0
- data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-bar-foreground-white.png +0 -0
- data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-bar-foreground-white.svg +170 -0
- data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-bar.png +0 -0
- data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-bar.svg +186 -0
- data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-foreground-white.png +0 -0
- data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-foreground-white.svg +183 -0
- data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-large.png +0 -0
- data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-large.svg +179 -0
- data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner.png +0 -0
- data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner.svg +201 -0
- data/vendor/local/share/groonga/images/logo/mroonga-icon-foreground-white.png +0 -0
- data/vendor/local/share/groonga/images/logo/mroonga-icon-foreground-white.svg +106 -0
- data/vendor/local/share/groonga/images/logo/mroonga-icon-full-size.png +0 -0
- data/vendor/local/share/groonga/images/logo/mroonga-icon-full-size.svg +97 -0
- data/vendor/local/share/groonga/images/logo/mroonga-icon.png +0 -0
- data/vendor/local/share/groonga/images/logo/mroonga-icon.svg +93 -0
- data/vendor/local/share/groonga/images/logo/mroonga-logo-foreground-white.png +0 -0
- data/vendor/local/share/groonga/images/logo/mroonga-logo-foreground-white.svg +122 -0
- data/vendor/local/share/groonga/images/logo/mroonga-logo.png +0 -0
- data/vendor/local/share/groonga/images/logo/mroonga-logo.svg +106 -0
- data/vendor/local/share/groonga/images/logo/nroonga-icon-foreground-white.png +0 -0
- data/vendor/local/share/groonga/images/logo/nroonga-icon-foreground-white.svg +106 -0
- data/vendor/local/share/groonga/images/logo/nroonga-icon-full-size.png +0 -0
- data/vendor/local/share/groonga/images/logo/nroonga-icon-full-size.svg +107 -0
- data/vendor/local/share/groonga/images/logo/nroonga-icon.png +0 -0
- data/vendor/local/share/groonga/images/logo/nroonga-icon.svg +93 -0
- data/vendor/local/share/groonga/images/logo/nroonga-logo-foreground-white.png +0 -0
- data/vendor/local/share/groonga/images/logo/nroonga-logo-foreground-white.svg +122 -0
- data/vendor/local/share/groonga/images/logo/nroonga-logo.png +0 -0
- data/vendor/local/share/groonga/images/logo/nroonga-logo.svg +117 -0
- data/vendor/local/share/groonga/images/logo/rroonga-icon-foreground-white.png +0 -0
- data/vendor/local/share/groonga/images/logo/rroonga-icon-foreground-white.svg +106 -0
- data/vendor/local/share/groonga/images/logo/rroonga-icon-full-size.png +0 -0
- data/vendor/local/share/groonga/images/logo/rroonga-icon-full-size.svg +107 -0
- data/vendor/local/share/groonga/images/logo/rroonga-icon.png +0 -0
- data/vendor/local/share/groonga/images/logo/rroonga-icon.svg +93 -0
- data/vendor/local/share/groonga/images/logo/rroonga-logo-foreground-white.png +0 -0
- data/vendor/local/share/groonga/images/logo/rroonga-logo-foreground-white.svg +122 -0
- data/vendor/local/share/groonga/images/logo/rroonga-logo.png +0 -0
- data/vendor/local/share/groonga/images/logo/rroonga-logo.svg +117 -0
- data/vendor/local/share/man/ja/man1/groonga.1 +510 -214
- data/vendor/local/share/man/man1/groonga.1 +510 -211
- metadata +62 -15
- data/vendor/local/bin/groonga-query-log-analyzer +0 -1419
- data/vendor/local/share/doc/groonga/en/html/_static/default.css +0 -278
- data/vendor/local/share/doc/groonga/en/html/_static/footer-bar.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/menu-header.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/sidebar.js +0 -151
- data/vendor/local/share/doc/groonga/ja/html/_static/default.css +0 -278
- data/vendor/local/share/doc/groonga/ja/html/_static/footer-bar.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/menu-header.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/sidebar.js +0 -151
@@ -45,7 +45,7 @@
|
|
45
45
|
|
46
46
|
<div class="other-language-links">
|
47
47
|
<ul>
|
48
|
-
<li><a href="../../../en/html/spec/search.html"><img src="../_static/us.png" alt="English"
|
48
|
+
<li><a href="../../../en/html/spec/search.html"><img src="../_static/us.png" alt="English">English page</a></li>
|
49
49
|
</ul>
|
50
50
|
</div>
|
51
51
|
</div>
|
@@ -44,7 +44,7 @@
|
|
44
44
|
|
45
45
|
<div class="other-language-links">
|
46
46
|
<ul>
|
47
|
-
<li><a href="../../en/html/spec.html"><img src="_static/us.png" alt="English"
|
47
|
+
<li><a href="../../en/html/spec.html"><img src="_static/us.png" alt="English">English page</a></li>
|
48
48
|
</ul>
|
49
49
|
</div>
|
50
50
|
</div>
|
@@ -45,7 +45,7 @@
|
|
45
45
|
|
46
46
|
<div class="other-language-links">
|
47
47
|
<ul>
|
48
|
-
<li><a href="../../../en/html/suggest/completion.html"><img src="../_static/us.png" alt="English"
|
48
|
+
<li><a href="../../../en/html/suggest/completion.html"><img src="../_static/us.png" alt="English">English page</a></li>
|
49
49
|
</ul>
|
50
50
|
</div>
|
51
51
|
</div>
|
@@ -45,7 +45,7 @@
|
|
45
45
|
|
46
46
|
<div class="other-language-links">
|
47
47
|
<ul>
|
48
|
-
<li><a href="../../../en/html/suggest/correction.html"><img src="../_static/us.png" alt="English"
|
48
|
+
<li><a href="../../../en/html/suggest/correction.html"><img src="../_static/us.png" alt="English">English page</a></li>
|
49
49
|
</ul>
|
50
50
|
</div>
|
51
51
|
</div>
|
@@ -45,7 +45,7 @@
|
|
45
45
|
|
46
46
|
<div class="other-language-links">
|
47
47
|
<ul>
|
48
|
-
<li><a href="../../../en/html/suggest/introduction.html"><img src="../_static/us.png" alt="English"
|
48
|
+
<li><a href="../../../en/html/suggest/introduction.html"><img src="../_static/us.png" alt="English">English page</a></li>
|
49
49
|
</ul>
|
50
50
|
</div>
|
51
51
|
</div>
|
@@ -45,7 +45,7 @@
|
|
45
45
|
|
46
46
|
<div class="other-language-links">
|
47
47
|
<ul>
|
48
|
-
<li><a href="../../../en/html/suggest/suggestion.html"><img src="../_static/us.png" alt="English"
|
48
|
+
<li><a href="../../../en/html/suggest/suggestion.html"><img src="../_static/us.png" alt="English">English page</a></li>
|
49
49
|
</ul>
|
50
50
|
</div>
|
51
51
|
</div>
|
@@ -45,7 +45,7 @@
|
|
45
45
|
|
46
46
|
<div class="other-language-links">
|
47
47
|
<ul>
|
48
|
-
<li><a href="../../../en/html/suggest/tutorial.html"><img src="../_static/us.png" alt="English"
|
48
|
+
<li><a href="../../../en/html/suggest/tutorial.html"><img src="../_static/us.png" alt="English">English page</a></li>
|
49
49
|
</ul>
|
50
50
|
</div>
|
51
51
|
</div>
|
@@ -44,7 +44,7 @@
|
|
44
44
|
|
45
45
|
<div class="other-language-links">
|
46
46
|
<ul>
|
47
|
-
<li><a href="../../en/html/suggest.html"><img src="_static/us.png" alt="English"
|
47
|
+
<li><a href="../../en/html/suggest.html"><img src="_static/us.png" alt="English">English page</a></li>
|
48
48
|
</ul>
|
49
49
|
</div>
|
50
50
|
</div>
|
@@ -45,7 +45,7 @@
|
|
45
45
|
|
46
46
|
<div class="other-language-links">
|
47
47
|
<ul>
|
48
|
-
<li><a href="../../../en/html/troubleshooting/different_results_with_the_same_keyword.html"><img src="../_static/us.png" alt="English"
|
48
|
+
<li><a href="../../../en/html/troubleshooting/different_results_with_the_same_keyword.html"><img src="../_static/us.png" alt="English">English page</a></li>
|
49
49
|
</ul>
|
50
50
|
</div>
|
51
51
|
</div>
|
@@ -44,7 +44,7 @@
|
|
44
44
|
|
45
45
|
<div class="other-language-links">
|
46
46
|
<ul>
|
47
|
-
<li><a href="../../en/html/troubleshooting.html"><img src="_static/us.png" alt="English"
|
47
|
+
<li><a href="../../en/html/troubleshooting.html"><img src="_static/us.png" alt="English">English page</a></li>
|
48
48
|
</ul>
|
49
49
|
</div>
|
50
50
|
</div>
|
@@ -9,7 +9,7 @@
|
|
9
9
|
<head>
|
10
10
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
11
11
|
|
12
|
-
<title>4.3.
|
12
|
+
<title>4.3. いろいろなデータの保存 — groonga v2.0.0ドキュメント</title>
|
13
13
|
|
14
14
|
<link rel="stylesheet" href="../_static/groonga.css" type="text/css" />
|
15
15
|
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
|
@@ -31,7 +31,7 @@
|
|
31
31
|
<link rel="top" title="groonga v2.0.0ドキュメント" href="../index.html" />
|
32
32
|
<link rel="up" title="4. チュートリアル" href="../tutorial.html" />
|
33
33
|
<link rel="next" title="4.4. さまざまな検索条件の指定" href="search.html" />
|
34
|
-
<link rel="prev" title="4.2.
|
34
|
+
<link rel="prev" title="4.2. リモートアクセス" href="network.html" />
|
35
35
|
</head>
|
36
36
|
<body>
|
37
37
|
<div class="header">
|
@@ -45,7 +45,7 @@
|
|
45
45
|
|
46
46
|
<div class="other-language-links">
|
47
47
|
<ul>
|
48
|
-
<li><a href="../../../en/html/tutorial/data.html"><img src="../_static/us.png" alt="English"
|
48
|
+
<li><a href="../../../en/html/tutorial/data.html"><img src="../_static/us.png" alt="English">English page</a></li>
|
49
49
|
</ul>
|
50
50
|
</div>
|
51
51
|
</div>
|
@@ -61,7 +61,7 @@
|
|
61
61
|
<a href="search.html" title="4.4. さまざまな検索条件の指定"
|
62
62
|
accesskey="N">次へ</a> |</li>
|
63
63
|
<li class="right" >
|
64
|
-
<a href="network.html" title="4.2.
|
64
|
+
<a href="network.html" title="4.2. リモートアクセス"
|
65
65
|
accesskey="P">前へ</a> |</li>
|
66
66
|
<li><a href="../index.html">groonga v2.0.0ドキュメント</a> »</li>
|
67
67
|
<li><a href="../tutorial.html" accesskey="U">4. チュートリアル</a> »</li>
|
@@ -73,68 +73,151 @@
|
|
73
73
|
<div class="bodywrapper">
|
74
74
|
<div class="body">
|
75
75
|
|
76
|
-
<div class="section" id="
|
77
|
-
<h1>4.3.
|
78
|
-
<p>groonga
|
79
|
-
<div class="section" id="
|
80
|
-
<h2>4.3.1.
|
81
|
-
<p>groonga
|
82
|
-
<p
|
83
|
-
<p
|
76
|
+
<div class="section" id="various-data-types">
|
77
|
+
<h1>4.3. いろいろなデータの保存<a class="headerlink" href="#various-data-types" title="このヘッドラインへのパーマリンク">¶</a></h1>
|
78
|
+
<p>groongaは全文検索エンジンを起源として独自のカラムストアを持つに至るわけですが、索引語や文書を保存するだけでなく、数値や文字列、日時や経緯度など、いろいろなデータを保存することができます。本チュートリアルでは、groongaで保存できるデータの種類、およびに保存の方法を説明します。</p>
|
79
|
+
<div class="section" id="overview">
|
80
|
+
<h2>4.3.1. データの種類<a class="headerlink" href="#overview" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
81
|
+
<p>groongaにおいて利用できる基本型は、真偽値、数値、文字列、日時、経緯度の5種類に大別できます。基本型において、数値は整数・浮動小数点数の違い、符号の有無と割り当てるビット数によって細分化できるほか、文字列は長さの上限によって細分化できます。また、経緯度には測地系による分類があります。詳しくは <a class="reference internal" href="../type.html"><em>データ型</em></a> を参照してください。</p>
|
82
|
+
<p>拡張型としては、別テーブルを参照するための情報であるテーブル参照を保存することができます。また、基本型もしくはテーブル参照を複数まとめて保存できるように、ベクターカラムをサポートしています。</p>
|
83
|
+
<p>それでは、本チュートリアルで使用するテーブルを作成しておきましょう。</p>
|
84
84
|
<p>実行例:</p>
|
85
|
-
<div class="highlight-none"><div class="highlight"><pre>> table_create --name
|
86
|
-
[[0,
|
87
|
-
> column_create --table Type --name number --type Int32
|
88
|
-
[[0,1322616293.94115,0.008619605],true]
|
89
|
-
> column_create --table Type --name float --type Float
|
90
|
-
[[0,1322616294.15095,0.004959989],true]
|
91
|
-
> column_create --table Type --name string --type ShortText
|
92
|
-
[[0,1322616294.35693,0.005551818],true]
|
93
|
-
> column_create --table Type --name time --type Time
|
94
|
-
[[0,1322616294.56333,0.006356953],true]
|
95
|
-
> load --table Type
|
96
|
-
> [{"_key":"sample","number":12345,"float":42.195,"string":"GROONGA","time":1234567890.12}]
|
97
|
-
[[0,1322616294.77086,0.202357708],1]
|
98
|
-
> select --table Type
|
99
|
-
[[0,1322616295.1744,0.000340057],[[[1],[["_id","UInt32"],["_key","ShortText"],["float","Float"],["number","Int32"],["string","ShortText"],["time","Time"]],[1,"sample",42.195,12345,"GROONGA",1234567890.12]]]]
|
85
|
+
<div class="highlight-none"><div class="highlight"><pre>> table_create --name ToyBox --flags TABLE_HASH_KEY --key_type ShortText
|
86
|
+
[[0,1332498286.03578,0.00542259216308594],true]
|
100
87
|
</pre></div>
|
101
88
|
</div>
|
102
89
|
</div>
|
103
|
-
<div class="section" id="
|
104
|
-
<h2>4.3.2.
|
105
|
-
<p>
|
106
|
-
<p
|
107
|
-
<p
|
108
|
-
<
|
90
|
+
<div class="section" id="boolean-type">
|
91
|
+
<h2>4.3.2. 真偽値<a class="headerlink" href="#boolean-type" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
92
|
+
<p>ブール型は真偽値(true/false)を表現するための型です。ブール型のカラムを作成するには、 <a class="reference internal" href="../commands/column_create.html"><em>column_create</em></a> コマンドの <cite>type</cite> 引数に Bool を指定します。ブール型のデフォルト値はfalseです。</p>
|
93
|
+
<p>以下の例では、ブール型のカラムを作成し、3つのレコードを追加します。3番目のレコードについては、値を省略しているため、デフォルト値が格納されます。</p>
|
94
|
+
<p>実行例:</p>
|
95
|
+
<div class="highlight-none"><div class="highlight"><pre>> column_create --table ToyBox --name is_animal --type Bool
|
96
|
+
[[0,1332498286.2427,0.00578594207763672],true]
|
97
|
+
> load --table ToyBox
|
98
|
+
> [
|
99
|
+
> {"_key":"Monkey","is_animal":true}
|
100
|
+
> {"_key":"Flower","is_animal":false}
|
101
|
+
> {"_key":"Block"}
|
102
|
+
> ]
|
103
|
+
[[0,1332498286.44978,1.00197458267212],3]
|
104
|
+
> select --table ToyBox --output_columns _key,is_animal
|
105
|
+
[[0,1332498287.65257,0.000472545623779297],[[[3],[["_key","ShortText"],["is_animal","Bool"]],["Monkey",true],["Flower",false],["Block",false]]]]
|
106
|
+
</pre></div>
|
107
|
+
</div>
|
108
|
+
</div>
|
109
|
+
<div class="section" id="numeric-types">
|
110
|
+
<h2>4.3.3. 数値<a class="headerlink" href="#numeric-types" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
111
|
+
<p>数値型は、整数と浮動小数点数に分けることができます。整数は、符号付き整数と符号なし整数に分けることができるだけでなく、割り当てるビット数によっても分けることができます。割り当てるビット数を大きくすると、カラムのサイズは大きくなってしまいますが、表現できる整数の範囲を大きくすることができます。詳しくは <a class="reference internal" href="../type.html"><em>データ型</em></a> を参照してください。数値型のデフォルト値はいずれも0です。</p>
|
112
|
+
<p>以下の例では、Int8型のカラムとFloat型のカラムを作成し、既存のレコードを更新します。weightカラムについては、指定した値が問題なく格納されています。一方、priceカラムに指定した小数については、小数点以下を切り捨てた値が格納されています。また、表現できる範囲を超える値を格納しようとした2番目のレコードについては、指定した値とは異なる値が格納されています。このように、表現できる範囲を超える値を指定すると、操作後の値は未定義になるので注意してください。</p>
|
113
|
+
<p>実行例:</p>
|
114
|
+
<div class="highlight-none"><div class="highlight"><pre>> column_create --table ToyBox --name price --type Int8
|
115
|
+
[[0,1332498287.85609,0.00574946403503418],true]
|
116
|
+
> column_create --table ToyBox --name weight --type Float
|
117
|
+
[[0,1332498288.06304,0.00493621826171875],true]
|
118
|
+
> load --table ToyBox
|
119
|
+
> [
|
120
|
+
> {"_key":"Monkey","price":15.9}
|
121
|
+
> {"_key":"Flower","price":200,"weight":0.13}
|
122
|
+
> {"_key":"Block","weight":25.7}
|
123
|
+
> ]
|
124
|
+
[[0,1332498288.26924,1.00213837623596],3]
|
125
|
+
> select --table ToyBox --output_columns _key,price,weight
|
126
|
+
[[0,1332498289.47254,0.000308036804199219],[[[3],[["_key","ShortText"],["price","Int8"],["weight","Float"]],["Monkey",15,0.0],["Flower",-56,0.13],["Block",0,25.7]]]]
|
127
|
+
</pre></div>
|
128
|
+
</div>
|
129
|
+
</div>
|
130
|
+
<div class="section" id="string-types">
|
131
|
+
<h2>4.3.4. 文字列<a class="headerlink" href="#string-types" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
132
|
+
<p>文字列型は、長さの上限によって分けることができます。詳しくは <a class="reference internal" href="../type.html"><em>データ型</em></a> を参照してください。文字列型のデフォルト値は長さ0の文字列です。</p>
|
133
|
+
<p>以下の例では、ShortText型のカラムを作成し、IDが1と2のレコードを更新します。更新しないレコードについては、デフォルト値のままとなります。</p>
|
134
|
+
<p>実行例:</p>
|
135
|
+
<div class="highlight-none"><div class="highlight"><pre>> column_create --table ToyBox --name name --type ShortText
|
136
|
+
[[0,1332498289.67627,0.00676369667053223],true]
|
137
|
+
> load --table ToyBox
|
138
|
+
> [
|
139
|
+
> {"_key":"Monkey","name":"Grease"}
|
140
|
+
> {"_key":"Flower","name":"Rose"}
|
141
|
+
> ]
|
142
|
+
[[0,1332498289.88434,0.801783800125122],2]
|
143
|
+
> select --table ToyBox --output_columns _key,name
|
144
|
+
[[0,1332498290.88724,0.000265598297119141],[[[3],[["_key","ShortText"],["name","ShortText"]],["Monkey","Grease"],["Flower","Rose"],["Block",""]]]]
|
145
|
+
</pre></div>
|
146
|
+
</div>
|
147
|
+
</div>
|
148
|
+
<div class="section" id="date-and-time-type">
|
149
|
+
<h2>4.3.5. 日時<a class="headerlink" href="#date-and-time-type" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
150
|
+
<p>日時を表現するための型はTimeです。内部では1970年1月1日0時0分0秒を基準とする経過時間をマイクロ秒単位で表現します。符号付きの整数を用いるため、1970年以前の日時も表現することができます。内部表現はマイクロ秒単位の整数ですが、 <a class="reference internal" href="../commands/load.html"><em>load</em></a> コマンドおよび <a class="reference internal" href="../commands/select.html"><em>select</em></a> コマンドでは、経過秒数による指定・表示となります。デフォルト値は1970年1月1日0時0分0秒のことを表す0.0です。</p>
|
151
|
+
<p>以下の例では、Time型のカラムを作成し、IDが2と3のレコードを更新します。更新しないレコードについては、デフォルト値のままとなります。</p>
|
152
|
+
<p>実行例:</p>
|
153
|
+
<div class="highlight-none"><div class="highlight"><pre>> column_create --table ToyBox --name time --type Time
|
154
|
+
[[0,1332498291.0906,0.00631809234619141],true]
|
155
|
+
> load --table ToyBox
|
156
|
+
> [
|
157
|
+
> {"_key":"Flower","time":1234567890.1234569999}
|
158
|
+
> {"_key":"Block","time":-1234567890}
|
159
|
+
> ]
|
160
|
+
[[0,1332498291.29814,0.801807641983032],2]
|
161
|
+
> select --table ToyBox --output_columns _key,time
|
162
|
+
[[0,1332498292.30117,0.000299692153930664],[[[3],[["_key","ShortText"],["time","Time"]],["Monkey",0.0],["Flower",1234567890.12346],["Block",-1234567890.0]]]]
|
163
|
+
</pre></div>
|
164
|
+
</div>
|
165
|
+
</div>
|
166
|
+
<div class="section" id="longitude-and-latitude-types">
|
167
|
+
<h2>4.3.6. 経緯度<a class="headerlink" href="#longitude-and-latitude-types" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
168
|
+
<p>経緯度を表現するための型は、測地系によって分けることができます。詳しくは <a class="reference internal" href="../type.html"><em>データ型</em></a> を参照してください。経緯度の指定・表示には、以下に示す形式の文字列を使います。</p>
|
169
|
+
<ul class="simple">
|
170
|
+
<li>"経度のミリ秒表記x緯度のミリ秒表記" (例: "128452975x503157902")</li>
|
171
|
+
<li>"経度の度数表記x緯度の度数表記" (例: "35.6813819x139.7660839")</li>
|
172
|
+
</ul>
|
173
|
+
<p>小数点を含んでいなければミリ秒表記、小数点を含んでいれば度数表記として扱われます。ミリ秒表記と度数表記を混ぜたときの動作は未定義なので注意してください。経度と緯度の区切りとしては、'x' のほかに ',' を使うことができます。経緯度のデフォルト値は "0x0" です。</p>
|
174
|
+
<p>以下の例では、世界測地系を用いるWGS84GeoPoint型のカラムを作成し、IDが1と3のレコードを更新します。更新しないレコードについては、デフォルト値のままとなります。</p>
|
175
|
+
<p>実行例:</p>
|
176
|
+
<div class="highlight-none"><div class="highlight"><pre>> column_create --table ToyBox --name location --type WGS84GeoPoint
|
177
|
+
[[0,1332498292.50467,0.0079643726348877],true]
|
178
|
+
> load --table ToyBox
|
179
|
+
> [
|
180
|
+
> {"_key":"Monkey","location":"128452975x503157902"}
|
181
|
+
> {"_key":"Block","location":"35.6813819x139.7660839"}
|
182
|
+
> ]
|
183
|
+
[[0,1332498292.71385,0.801813840866089],2]
|
184
|
+
> select --table ToyBox --output_columns _key,location
|
185
|
+
[[0,1332498293.71678,0.000298976898193359],[[[3],[["_key","ShortText"],["location","WGS84GeoPoint"]],["Monkey","128452975x503157902"],["Flower","0x0"],["Block","128452975x503157902"]]]]
|
186
|
+
</pre></div>
|
187
|
+
</div>
|
188
|
+
</div>
|
189
|
+
<div class="section" id="reference-types">
|
190
|
+
<h2>4.3.7. テーブル参照<a class="headerlink" href="#reference-types" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
191
|
+
<p>groongaでは、テーブル参照のカラム、すなわち関連付けたテーブルを参照するカラムを作成できます。より正確には、カラム作成時に参照先となるテーブルとの関連付けをおこない、参照先テーブルにおけるレコードIDを格納しておくことにより、参照先のレコードにアクセスできるようにします。</p>
|
192
|
+
<p>テーブル参照のカラムがあるときは、 <cite>output_columns</cite> 引数に "参照元カラム.参照先カラム" と指定することにより、参照先カラムの値を取り出すことができます。参照元カラムのみを指定したときは、 "参照元カラム名._key" と同様の扱いとなり、参照先レコードの主キーが取り出されます。テーブル参照が有効なレコードを指していないときは、参照先カラムのデフォルト値が取り出されるようになっています。</p>
|
193
|
+
<p>ここでは、先のチュートリアルで作成したSiteテーブルにlinkという新たなカラムを作成し、サイト間のリンク関係を保存できるようにしてみましょう。</p>
|
109
194
|
<p>実行例:</p>
|
110
195
|
<div class="highlight-none"><div class="highlight"><pre>> column_create --table Site --name link --type Site
|
111
|
-
[[0,
|
196
|
+
[[0,1332498293.92066,0.00589966773986816],true]
|
112
197
|
> load --table Site
|
113
198
|
> [{"_key":"http://example.org/","link":"http://example.net/"}]
|
114
|
-
[[0,
|
199
|
+
[[0,1332498294.1274,0.201014280319214],1]
|
115
200
|
> select --table Site --output_columns _key,title,link._key,link.title --query title:@this
|
116
|
-
[[0,
|
201
|
+
[[0,1332498294.52959,0.00171041488647461],[[[1],[["_key","ShortText"],["title","ShortText"],["link._key","ShortText"],["link.title","ShortText"]],["http://example.org/","This is test record 1!","http://example.net/","test record 2."]]]]
|
117
202
|
</pre></div>
|
118
203
|
</div>
|
119
|
-
<p
|
204
|
+
<p>テーブル参照のカラムを作成するときは、 <cite>type</cite> 引数に参照先テーブルを指定します。この例では、同じテーブルに含まれる別のレコードを参照させたいので、Siteを指定することになります。次に、 "<a class="reference external" href="http://example.org/">http://example.org/</a>" から "<a class="reference external" href="http://example.net/">http://example.net/</a>" へのリンクを登録しています。テーブル参照を作成するときは、IDではなく主キーを指定することに注意してください。最後に、リンクの内容を確認しています。この例では、 <cite>output_columns</cite> 引数に link._key と link.title を指定しているので、参照先の主キーとタイトルが表示されています。</p>
|
120
205
|
</div>
|
121
|
-
<div class="section" id="
|
122
|
-
<h2>4.3.
|
123
|
-
<p>column_create
|
124
|
-
<p
|
125
|
-
<p>テーブル型のチュートリアルでは、Siteテーブルに手を加え、どのサイトをリンクしているのかを保存しました。しかし、通常は1つのサイトから多くのサイトにリンクが張られています。複数のリンク情報を格納するために、複数の参照関係を保存するカラムを作成してみましょう。</p>
|
126
|
-
<p>他のテーブルを参照するベクターカラムにデータを入力する場合には、参照先のテーブルの_keyカラムの値の「配列」を代入する必要があります。</p>
|
206
|
+
<div class="section" id="vector-types">
|
207
|
+
<h2>4.3.8. ベクターカラム<a class="headerlink" href="#vector-types" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
208
|
+
<p><a class="reference internal" href="../commands/column_create.html"><em>column_create</em></a> コマンドでカラムを作成するとき、 <cite>flags</cite> 引数にCOLUMN_VECTORフラグを指定すると、 <cite>type</cite> 引数に指定した型の配列を格納するカラムになります。このようなカラムのことは、ベクターカラムと呼びます。ベクターカラムは、各レコードに複数の値を格納できるため、一対多の参照関係を表すのに便利です。</p>
|
209
|
+
<p>さきほどテーブル参照の例として作成したカラムでは、各サイトに一つのリンクしか保存できませんでした。通常は一つのサイトから多くのサイトにリンクが張られているので、これでは残念な仕様になってしまいます。そこで、ベクターカラムを使って、複数のリンクを保存できるようにしてみましょう。</p>
|
127
210
|
<p>実行例:</p>
|
128
211
|
<div class="highlight-none"><div class="highlight"><pre>> column_create --table Site --name links --flags COLUMN_VECTOR --type Site
|
129
|
-
[[0,
|
212
|
+
[[0,1332498294.7353,0.00729537010192871],true]
|
130
213
|
> load --table Site
|
131
214
|
> [{"_key":"http://example.org/","links":["http://example.net/","http://example.org/","http://example.com/"]}]
|
132
|
-
[[0,
|
215
|
+
[[0,1332498294.94353,0.200709581375122],1]
|
133
216
|
> select --table Site --output_columns _key,title,links._key,links.title --query title:@this
|
134
|
-
[[0,
|
217
|
+
[[0,1332498295.34514,0.00077366828918457],[[[1],[["_key","ShortText"],["title","ShortText"],["links._key","ShortText"],["links.title","ShortText"]],["http://example.org/","This is test record 1!",["http://example.net/","http://example.org/","http://example.com/"],["test record 2.","This is test record 1!","test test record three."]]]]]
|
135
218
|
</pre></div>
|
136
219
|
</div>
|
137
|
-
<p
|
220
|
+
<p>新たなカラムにはSiteテーブルに対する参照の配列を格納するので、 <cite>type</cite> 引数にSiteを指定するとともに、 <cite>flags</cite> 引数にCOLUMN_VECTORフラグを指定しています。次に、 <a class="reference internal" href="../commands/load.html"><em>load</em></a> による更新では、 "<a class="reference external" href="http://example.org/">http://example.org/</a>" から "<a class="reference external" href="http://example.net/">http://example.net/</a>" へのリンクに加えて、 "<a class="reference external" href="http://example.org/">http://example.org/</a>" と "<a class="reference external" href="http://example.com/">http://example.com/</a>" へのリンクも登録しています。そして、最後にリンクの内容を確認しています。この例では、 <cite>output_columns</cite> 引数に links._key と links.title を指定しているので、参照先の主キーとタイトルをそれぞれ配列にしたものが表示されています。</p>
|
138
221
|
</div>
|
139
222
|
</div>
|
140
223
|
|
@@ -146,17 +229,22 @@
|
|
146
229
|
<div class="sphinxsidebarwrapper">
|
147
230
|
<h3><a href="../index.html">目次</a></h3>
|
148
231
|
<ul>
|
149
|
-
<li><a class="reference internal" href="#">4.3.
|
150
|
-
<li><a class="reference internal" href="#
|
151
|
-
<li><a class="reference internal" href="#
|
152
|
-
<li><a class="reference internal" href="#
|
232
|
+
<li><a class="reference internal" href="#">4.3. いろいろなデータの保存</a><ul>
|
233
|
+
<li><a class="reference internal" href="#overview">4.3.1. データの種類</a></li>
|
234
|
+
<li><a class="reference internal" href="#boolean-type">4.3.2. 真偽値</a></li>
|
235
|
+
<li><a class="reference internal" href="#numeric-types">4.3.3. 数値</a></li>
|
236
|
+
<li><a class="reference internal" href="#string-types">4.3.4. 文字列</a></li>
|
237
|
+
<li><a class="reference internal" href="#date-and-time-type">4.3.5. 日時</a></li>
|
238
|
+
<li><a class="reference internal" href="#longitude-and-latitude-types">4.3.6. 経緯度</a></li>
|
239
|
+
<li><a class="reference internal" href="#reference-types">4.3.7. テーブル参照</a></li>
|
240
|
+
<li><a class="reference internal" href="#vector-types">4.3.8. ベクターカラム</a></li>
|
153
241
|
</ul>
|
154
242
|
</li>
|
155
243
|
</ul>
|
156
244
|
|
157
245
|
<h4>前のトピックへ</h4>
|
158
246
|
<p class="topless"><a href="network.html"
|
159
|
-
title="前の章へ">4.2.
|
247
|
+
title="前の章へ">4.2. リモートアクセス</a></p>
|
160
248
|
<h4>次のトピックへ</h4>
|
161
249
|
<p class="topless"><a href="search.html"
|
162
250
|
title="次の章へ">4.4. さまざまな検索条件の指定</a></p>
|
@@ -192,7 +280,7 @@
|
|
192
280
|
<a href="search.html" title="4.4. さまざまな検索条件の指定"
|
193
281
|
>次へ</a> |</li>
|
194
282
|
<li class="right" >
|
195
|
-
<a href="network.html" title="4.2.
|
283
|
+
<a href="network.html" title="4.2. リモートアクセス"
|
196
284
|
>前へ</a> |</li>
|
197
285
|
<li><a href="../index.html">groonga v2.0.0ドキュメント</a> »</li>
|
198
286
|
<li><a href="../tutorial.html" >4. チュートリアル</a> »</li>
|
@@ -45,7 +45,7 @@
|
|
45
45
|
|
46
46
|
<div class="other-language-links">
|
47
47
|
<ul>
|
48
|
-
<li><a href="../../../en/html/tutorial/drilldown.html"><img src="../_static/us.png" alt="English"
|
48
|
+
<li><a href="../../../en/html/tutorial/drilldown.html"><img src="../_static/us.png" alt="English">English page</a></li>
|
49
49
|
</ul>
|
50
50
|
</div>
|
51
51
|
</div>
|
@@ -45,7 +45,7 @@
|
|
45
45
|
|
46
46
|
<div class="other-language-links">
|
47
47
|
<ul>
|
48
|
-
<li><a href="../../../en/html/tutorial/index.html"><img src="../_static/us.png" alt="English"
|
48
|
+
<li><a href="../../../en/html/tutorial/index.html"><img src="../_static/us.png" alt="English">English page</a></li>
|
49
49
|
</ul>
|
50
50
|
</div>
|
51
51
|
</div>
|