rroonga 1.3.0-x86-mingw32 → 1.3.1-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +33 -2
- data/benchmark/common.rb +2 -2
- data/benchmark/read-write-many-small-items.rb +71 -62
- data/benchmark/write-many-small-items.rb +61 -53
- data/ext/groonga/rb-grn-context.c +23 -5
- data/ext/groonga/rb-grn-index-column.c +2 -6
- data/ext/groonga/rb-grn-operator.c +31 -1
- data/ext/groonga/rb-grn-variable-size-column.c +77 -1
- data/ext/groonga/rb-grn.h +2 -11
- data/ext/groonga/rb-groonga.c +1 -2
- data/lib/1.8/groonga.so +0 -0
- data/lib/1.9/groonga.so +0 -0
- data/lib/groonga/command.rb +169 -0
- data/lib/groonga/context.rb +4 -124
- data/lib/groonga/dumper.rb +10 -8
- data/lib/groonga/record.rb +7 -0
- data/lib/groonga/schema.rb +98 -7
- data/rroonga-build.rb +3 -3
- data/test/{test-context-select.rb → test-command-select.rb} +3 -3
- data/test/test-record.rb +18 -1
- data/test/test-schema-dumper.rb +48 -0
- data/test/test-schema-type.rb +35 -0
- data/test/test-schema.rb +81 -11
- data/test/test-table-select.rb +49 -38
- data/test/test-variable-size-column.rb +30 -0
- data/vendor/local/bin/grntest.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/mecab.exe +0 -0
- data/vendor/local/include/groonga/groonga/plugin.h +3 -2
- data/vendor/local/include/groonga/groonga.h +106 -78
- 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/pkgconfig/groonga.pc +5 -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/characteristic.txt +42 -32
- data/vendor/local/share/doc/groonga/en/html/_sources/commands/delete.txt +5 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/commands/table_create.txt +5 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/community.txt +4 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution.txt +8 -6
- data/vendor/local/share/doc/groonga/en/html/_sources/functions/geo_distance.txt +42 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/functions/geo_in_circle.txt +26 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/index.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/install.txt +102 -27
- data/vendor/local/share/doc/groonga/en/html/_sources/limitations.txt +10 -10
- data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +130 -21
- data/vendor/local/share/doc/groonga/en/html/_sources/output.txt +164 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference.txt +1 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/suggest.txt +0 -5
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/data.txt +6 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/drilldown.txt +1 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/index.txt +2 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/introduction.txt +95 -116
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/match_columns.txt +1 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/micro_blog.txt +1 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/network.txt +3 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/patricia_trie.txt +1 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/query_expansion.txt +5 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/search.txt +3 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/type.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_static/basic.css +13 -1
- data/vendor/local/share/doc/groonga/en/html/_static/doctools.js +5 -5
- data/vendor/local/share/doc/groonga/en/html/_static/searchtools.js +11 -7
- data/vendor/local/share/doc/groonga/en/html/_static/websupport.js +1 -1
- data/vendor/local/share/doc/groonga/en/html/characteristic.html +60 -52
- 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 +38 -35
- 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 +38 -38
- 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 +36 -36
- data/vendor/local/share/doc/groonga/en/html/commands/table_create.html +38 -36
- 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 +14 -12
- 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 +7 -7
- 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 +7 -7
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/contribution/report.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/contribution.html +15 -13
- data/vendor/local/share/doc/groonga/en/html/executables/grnslap.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/executables/grntest.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/executables/groonga-http.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/executables/groonga-suggest-create-dataset.html +12 -12
- data/vendor/local/share/doc/groonga/en/html/executables/groonga.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/executables.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/expr.html +25 -25
- 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 +71 -36
- data/vendor/local/share/doc/groonga/en/html/functions/geo_in_circle.html +53 -33
- 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 +22 -22
- data/vendor/local/share/doc/groonga/en/html/genindex.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/index.html +92 -87
- data/vendor/local/share/doc/groonga/en/html/install.html +109 -40
- data/vendor/local/share/doc/groonga/en/html/limitations.html +19 -19
- data/vendor/local/share/doc/groonga/en/html/log.html +21 -21
- data/vendor/local/share/doc/groonga/en/html/news/0.x.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/news/senna.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/news.html +233 -112
- data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/en/html/output.html +302 -0
- data/vendor/local/share/doc/groonga/en/html/pseudo_column.html +21 -21
- data/vendor/local/share/doc/groonga/en/html/reference.html +59 -55
- data/vendor/local/share/doc/groonga/en/html/search.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/en/html/spec/search.html +11 -11
- data/vendor/local/share/doc/groonga/en/html/spec.html +11 -11
- 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 +7 -7
- data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/suggest.html +7 -12
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +11 -11
- data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +23 -23
- data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +124 -164
- data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +14 -14
- data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +11 -10
- data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/tutorial.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/type.html +31 -31
- data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/characteristic.txt +42 -32
- data/vendor/local/share/doc/groonga/ja/html/_sources/commands/delete.txt +5 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/commands/table_create.txt +5 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/community.txt +4 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution.txt +8 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/functions/geo_distance.txt +42 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/functions/geo_in_circle.txt +26 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/index.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/install.txt +102 -27
- data/vendor/local/share/doc/groonga/ja/html/_sources/limitations.txt +10 -10
- data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +130 -21
- data/vendor/local/share/doc/groonga/ja/html/_sources/output.txt +164 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference.txt +1 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/suggest.txt +0 -5
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/data.txt +6 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/drilldown.txt +1 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/index.txt +2 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/introduction.txt +95 -116
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/match_columns.txt +1 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/micro_blog.txt +1 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/network.txt +3 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/patricia_trie.txt +1 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/query_expansion.txt +5 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/search.txt +3 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/type.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_static/basic.css +13 -1
- data/vendor/local/share/doc/groonga/ja/html/_static/doctools.js +5 -5
- data/vendor/local/share/doc/groonga/ja/html/_static/searchtools.js +11 -7
- data/vendor/local/share/doc/groonga/ja/html/_static/websupport.js +1 -1
- data/vendor/local/share/doc/groonga/ja/html/characteristic.html +55 -47
- 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 +38 -35
- 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 +38 -38
- 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 +36 -36
- data/vendor/local/share/doc/groonga/ja/html/commands/table_create.html +38 -36
- 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 +10 -8
- 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 +7 -7
- 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 +7 -7
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/contribution.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/executables/grnslap.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/executables/grntest.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga-http.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga-suggest-create-dataset.html +12 -12
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/executables.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/expr.html +25 -25
- 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 +71 -36
- data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_circle.html +53 -33
- 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 +22 -22
- data/vendor/local/share/doc/groonga/ja/html/genindex.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/index.html +84 -79
- data/vendor/local/share/doc/groonga/ja/html/install.html +92 -16
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +13 -13
- data/vendor/local/share/doc/groonga/ja/html/log.html +21 -21
- data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/news/senna.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/news.html +202 -99
- data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/ja/html/output.html +287 -0
- data/vendor/local/share/doc/groonga/ja/html/pseudo_column.html +21 -21
- data/vendor/local/share/doc/groonga/ja/html/reference.html +59 -55
- data/vendor/local/share/doc/groonga/ja/html/search.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/ja/html/spec/search.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/spec.html +11 -11
- 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 +7 -7
- data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/suggest.html +7 -11
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +20 -20
- data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +93 -115
- data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +8 -7
- data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/tutorial.html +21 -21
- data/vendor/local/share/doc/groonga/ja/html/type.html +31 -31
- data/vendor/local/share/doc/groonga/source/characteristic.txt +42 -32
- data/vendor/local/share/doc/groonga/source/commands/delete.txt +5 -1
- data/vendor/local/share/doc/groonga/source/commands/table_create.txt +5 -2
- data/vendor/local/share/doc/groonga/source/community.txt +4 -3
- data/vendor/local/share/doc/groonga/source/contribution.txt +8 -6
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-1.log +8 -8
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-2.log +4 -4
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-3.log +4 -4
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-1.log +3 -15
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-2.log +2 -7
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-3.log +2 -7
- data/vendor/local/share/doc/groonga/source/functions/geo_distance.txt +42 -3
- data/vendor/local/share/doc/groonga/source/functions/geo_in_circle.txt +26 -1
- data/vendor/local/share/doc/groonga/source/index.txt +2 -2
- data/vendor/local/share/doc/groonga/source/install.txt +102 -27
- data/vendor/local/share/doc/groonga/source/limitations.txt +10 -10
- data/vendor/local/share/doc/groonga/source/news.txt +130 -21
- data/vendor/local/share/doc/groonga/source/output.txt +164 -0
- data/vendor/local/share/doc/groonga/source/reference.txt +1 -0
- data/vendor/local/share/doc/groonga/source/suggest.txt +0 -5
- data/vendor/local/share/doc/groonga/source/tutorial/data.txt +6 -4
- data/vendor/local/share/doc/groonga/source/tutorial/drilldown.txt +1 -3
- data/vendor/local/share/doc/groonga/source/tutorial/index.txt +2 -1
- data/vendor/local/share/doc/groonga/source/tutorial/introduction.txt +95 -116
- data/vendor/local/share/doc/groonga/source/tutorial/match_columns.txt +1 -4
- data/vendor/local/share/doc/groonga/source/tutorial/micro_blog.txt +1 -4
- data/vendor/local/share/doc/groonga/source/tutorial/network.txt +3 -0
- data/vendor/local/share/doc/groonga/source/tutorial/patricia_trie.txt +1 -2
- data/vendor/local/share/doc/groonga/source/tutorial/query_expansion.txt +5 -0
- data/vendor/local/share/doc/groonga/source/tutorial/search.txt +3 -0
- data/vendor/local/share/doc/groonga/source/tutorial.txt +2 -2
- data/vendor/local/share/doc/groonga/source/type.txt +3 -3
- data/vendor/local/share/groonga/examples/dictionary/html/js/dictionary.js +1 -0
- data/vendor/local/share/groonga/html/admin/index.html +40 -0
- data/vendor/local/share/groonga/html/admin/js/jquery.flot-0.7.min.js +6 -0
- data/vendor/local/share/groonga/html/admin/js/jquery.flot.license.txt +22 -0
- data/vendor/local/share/man/ja/man1/groonga.1 +560 -138
- data/vendor/local/share/man/man1/groonga.1 +637 -223
- metadata +887 -898
- data/ext/groonga/Makefile +0 -184
- data/ext/groonga/rb-grn-query.c +0 -260
- data/test/test-query.rb +0 -22
data/test/test-schema-dumper.rb
CHANGED
@@ -28,6 +28,29 @@ class SchemaDumperTest < Test::Unit::TestCase
|
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
31
|
+
def define_built_in_types_schema
|
32
|
+
Groonga::Schema.define do |schema|
|
33
|
+
schema.create_table("Posts") do |table|
|
34
|
+
table.boolean :public
|
35
|
+
table.int8 :int8
|
36
|
+
table.uint8 :uint8
|
37
|
+
table.int16 :int16
|
38
|
+
table.uint16 :uint16
|
39
|
+
table.int32 :int32
|
40
|
+
table.uint32 :uint32
|
41
|
+
table.int64 :int64
|
42
|
+
table.uint64 :uint64
|
43
|
+
table.float :vote_average
|
44
|
+
table.time :published_at
|
45
|
+
table.short_text :title
|
46
|
+
table.text :content
|
47
|
+
table.long_text :attachment
|
48
|
+
table.tokyo_geo_point :location_tokyo
|
49
|
+
table.wgs84_geo_point :location_wgs84
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
31
54
|
def define_reference_schema
|
32
55
|
Groonga::Schema.define do |schema|
|
33
56
|
schema.create_table("Items") do |table|
|
@@ -79,6 +102,31 @@ end
|
|
79
102
|
EOS
|
80
103
|
end
|
81
104
|
|
105
|
+
def test_built_in_types
|
106
|
+
define_built_in_types_schema
|
107
|
+
assert_equal(<<-EOS, dump)
|
108
|
+
create_table("Posts",
|
109
|
+
:force => true) do |table|
|
110
|
+
table.long_text("attachment")
|
111
|
+
table.text("content")
|
112
|
+
table.integer16("int16")
|
113
|
+
table.integer32("int32")
|
114
|
+
table.integer64("int64")
|
115
|
+
table.integer8("int8")
|
116
|
+
table.tokyo_geo_point("location_tokyo")
|
117
|
+
table.wgs84_geo_point("location_wgs84")
|
118
|
+
table.boolean("public")
|
119
|
+
table.time("published_at")
|
120
|
+
table.short_text("title")
|
121
|
+
table.unsigned_integer16("uint16")
|
122
|
+
table.unsigned_integer32("uint32")
|
123
|
+
table.unsigned_integer64("uint64")
|
124
|
+
table.unsigned_integer8("uint8")
|
125
|
+
table.float("vote_average")
|
126
|
+
end
|
127
|
+
EOS
|
128
|
+
end
|
129
|
+
|
82
130
|
def test_reference
|
83
131
|
define_reference_schema
|
84
132
|
assert_equal(<<-EOS, dump)
|
data/test/test-schema-type.rb
CHANGED
@@ -33,6 +33,18 @@ class SchemaTypeTest < Test::Unit::TestCase
|
|
33
33
|
assert_normalize_type("LongText", "LongText")
|
34
34
|
end
|
35
35
|
|
36
|
+
def test_normalize_integer8
|
37
|
+
assert_normalize_type("Int8", "int8")
|
38
|
+
assert_normalize_type("Int8", "integer8")
|
39
|
+
assert_normalize_type("Int8", "Int8")
|
40
|
+
end
|
41
|
+
|
42
|
+
def test_normalize_integer16
|
43
|
+
assert_normalize_type("Int16", "int16")
|
44
|
+
assert_normalize_type("Int16", "integer16")
|
45
|
+
assert_normalize_type("Int16", "Int16")
|
46
|
+
end
|
47
|
+
|
36
48
|
def test_normalize_integer32
|
37
49
|
assert_normalize_type("Int32", "int")
|
38
50
|
assert_normalize_type("Int32", "integer")
|
@@ -47,6 +59,18 @@ class SchemaTypeTest < Test::Unit::TestCase
|
|
47
59
|
assert_normalize_type("Int64", "Int64")
|
48
60
|
end
|
49
61
|
|
62
|
+
def test_normalize_unsigned_integer8
|
63
|
+
assert_normalize_type("UInt8", "uint8")
|
64
|
+
assert_normalize_type("UInt8", "unsigned_integer8")
|
65
|
+
assert_normalize_type("UInt8", "UInt8")
|
66
|
+
end
|
67
|
+
|
68
|
+
def test_normalize_unsigned_integer16
|
69
|
+
assert_normalize_type("UInt16", "uint16")
|
70
|
+
assert_normalize_type("UInt16", "unsigned_integer16")
|
71
|
+
assert_normalize_type("UInt16", "UInt16")
|
72
|
+
end
|
73
|
+
|
50
74
|
def test_normalize_unsigned_integer32
|
51
75
|
assert_normalize_type("UInt32", "uint")
|
52
76
|
assert_normalize_type("UInt32", "unsigned_integer")
|
@@ -79,6 +103,17 @@ class SchemaTypeTest < Test::Unit::TestCase
|
|
79
103
|
assert_normalize_type("Bool", "Bool")
|
80
104
|
end
|
81
105
|
|
106
|
+
def test_normalize_tokyo_geo_point
|
107
|
+
assert_normalize_type("TokyoGeoPoint", "tokyo_geo_point")
|
108
|
+
assert_normalize_type("TokyoGeoPoint", "TokyoGeoPoint")
|
109
|
+
end
|
110
|
+
|
111
|
+
def test_normalize_wgs84_geo_point
|
112
|
+
assert_normalize_type("WGS84GeoPoint", "geo_point")
|
113
|
+
assert_normalize_type("WGS84GeoPoint", "wgs84_geo_point")
|
114
|
+
assert_normalize_type("WGS84GeoPoint", "WGS84GeoPoint")
|
115
|
+
end
|
116
|
+
|
82
117
|
def test_normalize_delimit
|
83
118
|
assert_normalize_type("TokenDelimit", "delimit")
|
84
119
|
assert_normalize_type("TokenDelimit", "token_delimit")
|
data/test/test-schema.rb
CHANGED
@@ -343,6 +343,22 @@ class SchemaTest < Test::Unit::TestCase
|
|
343
343
|
end
|
344
344
|
end
|
345
345
|
|
346
|
+
def test_integer8_column
|
347
|
+
assert_nil(context["Posts.rate"])
|
348
|
+
Groonga::Schema.create_table("Posts") do |table|
|
349
|
+
table.integer8 :rate
|
350
|
+
end
|
351
|
+
assert_equal(context["Int8"], context["Posts.rate"].range)
|
352
|
+
end
|
353
|
+
|
354
|
+
def test_integer16_column
|
355
|
+
assert_nil(context["Posts.rate"])
|
356
|
+
Groonga::Schema.create_table("Posts") do |table|
|
357
|
+
table.integer16 :rate
|
358
|
+
end
|
359
|
+
assert_equal(context["Int16"], context["Posts.rate"].range)
|
360
|
+
end
|
361
|
+
|
346
362
|
def test_integer32_column
|
347
363
|
assert_nil(context["Posts.rate"])
|
348
364
|
Groonga::Schema.create_table("Posts") do |table|
|
@@ -359,6 +375,22 @@ class SchemaTest < Test::Unit::TestCase
|
|
359
375
|
assert_equal(context["Int64"], context["Posts.rate"].range)
|
360
376
|
end
|
361
377
|
|
378
|
+
def test_unsigned_integer8_column
|
379
|
+
assert_nil(context["Posts.n_viewed"])
|
380
|
+
Groonga::Schema.create_table("Posts") do |table|
|
381
|
+
table.unsigned_integer8 :n_viewed
|
382
|
+
end
|
383
|
+
assert_equal(context["UInt8"], context["Posts.n_viewed"].range)
|
384
|
+
end
|
385
|
+
|
386
|
+
def test_unsigned_integer16_column
|
387
|
+
assert_nil(context["Posts.n_viewed"])
|
388
|
+
Groonga::Schema.create_table("Posts") do |table|
|
389
|
+
table.unsigned_integer16 :n_viewed
|
390
|
+
end
|
391
|
+
assert_equal(context["UInt16"], context["Posts.n_viewed"].range)
|
392
|
+
end
|
393
|
+
|
362
394
|
def test_unsigned_integer32_column
|
363
395
|
assert_nil(context["Posts.n_viewed"])
|
364
396
|
Groonga::Schema.create_table("Posts") do |table|
|
@@ -433,6 +465,30 @@ class SchemaTest < Test::Unit::TestCase
|
|
433
465
|
assert_equal(context["Bool"], context["Posts.public"].range)
|
434
466
|
end
|
435
467
|
|
468
|
+
def test_tokyo_geo_point_column
|
469
|
+
assert_nil(context["Posts.location"])
|
470
|
+
Groonga::Schema.create_table("Posts") do |table|
|
471
|
+
table.tokyo_geo_point :location
|
472
|
+
end
|
473
|
+
assert_equal(context["TokyoGeoPoint"], context["Posts.location"].range)
|
474
|
+
end
|
475
|
+
|
476
|
+
def test_wgs84_geo_point_column
|
477
|
+
assert_nil(context["Posts.location"])
|
478
|
+
Groonga::Schema.create_table("Posts") do |table|
|
479
|
+
table.wgs84_geo_point :location
|
480
|
+
end
|
481
|
+
assert_equal(context["WGS84GeoPoint"], context["Posts.location"].range)
|
482
|
+
end
|
483
|
+
|
484
|
+
def test_geo_point_column
|
485
|
+
assert_nil(context["Posts.location"])
|
486
|
+
Groonga::Schema.create_table("Posts") do |table|
|
487
|
+
table.geo_point :location
|
488
|
+
end
|
489
|
+
assert_equal(context["WGS84GeoPoint"], context["Posts.location"].range)
|
490
|
+
end
|
491
|
+
|
436
492
|
def test_remove_column
|
437
493
|
Groonga::Schema.create_table("Posts") do |table|
|
438
494
|
table.long_text :content
|
@@ -456,26 +512,40 @@ class SchemaTest < Test::Unit::TestCase
|
|
456
512
|
assert_equal("Posts.body", content.name)
|
457
513
|
end
|
458
514
|
|
459
|
-
|
460
|
-
|
461
|
-
|
515
|
+
class DefineColumnAgainTest < self
|
516
|
+
def test_same_option
|
517
|
+
Groonga::Schema.create_table("Posts") do |table|
|
518
|
+
table.text :content
|
519
|
+
end
|
520
|
+
|
521
|
+
assert_nothing_raised do
|
522
|
+
Groonga::Schema.create_table("Posts") do |table|
|
523
|
+
table.text :content
|
524
|
+
end
|
525
|
+
end
|
462
526
|
end
|
463
527
|
|
464
|
-
|
528
|
+
def test_difference_type
|
465
529
|
Groonga::Schema.create_table("Posts") do |table|
|
466
530
|
table.text :content
|
467
531
|
end
|
468
|
-
end
|
469
|
-
end
|
470
532
|
|
471
|
-
|
472
|
-
|
473
|
-
|
533
|
+
assert_raise(Groonga::Schema::ColumnCreationWithDifferentOptions) do
|
534
|
+
Groonga::Schema.create_table("Posts") do |table|
|
535
|
+
table.integer :content
|
536
|
+
end
|
537
|
+
end
|
474
538
|
end
|
475
539
|
|
476
|
-
|
540
|
+
def test_same_option_by_groonga_object
|
477
541
|
Groonga::Schema.create_table("Posts") do |table|
|
478
|
-
table.
|
542
|
+
table.text :content
|
543
|
+
end
|
544
|
+
|
545
|
+
assert_nothing_raised do
|
546
|
+
Groonga::Schema.create_table("Posts") do |table|
|
547
|
+
table.column(:content, Groonga["Text"])
|
548
|
+
end
|
479
549
|
end
|
480
550
|
end
|
481
551
|
end
|
data/test/test-table-select.rb
CHANGED
@@ -53,27 +53,37 @@ class TableSelectTest < Test::Unit::TestCase
|
|
53
53
|
:user => "darashi")
|
54
54
|
end
|
55
55
|
|
56
|
+
setup
|
57
|
+
def setup_variables
|
58
|
+
@result = nil
|
59
|
+
end
|
60
|
+
|
61
|
+
teardown
|
62
|
+
def teardown_expression_close
|
63
|
+
@result.expression.close if @result # TODO: We want to remove it.
|
64
|
+
end
|
65
|
+
|
56
66
|
def test_sub_expression
|
57
|
-
result = @comments.select do |record|
|
67
|
+
@result = @comments.select do |record|
|
58
68
|
record.match("Hello", "content") &
|
59
69
|
(record["created_at"] < Time.parse("2009-08-01"))
|
60
70
|
end
|
61
|
-
assert_equal_select_result([@comment2], result)
|
71
|
+
assert_equal_select_result([@comment2], @result)
|
62
72
|
end
|
63
73
|
|
64
74
|
def test_query
|
65
|
-
result = @comments.select("content:@Hello")
|
66
|
-
assert_equal_select_result([@comment1, @comment2], result)
|
75
|
+
@result = @comments.select("content:@Hello")
|
76
|
+
assert_equal_select_result([@comment1, @comment2], @result)
|
67
77
|
end
|
68
78
|
|
69
79
|
def test_query_with_parser
|
70
|
-
result = @comments.select("content @ \"Hello\"", :syntax => :script)
|
71
|
-
assert_equal_select_result([@comment1, @comment2], result)
|
80
|
+
@result = @comments.select("content @ \"Hello\"", :syntax => :script)
|
81
|
+
assert_equal_select_result([@comment1, @comment2], @result)
|
72
82
|
end
|
73
83
|
|
74
84
|
def test_query_with_default_column
|
75
|
-
result = @comments.select("Hello", {:default_column => 'content'})
|
76
|
-
assert_equal_select_result([@comment1, @comment2], result)
|
85
|
+
@result = @comments.select("Hello", {:default_column => 'content'})
|
86
|
+
assert_equal_select_result([@comment1, @comment2], @result)
|
77
87
|
end
|
78
88
|
|
79
89
|
def test_expression
|
@@ -82,104 +92,105 @@ class TableSelectTest < Test::Unit::TestCase
|
|
82
92
|
expression.append_object(variable)
|
83
93
|
expression.parse("content:@Hello", :syntax => :query)
|
84
94
|
expression.compile
|
85
|
-
result = @comments.select(expression)
|
86
|
-
assert_equal(expression, result.expression)
|
87
|
-
assert_equal_select_result([@comment1, @comment2], result)
|
95
|
+
@result = @comments.select(expression)
|
96
|
+
assert_equal(expression, @result.expression)
|
97
|
+
assert_equal_select_result([@comment1, @comment2], @result)
|
88
98
|
end
|
89
99
|
|
90
100
|
def test_query_with_block
|
91
|
-
result = @comments.select("content:@Hello") do |record|
|
101
|
+
@result = @comments.select("content:@Hello") do |record|
|
92
102
|
record["created_at"] < Time.parse("2009-08-01")
|
93
103
|
end
|
94
|
-
assert_equal_select_result([@comment2], result)
|
104
|
+
assert_equal_select_result([@comment2], @result)
|
95
105
|
end
|
96
106
|
|
97
107
|
def test_query_with_block_match
|
98
|
-
result = @comments.select("content:@Hello") do |record|
|
108
|
+
@result = @comments.select("content:@Hello") do |record|
|
99
109
|
record.match("World", "content")
|
100
110
|
end
|
101
|
-
assert_equal_select_result([@comment2], result)
|
111
|
+
assert_equal_select_result([@comment2], @result)
|
102
112
|
end
|
103
113
|
|
104
114
|
def test_without_block
|
115
|
+
@result = @comments.select
|
105
116
|
assert_equal_select_result([@comment1, @comment2,
|
106
117
|
@comment3, @japanese_comment],
|
107
|
-
@
|
118
|
+
@result)
|
108
119
|
end
|
109
120
|
|
110
121
|
def test_query_japanese
|
111
|
-
result = @comments.select("content:@ボロTV")
|
112
|
-
assert_equal_select_result([@japanese_comment], result)
|
122
|
+
@result = @comments.select("content:@ボロTV")
|
123
|
+
assert_equal_select_result([@japanese_comment], @result)
|
113
124
|
end
|
114
125
|
|
115
126
|
def test_but_query
|
116
|
-
result = @comments.select do |record|
|
127
|
+
@result = @comments.select do |record|
|
117
128
|
record["content"].match "Hello -World"
|
118
129
|
end
|
119
|
-
assert_equal_select_result([@comment1], result)
|
130
|
+
assert_equal_select_result([@comment1], @result)
|
120
131
|
end
|
121
132
|
|
122
133
|
def test_query_with_three_terms
|
123
|
-
result = @comments.select do |record|
|
134
|
+
@result = @comments.select do |record|
|
124
135
|
record["content"].match "Say Hello World"
|
125
136
|
end
|
126
|
-
assert_equal_select_result([], result)
|
137
|
+
assert_equal_select_result([], @result)
|
127
138
|
end
|
128
139
|
|
129
140
|
def test_query_with_brackets
|
130
|
-
result = @comments.select do |record|
|
141
|
+
@result = @comments.select do |record|
|
131
142
|
record["content"].match "Say (Hello World)"
|
132
143
|
end
|
133
|
-
assert_equal_select_result([], result)
|
144
|
+
assert_equal_select_result([], @result)
|
134
145
|
end
|
135
146
|
|
136
147
|
def test_equal_reference_column_by_key
|
137
|
-
result = @comments.select do |record|
|
148
|
+
@result = @comments.select do |record|
|
138
149
|
record["user"] == "darashi"
|
139
150
|
end
|
140
|
-
assert_equal_select_result([@japanese_comment], result)
|
151
|
+
assert_equal_select_result([@japanese_comment], @result)
|
141
152
|
end
|
142
153
|
|
143
154
|
def test_not_equal_reference_column_by_key
|
144
|
-
result = @comments.select('user != "darashi"', :syntax => :script)
|
155
|
+
@result = @comments.select('user != "darashi"', :syntax => :script)
|
145
156
|
assert_equal_select_result([@comment1, @comment2, @comment3],
|
146
|
-
result)
|
157
|
+
@result)
|
147
158
|
end
|
148
159
|
|
149
160
|
def test_not_equal_block
|
150
161
|
only_ruby19
|
151
|
-
result = @comments.select do |record|
|
162
|
+
@result = @comments.select do |record|
|
152
163
|
record.user != "darashi"
|
153
164
|
end
|
154
165
|
assert_equal_select_result([@comment1, @comment2, @comment3],
|
155
|
-
result)
|
166
|
+
@result)
|
156
167
|
end
|
157
168
|
|
158
169
|
def test_equal_reference_column_by_nonexistent_key
|
159
|
-
result = @comments.select do |record|
|
170
|
+
@result = @comments.select do |record|
|
160
171
|
record["user"] == "nonexistent"
|
161
172
|
end
|
162
|
-
assert_equal_select_result([], result)
|
173
|
+
assert_equal_select_result([], @result)
|
163
174
|
end
|
164
175
|
|
165
176
|
def test_query_key
|
166
|
-
result = @users.select do |record|
|
177
|
+
@result = @users.select do |record|
|
167
178
|
record["_key"] =~ "mori"
|
168
179
|
end
|
169
|
-
assert_equal_select_result([@users["morita"]], result)
|
180
|
+
assert_equal_select_result([@users["morita"]], @result)
|
170
181
|
end
|
171
182
|
|
172
183
|
def test_symbol
|
173
|
-
result = @comments.select do |record|
|
184
|
+
@result = @comments.select do |record|
|
174
185
|
record[:content].match("Say Hello World")
|
175
186
|
end
|
176
|
-
assert_equal_select_result([], result)
|
187
|
+
assert_equal_select_result([], @result)
|
177
188
|
end
|
178
189
|
|
179
190
|
def test_method
|
180
|
-
result = @comments.select do |record|
|
191
|
+
@result = @comments.select do |record|
|
181
192
|
record.content.match("Say Hello World")
|
182
193
|
end
|
183
|
-
assert_equal_select_result([], result)
|
194
|
+
assert_equal_select_result([], @result)
|
184
195
|
end
|
185
196
|
end
|
@@ -62,6 +62,36 @@ class VariableSizeColumnTest < Test::Unit::TestCase
|
|
62
62
|
assert_not_predicate(@nick_names, :scalar?)
|
63
63
|
end
|
64
64
|
|
65
|
+
def test_compressed?
|
66
|
+
description = @users.define_column("description", "ShortText",
|
67
|
+
:compress => :zlib)
|
68
|
+
if context.support_zlib?
|
69
|
+
assert_predicate(description, :compressed?)
|
70
|
+
else
|
71
|
+
assert_not_predicate(description, :compressed?)
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
def test_compressed_zlib?
|
76
|
+
description = @users.define_column("description", "ShortText",
|
77
|
+
:compress => :zlib)
|
78
|
+
if context.support_zlib?
|
79
|
+
assert_send([description, :compressed?, :zlib])
|
80
|
+
else
|
81
|
+
assert_not_send([description, :compressed?, :zlib])
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
def test_compressed_lzo?
|
86
|
+
description = @users.define_column("description", "ShortText",
|
87
|
+
:compress => :lzo)
|
88
|
+
if context.support_lzo?
|
89
|
+
assert_send([description, :compressed?, :lzo])
|
90
|
+
else
|
91
|
+
assert_not_send([description, :compressed?, :lzo])
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
65
95
|
def test_inspect
|
66
96
|
assert_equal("#<Groonga::VariableSizeColumn " +
|
67
97
|
"id: <#{@name.id}>, " +
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/vendor/local/bin/mecab.exe
CHANGED
Binary file
|
@@ -1,5 +1,6 @@
|
|
1
1
|
/* -*- c-basic-offset: 2 -*- */
|
2
|
-
/*
|
2
|
+
/*
|
3
|
+
Copyright(C) 2010-2012 Brazil
|
3
4
|
|
4
5
|
This library is free software; you can redistribute it and/or
|
5
6
|
modify it under the terms of the GNU Lesser General Public
|
@@ -17,7 +18,7 @@
|
|
17
18
|
#ifndef GRN_PLUGIN_H
|
18
19
|
#define GRN_PLUGIN_H
|
19
20
|
|
20
|
-
#include
|
21
|
+
#include <groonga.h>
|
21
22
|
|
22
23
|
#ifdef __cplusplus
|
23
24
|
extern "C" {
|