rroonga 1.3.1-x86-mingw32 → 2.0.0-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile +1 -1
- data/Rakefile +2 -7
- data/ext/groonga/rb-grn-column.c +34 -37
- data/ext/groonga/rb-grn-context.c +63 -2
- data/ext/groonga/rb-grn-expression.c +21 -13
- data/ext/groonga/rb-grn-object.c +2 -0
- data/ext/groonga/rb-grn-table.c +57 -51
- data/ext/groonga/rb-grn.h +10 -4
- data/lib/1.8/groonga.so +0 -0
- data/lib/1.9/groonga.so +0 -0
- data/lib/groonga/schema.rb +75 -46
- data/lib/groonga.rb +9 -6
- data/rroonga-build.rb +2 -2
- data/test/run-test.rb +1 -2
- data/test/test-table-select.rb +0 -5
- data/test/test-type.rb +2 -2
- data/test/test-version.rb +40 -10
- data/vendor/local/bin/grntest.exe +0 -0
- data/vendor/local/bin/groonga.exe +0 -0
- data/vendor/local/bin/libgcc_s_sjlj-1.dll +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/libstdc++-6.dll +0 -0
- data/vendor/local/bin/mecab.exe +0 -0
- data/vendor/local/include/groonga/groonga/plugin.h +113 -0
- data/vendor/local/include/groonga/groonga/tokenizer.h +146 -0
- data/vendor/local/include/groonga/groonga.h +18 -18
- data/vendor/local/include/msgpack/object.h +98 -0
- data/vendor/local/include/msgpack/object.hpp +412 -0
- data/vendor/local/include/msgpack/pack.h +143 -0
- data/vendor/local/include/msgpack/pack.hpp +318 -0
- data/vendor/local/include/msgpack/pack_define.h +26 -0
- data/vendor/local/include/msgpack/pack_template.h +766 -0
- data/vendor/local/include/msgpack/sbuffer.h +111 -0
- data/vendor/local/include/msgpack/sbuffer.hpp +112 -0
- data/vendor/local/include/msgpack/sysdep.h +195 -0
- data/vendor/local/include/msgpack/type/bool.hpp +55 -0
- data/vendor/local/include/msgpack/type/define.hpp +3279 -0
- data/vendor/local/include/msgpack/type/deque.hpp +77 -0
- data/vendor/local/include/msgpack/type/fixint.hpp +172 -0
- data/vendor/local/include/msgpack/type/float.hpp +82 -0
- data/vendor/local/include/msgpack/type/int.hpp +211 -0
- data/vendor/local/include/msgpack/type/list.hpp +77 -0
- data/vendor/local/include/msgpack/type/map.hpp +205 -0
- data/vendor/local/include/msgpack/type/nil.hpp +65 -0
- data/vendor/local/include/msgpack/type/pair.hpp +61 -0
- data/vendor/local/include/msgpack/type/raw.hpp +94 -0
- data/vendor/local/include/msgpack/type/set.hpp +122 -0
- data/vendor/local/include/msgpack/type/string.hpp +62 -0
- data/vendor/local/include/msgpack/type/tr1/unordered_map.hpp +129 -0
- data/vendor/local/include/msgpack/type/tr1/unordered_set.hpp +122 -0
- data/vendor/local/include/msgpack/type/tuple.hpp +13691 -0
- data/vendor/local/include/msgpack/type/vector.hpp +81 -0
- data/vendor/local/include/msgpack/type.hpp +16 -0
- data/vendor/local/include/msgpack/unpack.h +260 -0
- data/vendor/local/include/msgpack/unpack.hpp +374 -0
- data/vendor/local/include/msgpack/unpack_define.h +93 -0
- data/vendor/local/include/msgpack/unpack_template.h +409 -0
- data/vendor/local/include/msgpack/version.h +40 -0
- data/vendor/local/include/msgpack/vrefbuffer.h +142 -0
- data/vendor/local/include/msgpack/vrefbuffer.hpp +97 -0
- data/vendor/local/include/msgpack/zbuffer.h +207 -0
- data/vendor/local/include/msgpack/zbuffer.hpp +100 -0
- data/vendor/local/include/msgpack/zone.h +147 -0
- data/vendor/local/include/msgpack/zone.hpp +455 -0
- data/vendor/local/include/msgpack.h +30 -0
- data/vendor/local/include/msgpack.hpp +24 -0
- 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 +2 -2
- 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/libmsgpack.la +41 -0
- data/vendor/local/lib/libmsgpackc.a +0 -0
- data/vendor/local/lib/libmsgpackc.dll.a +0 -0
- data/vendor/local/lib/libmsgpackc.la +41 -0
- data/vendor/local/lib/pkgconfig/groonga.pc +4 -4
- 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 +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/report.txt +6 -7
- data/vendor/local/share/doc/groonga/en/html/_sources/indexing.txt +108 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/news/1.2.x.txt +386 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +51 -385
- data/vendor/local/share/doc/groonga/en/html/_sources/reference.txt +1 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/spec/search.txt +4 -4
- data/vendor/local/share/doc/groonga/en/html/characteristic.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/command_version.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/cache_limit.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/check.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/clearlock.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/column_create.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/column_list.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/column_remove.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/define_selector.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/defrag.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/delete.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/dump.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/load.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/log_level.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/log_put.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/log_reopen.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/quit.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/select.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/shutdown.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/status.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/suggest.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/commands/table_create.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/table_list.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/table_remove.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands/view_add.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/commands.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/community.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/document.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/report.html +9 -9
- data/vendor/local/share/doc/groonga/en/html/contribution.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/executables/grnslap.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/executables/grntest.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/executables/groonga-http.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/executables/groonga-suggest-create-dataset.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/executables/groonga.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/executables.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/expr.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/functions/edit_distance.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/functions/geo_distance.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/functions/geo_in_circle.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/functions/geo_in_rectangle.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/functions/now.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/functions/rand.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/functions.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/genindex.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/index.html +14 -8
- data/vendor/local/share/doc/groonga/en/html/indexing.html +237 -0
- data/vendor/local/share/doc/groonga/en/html/install.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/limitations.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/log.html +20 -20
- 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/1.2.x.html +566 -0
- data/vendor/local/share/doc/groonga/en/html/news/senna.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news.html +65 -464
- data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/en/html/output.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/pseudo_column.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference.html +14 -8
- 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 +9 -9
- data/vendor/local/share/doc/groonga/en/html/spec.html +9 -9
- data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/suggest.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/type.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/commands/suggest.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/report.txt +6 -7
- data/vendor/local/share/doc/groonga/ja/html/_sources/indexing.txt +108 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.2.x.txt +386 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +51 -385
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference.txt +1 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/spec/search.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/characteristic.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/command_version.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/cache_limit.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/check.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/clearlock.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/column_create.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/column_list.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/column_remove.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/define_selector.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/defrag.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/delete.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/dump.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/load.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/log_level.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/log_put.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/log_reopen.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/quit.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/select.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/shutdown.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/status.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/suggest.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/table_create.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/table_list.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/table_remove.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands/view_add.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/commands.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/community.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/document.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/executables/grnslap.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/executables/grntest.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga-http.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga-suggest-create-dataset.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/executables.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/expr.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/functions/edit_distance.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/functions/geo_distance.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_circle.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_rectangle.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/functions/now.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/functions/rand.html +10 -10
- data/vendor/local/share/doc/groonga/ja/html/functions.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/genindex.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/index.html +14 -8
- data/vendor/local/share/doc/groonga/ja/html/indexing.html +215 -0
- data/vendor/local/share/doc/groonga/ja/html/install.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/log.html +20 -20
- 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/1.2.x.html +528 -0
- data/vendor/local/share/doc/groonga/ja/html/news/senna.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news.html +62 -425
- data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/ja/html/output.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/pseudo_column.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference.html +14 -8
- 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 +9 -9
- data/vendor/local/share/doc/groonga/ja/html/spec.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/type.html +5 -5
- data/vendor/local/share/doc/groonga/source/commands/suggest.txt +1 -1
- data/vendor/local/share/doc/groonga/source/contribution/report.txt +6 -7
- data/vendor/local/share/doc/groonga/source/indexing.txt +108 -0
- data/vendor/local/share/doc/groonga/source/news/1.2.x.txt +386 -0
- data/vendor/local/share/doc/groonga/source/news.txt +51 -385
- data/vendor/local/share/doc/groonga/source/reference.txt +1 -0
- data/vendor/local/share/doc/groonga/source/spec/search.txt +4 -4
- data/vendor/local/share/license/groonga/COPYING +10 -12
- data/vendor/local/share/license/msgpack/AUTHORS +1 -0
- data/vendor/local/share/license/msgpack/COPYING +14 -0
- data/vendor/local/share/license/msgpack/LICENSE +202 -0
- data/vendor/local/share/man/ja/man1/groonga.1 +113 -5
- data/vendor/local/share/man/man1/groonga.1 +142 -11
- metadata +66 -3
- data/vendor/local/share/doc/groonga/source/update_execution_example.py +0 -141
@@ -0,0 +1,374 @@
|
|
1
|
+
//
|
2
|
+
// MessagePack for C++ deserializing routine
|
3
|
+
//
|
4
|
+
// Copyright (C) 2008-2009 FURUHASHI Sadayuki
|
5
|
+
//
|
6
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
// you may not use this file except in compliance with the License.
|
8
|
+
// You may obtain a copy of the License at
|
9
|
+
//
|
10
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
//
|
12
|
+
// Unless required by applicable law or agreed to in writing, software
|
13
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
// See the License for the specific language governing permissions and
|
16
|
+
// limitations under the License.
|
17
|
+
//
|
18
|
+
#ifndef MSGPACK_UNPACK_HPP__
|
19
|
+
#define MSGPACK_UNPACK_HPP__
|
20
|
+
|
21
|
+
#include "unpack.h"
|
22
|
+
#include "object.hpp"
|
23
|
+
#include "zone.hpp"
|
24
|
+
#include <memory>
|
25
|
+
#include <stdexcept>
|
26
|
+
|
27
|
+
// backward compatibility
|
28
|
+
#ifndef MSGPACK_UNPACKER_DEFAULT_INITIAL_BUFFER_SIZE
|
29
|
+
#define MSGPACK_UNPACKER_DEFAULT_INITIAL_BUFFER_SIZE MSGPACK_UNPACKER_INIT_BUFFER_SIZE
|
30
|
+
#endif
|
31
|
+
|
32
|
+
namespace msgpack {
|
33
|
+
|
34
|
+
|
35
|
+
struct unpack_error : public std::runtime_error {
|
36
|
+
unpack_error(const std::string& msg) :
|
37
|
+
std::runtime_error(msg) { }
|
38
|
+
};
|
39
|
+
|
40
|
+
|
41
|
+
class unpacked {
|
42
|
+
public:
|
43
|
+
unpacked() { }
|
44
|
+
|
45
|
+
unpacked(object obj, std::auto_ptr<msgpack::zone> z) :
|
46
|
+
m_obj(obj), m_zone(z) { }
|
47
|
+
|
48
|
+
object& get()
|
49
|
+
{ return m_obj; }
|
50
|
+
|
51
|
+
const object& get() const
|
52
|
+
{ return m_obj; }
|
53
|
+
|
54
|
+
std::auto_ptr<msgpack::zone>& zone()
|
55
|
+
{ return m_zone; }
|
56
|
+
|
57
|
+
const std::auto_ptr<msgpack::zone>& zone() const
|
58
|
+
{ return m_zone; }
|
59
|
+
|
60
|
+
private:
|
61
|
+
object m_obj;
|
62
|
+
std::auto_ptr<msgpack::zone> m_zone;
|
63
|
+
};
|
64
|
+
|
65
|
+
|
66
|
+
class unpacker : public msgpack_unpacker {
|
67
|
+
public:
|
68
|
+
unpacker(size_t init_buffer_size = MSGPACK_UNPACKER_INIT_BUFFER_SIZE);
|
69
|
+
~unpacker();
|
70
|
+
|
71
|
+
public:
|
72
|
+
/*! 1. reserve buffer. at least `size' bytes of capacity will be ready */
|
73
|
+
void reserve_buffer(size_t size = MSGPACK_UNPACKER_RESERVE_SIZE);
|
74
|
+
|
75
|
+
/*! 2. read data to the buffer() up to buffer_capacity() bytes */
|
76
|
+
char* buffer();
|
77
|
+
size_t buffer_capacity() const;
|
78
|
+
|
79
|
+
/*! 3. specify the number of bytes actually copied */
|
80
|
+
void buffer_consumed(size_t size);
|
81
|
+
|
82
|
+
/*! 4. repeat next() until it retunrs false */
|
83
|
+
bool next(unpacked* result);
|
84
|
+
|
85
|
+
/*! 5. check if the size of message doesn't exceed assumption. */
|
86
|
+
size_t message_size() const;
|
87
|
+
|
88
|
+
// Basic usage of the unpacker is as following:
|
89
|
+
//
|
90
|
+
// msgpack::unpacker pac;
|
91
|
+
// while( /* input is readable */ ) {
|
92
|
+
//
|
93
|
+
// // 1.
|
94
|
+
// pac.reserve_buffer(32*1024);
|
95
|
+
//
|
96
|
+
// // 2.
|
97
|
+
// size_t bytes = input.readsome(pac.buffer(), pac.buffer_capacity());
|
98
|
+
//
|
99
|
+
// // error handling ...
|
100
|
+
//
|
101
|
+
// // 3.
|
102
|
+
// pac.buffer_consumed(bytes);
|
103
|
+
//
|
104
|
+
// // 4.
|
105
|
+
// msgpack::unpacked result;
|
106
|
+
// while(pac.next(&result)) {
|
107
|
+
// // do some with the object with the zone.
|
108
|
+
// msgpack::object obj = result.get();
|
109
|
+
// std::auto_ptr<msgpack:zone> z = result.zone();
|
110
|
+
// on_message(obj, z);
|
111
|
+
//
|
112
|
+
// //// boost::shared_ptr is also usable:
|
113
|
+
// // boost::shared_ptr<msgpack::zone> life(z.release());
|
114
|
+
// // on_message(result.get(), life);
|
115
|
+
// }
|
116
|
+
//
|
117
|
+
// // 5.
|
118
|
+
// if(pac.message_size() > 10*1024*1024) {
|
119
|
+
// throw std::runtime_error("message is too large");
|
120
|
+
// }
|
121
|
+
// }
|
122
|
+
//
|
123
|
+
|
124
|
+
/*! for backward compatibility */
|
125
|
+
bool execute();
|
126
|
+
|
127
|
+
/*! for backward compatibility */
|
128
|
+
object data();
|
129
|
+
|
130
|
+
/*! for backward compatibility */
|
131
|
+
zone* release_zone();
|
132
|
+
|
133
|
+
/*! for backward compatibility */
|
134
|
+
void reset_zone();
|
135
|
+
|
136
|
+
/*! for backward compatibility */
|
137
|
+
void reset();
|
138
|
+
|
139
|
+
public:
|
140
|
+
// These functions are usable when non-MessagePack message follows after
|
141
|
+
// MessagePack message.
|
142
|
+
size_t parsed_size() const;
|
143
|
+
|
144
|
+
/*! get address of the buffer that is not parsed */
|
145
|
+
char* nonparsed_buffer();
|
146
|
+
size_t nonparsed_size() const;
|
147
|
+
|
148
|
+
/*! skip specified size of non-parsed buffer, leaving the buffer */
|
149
|
+
// Note that the `size' argument must be smaller than nonparsed_size()
|
150
|
+
void skip_nonparsed_buffer(size_t size);
|
151
|
+
|
152
|
+
/*! remove unparsed buffer from unpacker */
|
153
|
+
// Note that reset() leaves non-parsed buffer.
|
154
|
+
void remove_nonparsed_buffer();
|
155
|
+
|
156
|
+
private:
|
157
|
+
typedef msgpack_unpacker base;
|
158
|
+
|
159
|
+
private:
|
160
|
+
unpacker(const unpacker&);
|
161
|
+
};
|
162
|
+
|
163
|
+
|
164
|
+
static void unpack(unpacked* result,
|
165
|
+
const char* data, size_t len, size_t* offset = NULL);
|
166
|
+
|
167
|
+
|
168
|
+
// obsolete
|
169
|
+
typedef enum {
|
170
|
+
UNPACK_SUCCESS = 2,
|
171
|
+
UNPACK_EXTRA_BYTES = 1,
|
172
|
+
UNPACK_CONTINUE = 0,
|
173
|
+
UNPACK_PARSE_ERROR = -1,
|
174
|
+
} unpack_return;
|
175
|
+
|
176
|
+
// obsolete
|
177
|
+
static unpack_return unpack(const char* data, size_t len, size_t* off,
|
178
|
+
zone* z, object* result);
|
179
|
+
|
180
|
+
|
181
|
+
// obsolete
|
182
|
+
static object unpack(const char* data, size_t len, zone& z, size_t* off = NULL);
|
183
|
+
|
184
|
+
|
185
|
+
inline unpacker::unpacker(size_t initial_buffer_size)
|
186
|
+
{
|
187
|
+
if(!msgpack_unpacker_init(this, initial_buffer_size)) {
|
188
|
+
throw std::bad_alloc();
|
189
|
+
}
|
190
|
+
}
|
191
|
+
|
192
|
+
inline unpacker::~unpacker()
|
193
|
+
{
|
194
|
+
msgpack_unpacker_destroy(this);
|
195
|
+
}
|
196
|
+
|
197
|
+
|
198
|
+
inline void unpacker::reserve_buffer(size_t size)
|
199
|
+
{
|
200
|
+
if(!msgpack_unpacker_reserve_buffer(this, size)) {
|
201
|
+
throw std::bad_alloc();
|
202
|
+
}
|
203
|
+
}
|
204
|
+
|
205
|
+
inline char* unpacker::buffer()
|
206
|
+
{
|
207
|
+
return msgpack_unpacker_buffer(this);
|
208
|
+
}
|
209
|
+
|
210
|
+
inline size_t unpacker::buffer_capacity() const
|
211
|
+
{
|
212
|
+
return msgpack_unpacker_buffer_capacity(this);
|
213
|
+
}
|
214
|
+
|
215
|
+
inline void unpacker::buffer_consumed(size_t size)
|
216
|
+
{
|
217
|
+
return msgpack_unpacker_buffer_consumed(this, size);
|
218
|
+
}
|
219
|
+
|
220
|
+
inline bool unpacker::next(unpacked* result)
|
221
|
+
{
|
222
|
+
int ret = msgpack_unpacker_execute(this);
|
223
|
+
|
224
|
+
if(ret < 0) {
|
225
|
+
throw unpack_error("parse error");
|
226
|
+
}
|
227
|
+
|
228
|
+
if(ret == 0) {
|
229
|
+
result->zone().reset();
|
230
|
+
result->get() = object();
|
231
|
+
return false;
|
232
|
+
|
233
|
+
} else {
|
234
|
+
result->zone().reset( release_zone() );
|
235
|
+
result->get() = data();
|
236
|
+
reset();
|
237
|
+
return true;
|
238
|
+
}
|
239
|
+
}
|
240
|
+
|
241
|
+
|
242
|
+
inline bool unpacker::execute()
|
243
|
+
{
|
244
|
+
int ret = msgpack_unpacker_execute(this);
|
245
|
+
if(ret < 0) {
|
246
|
+
throw unpack_error("parse error");
|
247
|
+
} else if(ret == 0) {
|
248
|
+
return false;
|
249
|
+
} else {
|
250
|
+
return true;
|
251
|
+
}
|
252
|
+
}
|
253
|
+
|
254
|
+
inline object unpacker::data()
|
255
|
+
{
|
256
|
+
return msgpack_unpacker_data(this);
|
257
|
+
}
|
258
|
+
|
259
|
+
inline zone* unpacker::release_zone()
|
260
|
+
{
|
261
|
+
return static_cast<msgpack::zone*>(msgpack_unpacker_release_zone(static_cast<msgpack_unpacker*>(this)));
|
262
|
+
}
|
263
|
+
|
264
|
+
inline void unpacker::reset_zone()
|
265
|
+
{
|
266
|
+
msgpack_unpacker_reset_zone(this);
|
267
|
+
}
|
268
|
+
|
269
|
+
inline void unpacker::reset()
|
270
|
+
{
|
271
|
+
msgpack_unpacker_reset(this);
|
272
|
+
}
|
273
|
+
|
274
|
+
|
275
|
+
inline size_t unpacker::message_size() const
|
276
|
+
{
|
277
|
+
return msgpack_unpacker_message_size(this);
|
278
|
+
}
|
279
|
+
|
280
|
+
inline size_t unpacker::parsed_size() const
|
281
|
+
{
|
282
|
+
return msgpack_unpacker_parsed_size(this);
|
283
|
+
}
|
284
|
+
|
285
|
+
inline char* unpacker::nonparsed_buffer()
|
286
|
+
{
|
287
|
+
return base::buffer + base::off;
|
288
|
+
}
|
289
|
+
|
290
|
+
inline size_t unpacker::nonparsed_size() const
|
291
|
+
{
|
292
|
+
return base::used - base::off;
|
293
|
+
}
|
294
|
+
|
295
|
+
inline void unpacker::skip_nonparsed_buffer(size_t size)
|
296
|
+
{
|
297
|
+
base::off += size;
|
298
|
+
}
|
299
|
+
|
300
|
+
inline void unpacker::remove_nonparsed_buffer()
|
301
|
+
{
|
302
|
+
base::used = base::off;
|
303
|
+
}
|
304
|
+
|
305
|
+
|
306
|
+
inline void unpack(unpacked* result,
|
307
|
+
const char* data, size_t len, size_t* offset)
|
308
|
+
{
|
309
|
+
msgpack::object obj;
|
310
|
+
std::auto_ptr<msgpack::zone> z(new zone());
|
311
|
+
|
312
|
+
unpack_return ret = (unpack_return)msgpack_unpack(
|
313
|
+
data, len, offset, z.get(),
|
314
|
+
reinterpret_cast<msgpack_object*>(&obj));
|
315
|
+
|
316
|
+
switch(ret) {
|
317
|
+
case UNPACK_SUCCESS:
|
318
|
+
result->get() = obj;
|
319
|
+
result->zone() = z;
|
320
|
+
return;
|
321
|
+
|
322
|
+
case UNPACK_EXTRA_BYTES:
|
323
|
+
result->get() = obj;
|
324
|
+
result->zone() = z;
|
325
|
+
return;
|
326
|
+
|
327
|
+
case UNPACK_CONTINUE:
|
328
|
+
throw unpack_error("insufficient bytes");
|
329
|
+
|
330
|
+
case UNPACK_PARSE_ERROR:
|
331
|
+
default:
|
332
|
+
throw unpack_error("parse error");
|
333
|
+
}
|
334
|
+
}
|
335
|
+
|
336
|
+
|
337
|
+
// obsolete
|
338
|
+
inline unpack_return unpack(const char* data, size_t len, size_t* off,
|
339
|
+
zone* z, object* result)
|
340
|
+
{
|
341
|
+
return (unpack_return)msgpack_unpack(data, len, off,
|
342
|
+
z, reinterpret_cast<msgpack_object*>(result));
|
343
|
+
}
|
344
|
+
|
345
|
+
// obsolete
|
346
|
+
inline object unpack(const char* data, size_t len, zone& z, size_t* off)
|
347
|
+
{
|
348
|
+
object result;
|
349
|
+
|
350
|
+
switch( msgpack::unpack(data, len, off, &z, &result) ) {
|
351
|
+
case UNPACK_SUCCESS:
|
352
|
+
return result;
|
353
|
+
|
354
|
+
case UNPACK_EXTRA_BYTES:
|
355
|
+
if(off) {
|
356
|
+
return result;
|
357
|
+
} else {
|
358
|
+
throw unpack_error("extra bytes");
|
359
|
+
}
|
360
|
+
|
361
|
+
case UNPACK_CONTINUE:
|
362
|
+
throw unpack_error("insufficient bytes");
|
363
|
+
|
364
|
+
case UNPACK_PARSE_ERROR:
|
365
|
+
default:
|
366
|
+
throw unpack_error("parse error");
|
367
|
+
}
|
368
|
+
}
|
369
|
+
|
370
|
+
|
371
|
+
} // namespace msgpack
|
372
|
+
|
373
|
+
#endif /* msgpack/unpack.hpp */
|
374
|
+
|
@@ -0,0 +1,93 @@
|
|
1
|
+
/*
|
2
|
+
* MessagePack unpacking routine template
|
3
|
+
*
|
4
|
+
* Copyright (C) 2008-2010 FURUHASHI Sadayuki
|
5
|
+
*
|
6
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
* you may not use this file except in compliance with the License.
|
8
|
+
* You may obtain a copy of the License at
|
9
|
+
*
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
*
|
12
|
+
* Unless required by applicable law or agreed to in writing, software
|
13
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
* See the License for the specific language governing permissions and
|
16
|
+
* limitations under the License.
|
17
|
+
*/
|
18
|
+
#ifndef MSGPACK_UNPACK_DEFINE_H__
|
19
|
+
#define MSGPACK_UNPACK_DEFINE_H__
|
20
|
+
|
21
|
+
#include "msgpack/sysdep.h"
|
22
|
+
#include <stdlib.h>
|
23
|
+
#include <string.h>
|
24
|
+
#include <assert.h>
|
25
|
+
#include <stdio.h>
|
26
|
+
|
27
|
+
#ifdef __cplusplus
|
28
|
+
extern "C" {
|
29
|
+
#endif
|
30
|
+
|
31
|
+
|
32
|
+
#ifndef MSGPACK_EMBED_STACK_SIZE
|
33
|
+
#define MSGPACK_EMBED_STACK_SIZE 32
|
34
|
+
#endif
|
35
|
+
|
36
|
+
|
37
|
+
typedef enum {
|
38
|
+
CS_HEADER = 0x00, // nil
|
39
|
+
|
40
|
+
//CS_ = 0x01,
|
41
|
+
//CS_ = 0x02, // false
|
42
|
+
//CS_ = 0x03, // true
|
43
|
+
|
44
|
+
//CS_ = 0x04,
|
45
|
+
//CS_ = 0x05,
|
46
|
+
//CS_ = 0x06,
|
47
|
+
//CS_ = 0x07,
|
48
|
+
|
49
|
+
//CS_ = 0x08,
|
50
|
+
//CS_ = 0x09,
|
51
|
+
CS_FLOAT = 0x0a,
|
52
|
+
CS_DOUBLE = 0x0b,
|
53
|
+
CS_UINT_8 = 0x0c,
|
54
|
+
CS_UINT_16 = 0x0d,
|
55
|
+
CS_UINT_32 = 0x0e,
|
56
|
+
CS_UINT_64 = 0x0f,
|
57
|
+
CS_INT_8 = 0x10,
|
58
|
+
CS_INT_16 = 0x11,
|
59
|
+
CS_INT_32 = 0x12,
|
60
|
+
CS_INT_64 = 0x13,
|
61
|
+
|
62
|
+
//CS_ = 0x14,
|
63
|
+
//CS_ = 0x15,
|
64
|
+
//CS_BIG_INT_16 = 0x16,
|
65
|
+
//CS_BIG_INT_32 = 0x17,
|
66
|
+
//CS_BIG_FLOAT_16 = 0x18,
|
67
|
+
//CS_BIG_FLOAT_32 = 0x19,
|
68
|
+
CS_RAW_16 = 0x1a,
|
69
|
+
CS_RAW_32 = 0x1b,
|
70
|
+
CS_ARRAY_16 = 0x1c,
|
71
|
+
CS_ARRAY_32 = 0x1d,
|
72
|
+
CS_MAP_16 = 0x1e,
|
73
|
+
CS_MAP_32 = 0x1f,
|
74
|
+
|
75
|
+
//ACS_BIG_INT_VALUE,
|
76
|
+
//ACS_BIG_FLOAT_VALUE,
|
77
|
+
ACS_RAW_VALUE,
|
78
|
+
} msgpack_unpack_state;
|
79
|
+
|
80
|
+
|
81
|
+
typedef enum {
|
82
|
+
CT_ARRAY_ITEM,
|
83
|
+
CT_MAP_KEY,
|
84
|
+
CT_MAP_VALUE,
|
85
|
+
} msgpack_container_type;
|
86
|
+
|
87
|
+
|
88
|
+
#ifdef __cplusplus
|
89
|
+
}
|
90
|
+
#endif
|
91
|
+
|
92
|
+
#endif /* msgpack/unpack_define.h */
|
93
|
+
|