rroonga 1.3.1-x86-mingw32 → 2.0.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- 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,81 @@
|
|
1
|
+
//
|
2
|
+
// MessagePack for C++ static resolution 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_TYPE_VECTOR_HPP__
|
19
|
+
#define MSGPACK_TYPE_VECTOR_HPP__
|
20
|
+
|
21
|
+
#include "msgpack/object.hpp"
|
22
|
+
#include <vector>
|
23
|
+
|
24
|
+
namespace msgpack {
|
25
|
+
|
26
|
+
|
27
|
+
template <typename T>
|
28
|
+
inline std::vector<T>& operator>> (object o, std::vector<T>& v)
|
29
|
+
{
|
30
|
+
if(o.type != type::ARRAY) { throw type_error(); }
|
31
|
+
v.resize(o.via.array.size);
|
32
|
+
if(o.via.array.size > 0) {
|
33
|
+
object* p = o.via.array.ptr;
|
34
|
+
object* const pend = o.via.array.ptr + o.via.array.size;
|
35
|
+
T* it = &v[0];
|
36
|
+
do {
|
37
|
+
p->convert(it);
|
38
|
+
++p;
|
39
|
+
++it;
|
40
|
+
} while(p < pend);
|
41
|
+
}
|
42
|
+
return v;
|
43
|
+
}
|
44
|
+
|
45
|
+
template <typename Stream, typename T>
|
46
|
+
inline packer<Stream>& operator<< (packer<Stream>& o, const std::vector<T>& v)
|
47
|
+
{
|
48
|
+
o.pack_array(v.size());
|
49
|
+
for(typename std::vector<T>::const_iterator it(v.begin()), it_end(v.end());
|
50
|
+
it != it_end; ++it) {
|
51
|
+
o.pack(*it);
|
52
|
+
}
|
53
|
+
return o;
|
54
|
+
}
|
55
|
+
|
56
|
+
template <typename T>
|
57
|
+
inline void operator<< (object::with_zone& o, const std::vector<T>& v)
|
58
|
+
{
|
59
|
+
o.type = type::ARRAY;
|
60
|
+
if(v.empty()) {
|
61
|
+
o.via.array.ptr = NULL;
|
62
|
+
o.via.array.size = 0;
|
63
|
+
} else {
|
64
|
+
object* p = (object*)o.zone->malloc(sizeof(object)*v.size());
|
65
|
+
object* const pend = p + v.size();
|
66
|
+
o.via.array.ptr = p;
|
67
|
+
o.via.array.size = v.size();
|
68
|
+
typename std::vector<T>::const_iterator it(v.begin());
|
69
|
+
do {
|
70
|
+
*p = object(*it, o.zone);
|
71
|
+
++p;
|
72
|
+
++it;
|
73
|
+
} while(p < pend);
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
|
78
|
+
} // namespace msgpack
|
79
|
+
|
80
|
+
#endif /* msgpack/type/vector.hpp */
|
81
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
#include "type/bool.hpp"
|
2
|
+
#include "type/deque.hpp"
|
3
|
+
#include "type/fixint.hpp"
|
4
|
+
#include "type/float.hpp"
|
5
|
+
#include "type/int.hpp"
|
6
|
+
#include "type/list.hpp"
|
7
|
+
#include "type/map.hpp"
|
8
|
+
#include "type/nil.hpp"
|
9
|
+
#include "type/pair.hpp"
|
10
|
+
#include "type/raw.hpp"
|
11
|
+
#include "type/set.hpp"
|
12
|
+
#include "type/string.hpp"
|
13
|
+
#include "type/vector.hpp"
|
14
|
+
#include "type/tuple.hpp"
|
15
|
+
#include "type/define.hpp"
|
16
|
+
|
@@ -0,0 +1,260 @@
|
|
1
|
+
/*
|
2
|
+
* MessagePack for C unpacking 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_UNPACKER_H__
|
19
|
+
#define MSGPACK_UNPACKER_H__
|
20
|
+
|
21
|
+
#include "zone.h"
|
22
|
+
#include "object.h"
|
23
|
+
#include <string.h>
|
24
|
+
|
25
|
+
#ifdef __cplusplus
|
26
|
+
extern "C" {
|
27
|
+
#endif
|
28
|
+
|
29
|
+
|
30
|
+
/**
|
31
|
+
* @defgroup msgpack_unpack Deserializer
|
32
|
+
* @ingroup msgpack
|
33
|
+
* @{
|
34
|
+
*/
|
35
|
+
|
36
|
+
typedef struct msgpack_unpacked {
|
37
|
+
msgpack_zone* zone;
|
38
|
+
msgpack_object data;
|
39
|
+
} msgpack_unpacked;
|
40
|
+
|
41
|
+
bool msgpack_unpack_next(msgpack_unpacked* result,
|
42
|
+
const char* data, size_t len, size_t* off);
|
43
|
+
|
44
|
+
/** @} */
|
45
|
+
|
46
|
+
|
47
|
+
/**
|
48
|
+
* @defgroup msgpack_unpacker Streaming deserializer
|
49
|
+
* @ingroup msgpack
|
50
|
+
* @{
|
51
|
+
*/
|
52
|
+
|
53
|
+
typedef struct msgpack_unpacker {
|
54
|
+
char* buffer;
|
55
|
+
size_t used;
|
56
|
+
size_t free;
|
57
|
+
size_t off;
|
58
|
+
size_t parsed;
|
59
|
+
msgpack_zone* z;
|
60
|
+
size_t initial_buffer_size;
|
61
|
+
void* ctx;
|
62
|
+
} msgpack_unpacker;
|
63
|
+
|
64
|
+
|
65
|
+
#ifndef MSGPACK_UNPACKER_INIT_BUFFER_SIZE
|
66
|
+
#define MSGPACK_UNPACKER_INIT_BUFFER_SIZE (64*1024)
|
67
|
+
#endif
|
68
|
+
|
69
|
+
/**
|
70
|
+
* Initializes a streaming deserializer.
|
71
|
+
* The initialized deserializer must be destroyed by msgpack_unpacker_destroy(msgpack_unpacker*).
|
72
|
+
*/
|
73
|
+
bool msgpack_unpacker_init(msgpack_unpacker* mpac, size_t initial_buffer_size);
|
74
|
+
|
75
|
+
/**
|
76
|
+
* Destroys a streaming deserializer initialized by msgpack_unpacker_init(msgpack_unpacker*, size_t).
|
77
|
+
*/
|
78
|
+
void msgpack_unpacker_destroy(msgpack_unpacker* mpac);
|
79
|
+
|
80
|
+
|
81
|
+
/**
|
82
|
+
* Creates a streaming deserializer.
|
83
|
+
* The created deserializer must be destroyed by msgpack_unpacker_free(msgpack_unpacker*).
|
84
|
+
*/
|
85
|
+
msgpack_unpacker* msgpack_unpacker_new(size_t initial_buffer_size);
|
86
|
+
|
87
|
+
/**
|
88
|
+
* Frees a streaming deserializer created by msgpack_unpacker_new(size_t).
|
89
|
+
*/
|
90
|
+
void msgpack_unpacker_free(msgpack_unpacker* mpac);
|
91
|
+
|
92
|
+
|
93
|
+
#ifndef MSGPACK_UNPACKER_RESERVE_SIZE
|
94
|
+
#define MSGPACK_UNPACKER_RESERVE_SIZE (32*1024)
|
95
|
+
#endif
|
96
|
+
|
97
|
+
/**
|
98
|
+
* Reserves free space of the internal buffer.
|
99
|
+
* Use this function to fill the internal buffer with
|
100
|
+
* msgpack_unpacker_buffer(msgpack_unpacker*),
|
101
|
+
* msgpack_unpacker_buffer_capacity(const msgpack_unpacker*) and
|
102
|
+
* msgpack_unpacker_buffer_consumed(msgpack_unpacker*).
|
103
|
+
*/
|
104
|
+
static inline bool msgpack_unpacker_reserve_buffer(msgpack_unpacker* mpac, size_t size);
|
105
|
+
|
106
|
+
/**
|
107
|
+
* Gets pointer to the free space of the internal buffer.
|
108
|
+
* Use this function to fill the internal buffer with
|
109
|
+
* msgpack_unpacker_reserve_buffer(msgpack_unpacker*, size_t),
|
110
|
+
* msgpack_unpacker_buffer_capacity(const msgpack_unpacker*) and
|
111
|
+
* msgpack_unpacker_buffer_consumed(msgpack_unpacker*).
|
112
|
+
*/
|
113
|
+
static inline char* msgpack_unpacker_buffer(msgpack_unpacker* mpac);
|
114
|
+
|
115
|
+
/**
|
116
|
+
* Gets size of the free space of the internal buffer.
|
117
|
+
* Use this function to fill the internal buffer with
|
118
|
+
* msgpack_unpacker_reserve_buffer(msgpack_unpacker*, size_t),
|
119
|
+
* msgpack_unpacker_buffer(const msgpack_unpacker*) and
|
120
|
+
* msgpack_unpacker_buffer_consumed(msgpack_unpacker*).
|
121
|
+
*/
|
122
|
+
static inline size_t msgpack_unpacker_buffer_capacity(const msgpack_unpacker* mpac);
|
123
|
+
|
124
|
+
/**
|
125
|
+
* Notifies the deserializer that the internal buffer filled.
|
126
|
+
* Use this function to fill the internal buffer with
|
127
|
+
* msgpack_unpacker_reserve_buffer(msgpack_unpacker*, size_t),
|
128
|
+
* msgpack_unpacker_buffer(msgpack_unpacker*) and
|
129
|
+
* msgpack_unpacker_buffer_capacity(const msgpack_unpacker*).
|
130
|
+
*/
|
131
|
+
static inline void msgpack_unpacker_buffer_consumed(msgpack_unpacker* mpac, size_t size);
|
132
|
+
|
133
|
+
|
134
|
+
/**
|
135
|
+
* Deserializes one object.
|
136
|
+
* Returns true if it successes. Otherwise false is returned.
|
137
|
+
* @param pac pointer to an initialized msgpack_unpacked object.
|
138
|
+
*/
|
139
|
+
bool msgpack_unpacker_next(msgpack_unpacker* mpac, msgpack_unpacked* pac);
|
140
|
+
|
141
|
+
/**
|
142
|
+
* Initializes a msgpack_unpacked object.
|
143
|
+
* The initialized object must be destroyed by msgpack_unpacked_destroy(msgpack_unpacker*).
|
144
|
+
* Use the object with msgpack_unpacker_next(msgpack_unpacker*, msgpack_unpacked*) or
|
145
|
+
* msgpack_unpack_next(msgpack_unpacked*, const char*, size_t, size_t*).
|
146
|
+
*/
|
147
|
+
static inline void msgpack_unpacked_init(msgpack_unpacked* result);
|
148
|
+
|
149
|
+
/**
|
150
|
+
* Destroys a streaming deserializer initialized by msgpack_unpacked().
|
151
|
+
*/
|
152
|
+
static inline void msgpack_unpacked_destroy(msgpack_unpacked* result);
|
153
|
+
|
154
|
+
/**
|
155
|
+
* Releases the memory zone from msgpack_unpacked object.
|
156
|
+
* The released zone must be freed by msgpack_zone_free(msgpack_zone*).
|
157
|
+
*/
|
158
|
+
static inline msgpack_zone* msgpack_unpacked_release_zone(msgpack_unpacked* result);
|
159
|
+
|
160
|
+
|
161
|
+
int msgpack_unpacker_execute(msgpack_unpacker* mpac);
|
162
|
+
|
163
|
+
msgpack_object msgpack_unpacker_data(msgpack_unpacker* mpac);
|
164
|
+
|
165
|
+
msgpack_zone* msgpack_unpacker_release_zone(msgpack_unpacker* mpac);
|
166
|
+
|
167
|
+
void msgpack_unpacker_reset_zone(msgpack_unpacker* mpac);
|
168
|
+
|
169
|
+
void msgpack_unpacker_reset(msgpack_unpacker* mpac);
|
170
|
+
|
171
|
+
static inline size_t msgpack_unpacker_message_size(const msgpack_unpacker* mpac);
|
172
|
+
|
173
|
+
|
174
|
+
/** @} */
|
175
|
+
|
176
|
+
|
177
|
+
// obsolete
|
178
|
+
typedef enum {
|
179
|
+
MSGPACK_UNPACK_SUCCESS = 2,
|
180
|
+
MSGPACK_UNPACK_EXTRA_BYTES = 1,
|
181
|
+
MSGPACK_UNPACK_CONTINUE = 0,
|
182
|
+
MSGPACK_UNPACK_PARSE_ERROR = -1,
|
183
|
+
} msgpack_unpack_return;
|
184
|
+
|
185
|
+
// obsolete
|
186
|
+
msgpack_unpack_return
|
187
|
+
msgpack_unpack(const char* data, size_t len, size_t* off,
|
188
|
+
msgpack_zone* result_zone, msgpack_object* result);
|
189
|
+
|
190
|
+
|
191
|
+
static inline size_t msgpack_unpacker_parsed_size(const msgpack_unpacker* mpac);
|
192
|
+
|
193
|
+
bool msgpack_unpacker_flush_zone(msgpack_unpacker* mpac);
|
194
|
+
|
195
|
+
bool msgpack_unpacker_expand_buffer(msgpack_unpacker* mpac, size_t size);
|
196
|
+
|
197
|
+
bool msgpack_unpacker_reserve_buffer(msgpack_unpacker* mpac, size_t size)
|
198
|
+
{
|
199
|
+
if(mpac->free >= size) { return true; }
|
200
|
+
return msgpack_unpacker_expand_buffer(mpac, size);
|
201
|
+
}
|
202
|
+
|
203
|
+
char* msgpack_unpacker_buffer(msgpack_unpacker* mpac)
|
204
|
+
{
|
205
|
+
return mpac->buffer + mpac->used;
|
206
|
+
}
|
207
|
+
|
208
|
+
size_t msgpack_unpacker_buffer_capacity(const msgpack_unpacker* mpac)
|
209
|
+
{
|
210
|
+
return mpac->free;
|
211
|
+
}
|
212
|
+
|
213
|
+
void msgpack_unpacker_buffer_consumed(msgpack_unpacker* mpac, size_t size)
|
214
|
+
{
|
215
|
+
mpac->used += size;
|
216
|
+
mpac->free -= size;
|
217
|
+
}
|
218
|
+
|
219
|
+
size_t msgpack_unpacker_message_size(const msgpack_unpacker* mpac)
|
220
|
+
{
|
221
|
+
return mpac->parsed - mpac->off + mpac->used;
|
222
|
+
}
|
223
|
+
|
224
|
+
size_t msgpack_unpacker_parsed_size(const msgpack_unpacker* mpac)
|
225
|
+
{
|
226
|
+
return mpac->parsed;
|
227
|
+
}
|
228
|
+
|
229
|
+
|
230
|
+
void msgpack_unpacked_init(msgpack_unpacked* result)
|
231
|
+
{
|
232
|
+
memset(result, 0, sizeof(msgpack_unpacked));
|
233
|
+
}
|
234
|
+
|
235
|
+
void msgpack_unpacked_destroy(msgpack_unpacked* result)
|
236
|
+
{
|
237
|
+
if(result->zone != NULL) {
|
238
|
+
msgpack_zone_free(result->zone);
|
239
|
+
result->zone = NULL;
|
240
|
+
memset(&result->data, 0, sizeof(msgpack_object));
|
241
|
+
}
|
242
|
+
}
|
243
|
+
|
244
|
+
msgpack_zone* msgpack_unpacked_release_zone(msgpack_unpacked* result)
|
245
|
+
{
|
246
|
+
if(result->zone != NULL) {
|
247
|
+
msgpack_zone* z = result->zone;
|
248
|
+
result->zone = NULL;
|
249
|
+
return z;
|
250
|
+
}
|
251
|
+
return NULL;
|
252
|
+
}
|
253
|
+
|
254
|
+
|
255
|
+
#ifdef __cplusplus
|
256
|
+
}
|
257
|
+
#endif
|
258
|
+
|
259
|
+
#endif /* msgpack/unpack.h */
|
260
|
+
|