rroonga 5.0.1-x86-mingw32 → 5.0.2-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.
- checksums.yaml +8 -8
- data/README.md +1 -1
- data/ext/groonga/rb-grn-logger.c +159 -3
- data/ext/groonga/rb-grn-plugin.c +17 -1
- data/ext/groonga/rb-grn-query-logger.c +129 -3
- data/ext/groonga/rb-grn.h +1 -1
- data/lib/1.9/groonga.so +0 -0
- data/lib/2.0/groonga.so +0 -0
- data/lib/2.1/groonga.so +0 -0
- data/lib/2.2/groonga.so +0 -0
- data/lib/groonga/query-logger.rb +48 -3
- data/lib/groonga/schema.rb +16 -3
- data/rroonga-build.rb +3 -3
- data/test/test-logger.rb +97 -2
- data/test/test-plugin.rb +5 -1
- data/test/test-query-logger.rb +149 -0
- data/test/test-schema.rb +19 -0
- data/vendor/local/bin/grndb.exe +0 -0
- data/vendor/local/bin/groonga-benchmark.exe +0 -0
- data/vendor/local/bin/groonga.exe +0 -0
- data/vendor/local/bin/libgroonga-0.dll +0 -0
- data/vendor/local/bin/libmecab-1.dll +0 -0
- data/vendor/local/bin/libmsgpack-4.dll +0 -0
- data/vendor/local/bin/libmsgpackc-2.dll +0 -0
- data/vendor/local/bin/libonig-5.dll +0 -0
- data/vendor/local/bin/lz4.exe +0 -0
- data/vendor/local/bin/lz4c.exe +0 -0
- data/vendor/local/bin/lz4cat +0 -0
- data/vendor/local/bin/mecab-config +2 -2
- data/vendor/local/bin/mecab.exe +0 -0
- data/vendor/local/bin/onig-config +1 -1
- data/vendor/local/bin/zlib1.dll +0 -0
- data/vendor/local/etc/groonga/httpd/groonga-httpd.conf +2 -2
- data/vendor/local/include/groonga/groonga.h +1 -0
- data/vendor/local/include/groonga/groonga/groonga.h +12 -6
- data/vendor/local/include/groonga/groonga/portability.h +158 -0
- data/vendor/local/include/msgpack.h +1 -0
- data/vendor/local/include/msgpack.hpp +2 -1
- data/vendor/local/include/msgpack/adaptor/bool.hpp +58 -0
- data/vendor/local/include/msgpack/{type/bool.hpp → adaptor/bool_fwd.hpp} +11 -27
- data/vendor/local/include/msgpack/adaptor/char_ptr.hpp +78 -0
- data/vendor/local/include/msgpack/adaptor/char_ptr_fwd.hpp +43 -0
- data/vendor/local/include/msgpack/adaptor/check_container_size.hpp +61 -0
- data/vendor/local/include/msgpack/adaptor/cpp11/array.hpp +76 -0
- data/vendor/local/include/msgpack/adaptor/cpp11/array_char.hpp +84 -0
- data/vendor/local/include/msgpack/adaptor/cpp11/array_char_fwd.hpp +45 -0
- data/vendor/local/include/msgpack/adaptor/cpp11/array_fwd.hpp +44 -0
- data/vendor/local/include/msgpack/adaptor/cpp11/forward_list.hpp +75 -0
- data/vendor/local/include/msgpack/adaptor/cpp11/forward_list_fwd.hpp +44 -0
- data/vendor/local/include/msgpack/adaptor/cpp11/tuple.hpp +152 -0
- data/vendor/local/include/msgpack/adaptor/cpp11/tuple_fwd.hpp +62 -0
- data/vendor/local/include/msgpack/adaptor/cpp11/unordered_map.hpp +142 -0
- data/vendor/local/include/msgpack/adaptor/cpp11/unordered_map_fwd.hpp +53 -0
- data/vendor/local/include/msgpack/adaptor/cpp11/unordered_set.hpp +134 -0
- data/vendor/local/include/msgpack/adaptor/cpp11/unordered_set_fwd.hpp +52 -0
- data/vendor/local/include/msgpack/adaptor/define.hpp +29 -0
- data/vendor/local/include/msgpack/adaptor/deque.hpp +83 -0
- data/vendor/local/include/msgpack/adaptor/deque_fwd.hpp +40 -0
- data/vendor/local/include/msgpack/adaptor/detail/cpp03_define.hpp +3475 -0
- data/vendor/local/include/msgpack/adaptor/detail/cpp03_msgpack_tuple.hpp +13918 -0
- data/vendor/local/include/msgpack/adaptor/detail/cpp03_msgpack_tuple_fwd.hpp +4341 -0
- data/vendor/local/include/msgpack/adaptor/detail/cpp11_define.hpp +184 -0
- data/vendor/local/include/msgpack/adaptor/detail/cpp11_msgpack_tuple.hpp +212 -0
- data/vendor/local/include/msgpack/adaptor/detail/cpp11_msgpack_tuple_fwd.hpp +84 -0
- data/vendor/local/include/msgpack/adaptor/fixint.hpp +212 -0
- data/vendor/local/include/msgpack/adaptor/fixint_fwd.hpp +100 -0
- data/vendor/local/include/msgpack/adaptor/float.hpp +105 -0
- data/vendor/local/include/msgpack/adaptor/float_fwd.hpp +44 -0
- data/vendor/local/include/msgpack/adaptor/int.hpp +308 -0
- data/vendor/local/include/msgpack/adaptor/int_fwd.hpp +100 -0
- data/vendor/local/include/msgpack/adaptor/list.hpp +83 -0
- data/vendor/local/include/msgpack/adaptor/list_fwd.hpp +40 -0
- data/vendor/local/include/msgpack/adaptor/map.hpp +219 -0
- data/vendor/local/include/msgpack/adaptor/map_fwd.hpp +69 -0
- data/vendor/local/include/msgpack/adaptor/msgpack_tuple.hpp +29 -0
- data/vendor/local/include/msgpack/adaptor/msgpack_tuple_fwd.hpp +29 -0
- data/vendor/local/include/msgpack/adaptor/nil.hpp +68 -0
- data/vendor/local/include/msgpack/adaptor/nil_fwd.hpp +51 -0
- data/vendor/local/include/msgpack/adaptor/pair.hpp +63 -0
- data/vendor/local/include/msgpack/{type/pair.hpp → adaptor/pair_fwd.hpp} +10 -29
- data/vendor/local/include/msgpack/adaptor/raw.hpp +98 -0
- data/vendor/local/include/msgpack/{type/nil.hpp → adaptor/raw_fwd.hpp} +15 -30
- data/vendor/local/include/msgpack/adaptor/set.hpp +134 -0
- data/vendor/local/include/msgpack/adaptor/set_fwd.hpp +52 -0
- data/vendor/local/include/msgpack/adaptor/string.hpp +78 -0
- data/vendor/local/include/msgpack/adaptor/string_fwd.hpp +42 -0
- data/vendor/local/include/msgpack/adaptor/tr1/unordered_map.hpp +164 -0
- data/vendor/local/include/msgpack/adaptor/tr1/unordered_map_fwd.hpp +75 -0
- data/vendor/local/include/msgpack/adaptor/tr1/unordered_set.hpp +157 -0
- data/vendor/local/include/msgpack/adaptor/tr1/unordered_set_fwd.hpp +75 -0
- data/vendor/local/include/msgpack/adaptor/vector.hpp +87 -0
- data/vendor/local/include/msgpack/adaptor/vector_bool.hpp +80 -0
- data/vendor/local/include/msgpack/adaptor/vector_bool_fwd.hpp +40 -0
- data/vendor/local/include/msgpack/adaptor/vector_char.hpp +81 -0
- data/vendor/local/include/msgpack/adaptor/vector_char_fwd.hpp +42 -0
- data/vendor/local/include/msgpack/adaptor/vector_fwd.hpp +42 -0
- data/vendor/local/include/msgpack/cpp_config.hpp +109 -0
- data/vendor/local/include/msgpack/detail/cpp03_zone.hpp +662 -0
- data/vendor/local/include/msgpack/detail/cpp11_zone.hpp +368 -0
- data/vendor/local/include/msgpack/fbuffer.h +3 -4
- data/vendor/local/include/msgpack/fbuffer.hpp +24 -16
- data/vendor/local/include/msgpack/gcc_atomic.h +33 -0
- data/vendor/local/include/msgpack/iterator.hpp +42 -0
- data/vendor/local/include/msgpack/object.h +51 -30
- data/vendor/local/include/msgpack/object.hpp +564 -273
- data/vendor/local/include/msgpack/object_fwd.hpp +182 -0
- data/vendor/local/include/msgpack/pack.h +23 -17
- data/vendor/local/include/msgpack/pack.hpp +889 -164
- data/vendor/local/include/msgpack/pack_define.h +2 -2
- data/vendor/local/include/msgpack/pack_template.h +452 -356
- data/vendor/local/include/msgpack/sbuffer.h +43 -37
- data/vendor/local/include/msgpack/sbuffer.hpp +98 -76
- data/vendor/local/include/msgpack/sysdep.h +48 -53
- data/vendor/local/include/msgpack/type.hpp +35 -17
- data/vendor/local/include/msgpack/unpack.h +62 -44
- data/vendor/local/include/msgpack/unpack.hpp +1578 -217
- data/vendor/local/include/msgpack/unpack_define.h +49 -47
- data/vendor/local/include/msgpack/unpack_template.h +344 -284
- data/vendor/local/include/msgpack/util.h +23 -0
- data/vendor/local/include/msgpack/version.h +12 -6
- data/vendor/local/include/msgpack/version.hpp +44 -0
- data/vendor/local/include/msgpack/version_master.h +3 -0
- data/vendor/local/include/msgpack/versioning.hpp +77 -0
- data/vendor/local/include/msgpack/vrefbuffer.h +40 -34
- data/vendor/local/include/msgpack/vrefbuffer.hpp +261 -64
- data/vendor/local/include/msgpack/zbuffer.h +79 -79
- data/vendor/local/include/msgpack/zbuffer.hpp +136 -67
- data/vendor/local/include/msgpack/zone.h +65 -42
- data/vendor/local/include/msgpack/zone.hpp +10 -445
- data/vendor/local/include/msgpack_fwd.hpp +28 -0
- data/vendor/local/lib/groonga/plugins/functions/vector.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/vector.dll +0 -0
- data/vendor/local/lib/groonga/plugins/functions/vector.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/vector.la +41 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.la +2 -2
- data/vendor/local/lib/groonga/plugins/ruby/eval.a +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/eval.dll +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/eval.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/eval.la +2 -2
- data/vendor/local/lib/groonga/plugins/ruby/load.a +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/load.dll +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/load.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/load.la +2 -2
- data/vendor/local/lib/groonga/plugins/sharding.rb +1 -0
- data/vendor/local/lib/groonga/plugins/sharding/logical_count.rb +17 -45
- data/vendor/local/lib/groonga/plugins/sharding/logical_enumerator.rb +15 -6
- data/vendor/local/lib/groonga/plugins/sharding/logical_range_filter.rb +63 -75
- data/vendor/local/lib/groonga/plugins/sharding/range_expression_builder.rb +65 -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/table/table.a +0 -0
- data/vendor/local/lib/groonga/plugins/table/table.dll +0 -0
- data/vendor/local/lib/groonga/plugins/table/table.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/table/table.la +2 -2
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.a +0 -0
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll +0 -0
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.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/groonga/scripts/ruby/expression_size_estimator.rb +38 -41
- data/vendor/local/lib/groonga/scripts/ruby/scan_info_data.rb +3 -0
- 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/liblz4.a +0 -0
- data/vendor/local/lib/liblz4.dll +0 -0
- data/vendor/local/lib/liblz4.dll.1 +0 -0
- data/vendor/local/lib/liblz4.dll.1.5.0 +0 -0
- data/vendor/local/lib/libmecab.a +0 -0
- data/vendor/local/lib/libmecab.dll.a +0 -0
- data/vendor/local/lib/libmecab.la +2 -2
- data/vendor/local/lib/libmsgpack.a +0 -0
- data/vendor/local/lib/libmsgpack.dll.a +0 -0
- data/vendor/local/lib/libmsgpack.la +4 -4
- data/vendor/local/lib/libmsgpackc.a +0 -0
- data/vendor/local/lib/libmsgpackc.dll.a +0 -0
- data/vendor/local/lib/libmsgpackc.la +2 -2
- data/vendor/local/lib/libonig.a +0 -0
- data/vendor/local/lib/libonig.dll.a +0 -0
- data/vendor/local/lib/libonig.la +2 -2
- data/vendor/local/lib/libz.a +0 -0
- data/vendor/local/lib/libz.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/groonga.pc +3 -3
- data/vendor/local/lib/pkgconfig/liblz4.pc +5 -5
- data/vendor/local/lib/pkgconfig/msgpack.pc +2 -2
- data/vendor/local/lib/pkgconfig/oniguruma.pc +6 -6
- data/vendor/local/lib/pkgconfig/zlib.pc +3 -3
- 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/sbin/groonga-httpd-restart +1 -1
- data/vendor/local/sbin/groonga-httpd.exe +0 -0
- data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/release.txt +69 -52
- data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +6 -6
- data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +56 -5
- data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +7 -7
- data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +6 -5
- data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +14 -14
- data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +93 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/news/0.x.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/news/1.0.x.txt +9 -9
- data/vendor/local/share/doc/groonga/en/html/_sources/news/1.1.x.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/news/1.2.x.txt +10 -10
- data/vendor/local/share/doc/groonga/en/html/_sources/news/1.3.x.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/news/2.x.txt +13 -13
- data/vendor/local/share/doc/groonga/en/html/_sources/news/3.x.txt +13 -13
- data/vendor/local/share/doc/groonga/en/html/_sources/news/4.x.txt +9 -9
- data/vendor/local/share/doc/groonga/en/html/_sources/news/senna.txt +13 -13
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/dump.txt +135 -27
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/request_cancel.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga.txt +148 -7
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/vector_size.txt +76 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/scorer.txt +2 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/server/gqtp.txt +38 -6
- data/vendor/local/share/doc/groonga/en/html/_sources/spec/gqtp.txt +2 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/index.txt +6 -4
- data/vendor/local/share/doc/groonga/en/html/characteristic.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/client.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/community.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution.html +14 -13
- data/vendor/local/share/doc/groonga/en/html/contribution/development.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +58 -42
- data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/introduction.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution/report.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/development.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/genindex.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/index.html +15 -9
- data/vendor/local/share/doc/groonga/en/html/install.html +8 -7
- data/vendor/local/share/doc/groonga/en/html/install/centos.html +12 -12
- data/vendor/local/share/doc/groonga/en/html/install/debian.html +70 -13
- data/vendor/local/share/doc/groonga/en/html/install/fedora.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +9 -9
- data/vendor/local/share/doc/groonga/en/html/install/others.html +17 -17
- data/vendor/local/share/doc/groonga/en/html/install/solaris.html +9 -9
- data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +12 -11
- data/vendor/local/share/doc/groonga/en/html/install/windows.html +21 -21
- data/vendor/local/share/doc/groonga/en/html/limitations.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/news.html +200 -103
- data/vendor/local/share/doc/groonga/en/html/news/0.x.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +24 -24
- data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/news/1.3.x.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/news/2.x.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/news/3.x.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/news/4.x.html +27 -27
- data/vendor/local/share/doc/groonga/en/html/news/senna.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/en/html/reference.html +8 -7
- data/vendor/local/share/doc/groonga/en/html/reference/api.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_content_type.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/overview.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/cast.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/column.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/columns/index.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/columns/pseudo.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/columns/scalar.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/command.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/command/request_id.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +141 -34
- data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_clear.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_count.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_range_filter.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_register.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_unregister.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/range_filter.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/request_cancel.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_tokenize.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenizer_list.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/executables.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grndb.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +146 -14
- data/vendor/local/share/doc/groonga/en/html/reference/function.html +7 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/in_values.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +11 -11
- data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_size.html +248 -0
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/log.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/operations.html +11 -11
- data/vendor/local/share/doc/groonga/en/html/reference/operations/geolocation_search.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/output.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/regular_expression.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/scorer.html +8 -7
- data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_at_most.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_idf.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/scoring_note.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/suggest.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/completion.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/correction.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/introduction.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/suggestion.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/tables.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/token_filters.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/types.html +6 -6
- 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/server.html +11 -7
- data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +53 -8
- data/vendor/local/share/doc/groonga/en/html/server/http.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/server/memcached.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/server/package.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/spec.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +10 -7
- data/vendor/local/share/doc/groonga/en/html/spec/search.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/tutorial.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +15 -11
- data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/release.txt +69 -52
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +6 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +56 -5
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +7 -7
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +6 -5
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +14 -14
- data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +93 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/0.x.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.0.x.txt +9 -9
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.1.x.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.2.x.txt +10 -10
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.3.x.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/2.x.txt +13 -13
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/3.x.txt +13 -13
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/4.x.txt +9 -9
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/senna.txt +13 -13
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/dump.txt +135 -27
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/request_cancel.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga.txt +148 -7
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/vector_size.txt +76 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/scorer.txt +2 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/server/gqtp.txt +38 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/spec/gqtp.txt +2 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/index.txt +6 -4
- data/vendor/local/share/doc/groonga/ja/html/characteristic.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/client.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/community.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution.html +14 -13
- data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +58 -42
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/introduction.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/development.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/genindex.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/index.html +15 -9
- data/vendor/local/share/doc/groonga/ja/html/install.html +8 -7
- data/vendor/local/share/doc/groonga/ja/html/install/centos.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/install/debian.html +63 -11
- data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/install/others.html +21 -18
- data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +10 -9
- data/vendor/local/share/doc/groonga/ja/html/install/windows.html +20 -20
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/news.html +234 -106
- data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +10 -10
- data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +24 -24
- data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +26 -26
- data/vendor/local/share/doc/groonga/ja/html/news/1.3.x.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/news/2.x.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/news/4.x.html +27 -27
- data/vendor/local/share/doc/groonga/ja/html/news/senna.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/ja/html/reference.html +8 -7
- data/vendor/local/share/doc/groonga/ja/html/reference/api.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_content_type.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/overview.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/column.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/index.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/pseudo.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/scalar.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/command.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/command/request_id.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +141 -34
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_clear.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_count.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_range_filter.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_register.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_unregister.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/range_filter.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/request_cancel.html +25 -41
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_tokenize.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grndb.html +23 -29
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +10 -10
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +10 -10
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +146 -14
- data/vendor/local/share/doc/groonga/ja/html/reference/function.html +7 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_values.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +11 -11
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_size.html +249 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/log.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/operations.html +11 -11
- data/vendor/local/share/doc/groonga/ja/html/reference/operations/geolocation_search.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/output.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/regular_expression.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/scorer.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_at_most.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_idf.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/scoring_note.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/completion.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/correction.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/introduction.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/suggestion.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/token_filters.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/types.html +6 -6
- 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/server.html +11 -7
- data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +53 -8
- data/vendor/local/share/doc/groonga/ja/html/server/http.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/server/memcached.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/server/package.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/spec.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +10 -7
- data/vendor/local/share/doc/groonga/ja/html/spec/search.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +15 -11
- data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +6 -6
- data/vendor/local/share/groonga/html/{admin → admin.old}/css/groonga-admin.css +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-bg_flat_55_fbec88_40x100.png +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-bg_glass_75_d0e5f5_1x400.png +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-bg_glass_85_dfeffc_1x400.png +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-bg_inset-hard_100_f5f8f9_1x100.png +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-bg_inset-hard_100_fcfdfd_1x100.png +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-icons_217bc0_256x240.png +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-icons_2e83ff_256x240.png +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-icons_469bdd_256x240.png +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-icons_6da8d5_256x240.png +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-icons_d8e7f3_256x240.png +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/images/ui-icons_f9bd01_256x240.png +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/css/redmond/jquery-ui-1.8.18.custom.css +0 -0
- data/vendor/local/share/groonga/html/admin.old/favicon.ico +0 -0
- data/vendor/local/share/groonga/html/admin.old/favicon.png +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/favicon.svg +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/images/groonga.png +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/images/groonga.svg +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/images/loading.gif +0 -0
- data/vendor/local/share/groonga/html/admin.old/index.html +297 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/index.ja.html +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/js/groonga-admin.ja.js +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/js/groonga-admin.js +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/js/jquery-1.7.2.js +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/js/jquery-ui-1.8.18.custom.js +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/js/jquery.flot-0.7.js +0 -0
- data/vendor/local/share/groonga/html/{admin → admin.old}/js/jquery.flot.license.txt +0 -0
- data/vendor/local/share/groonga/html/admin/.htaccess +543 -0
- data/vendor/local/share/groonga/html/admin/404.html +133 -0
- data/vendor/local/share/groonga/html/admin/bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.eot +0 -0
- data/vendor/local/share/groonga/html/admin/bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.svg +229 -0
- data/vendor/local/share/groonga/html/admin/bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.ttf +0 -0
- data/vendor/local/share/groonga/html/admin/bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.woff +0 -0
- data/vendor/local/share/groonga/html/admin/images/yeoman.d2754b85.png +0 -0
- data/vendor/local/share/groonga/html/admin/index.html +9 -297
- data/vendor/local/share/groonga/html/admin/robots.txt +3 -0
- data/vendor/local/share/groonga/html/admin/scripts/oldieshim.a466b7b1.js +1 -0
- data/vendor/local/share/groonga/html/admin/scripts/scripts.87083bfd.js +1 -0
- data/vendor/local/share/groonga/html/admin/scripts/vendor.fa48c0ac.js +13 -0
- data/vendor/local/share/groonga/html/admin/styles/main.0390285b.css +1 -0
- data/vendor/local/share/groonga/html/admin/styles/vendor.f4ae649a.css +10 -0
- data/vendor/local/share/groonga/html/admin/views/columns/new.html +1 -0
- data/vendor/local/share/groonga/html/admin/views/columns/show.html +1 -0
- data/vendor/local/share/groonga/html/admin/views/tables/index.html +1 -0
- data/vendor/local/share/groonga/html/admin/views/tables/new.html +29 -0
- data/vendor/local/share/groonga/html/admin/views/tables/search.html +1 -0
- data/vendor/local/share/groonga/html/admin/views/tables/show.html +1 -0
- data/vendor/local/share/groonga/html/admin/views/top.html +1 -0
- data/vendor/local/share/license/groonga-admin/LICENSE +502 -0
- data/vendor/local/share/license/groonga-admin/README.md +79 -0
- data/vendor/local/share/license/msgpack/AUTHORS +0 -1
- data/vendor/local/share/man/ja/man1/groonga.1 +826 -147
- data/vendor/local/share/man/man1/groonga.1 +812 -99
- metadata +138 -55
- data/doc/text/install.textile +0 -145
- data/doc/text/tutorial.textile +0 -510
- data/vendor/local/bin/libmsgpack-3.dll +0 -0
- data/vendor/local/include/msgpack/type/define.hpp +0 -3465
- data/vendor/local/include/msgpack/type/deque.hpp +0 -77
- data/vendor/local/include/msgpack/type/fixint.hpp +0 -172
- data/vendor/local/include/msgpack/type/float.hpp +0 -102
- data/vendor/local/include/msgpack/type/int.hpp +0 -276
- data/vendor/local/include/msgpack/type/list.hpp +0 -77
- data/vendor/local/include/msgpack/type/map.hpp +0 -205
- data/vendor/local/include/msgpack/type/raw.hpp +0 -94
- data/vendor/local/include/msgpack/type/set.hpp +0 -122
- data/vendor/local/include/msgpack/type/string.hpp +0 -62
- data/vendor/local/include/msgpack/type/tr1/unordered_map.hpp +0 -150
- data/vendor/local/include/msgpack/type/tr1/unordered_set.hpp +0 -142
- data/vendor/local/include/msgpack/type/tuple.hpp +0 -13691
- data/vendor/local/include/msgpack/type/vector.hpp +0 -81
- data/vendor/local/share/doc/groonga/en/html/_static/jp.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/us.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/jp.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/us.png +0 -0
@@ -0,0 +1,33 @@
|
|
1
|
+
/*
|
2
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
3
|
+
* you may not use this file except in compliance with the License.
|
4
|
+
* You may obtain a copy of the License at
|
5
|
+
*
|
6
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
7
|
+
*
|
8
|
+
* Unless required by applicable law or agreed to in writing, software
|
9
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
10
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
11
|
+
* See the License for the specific language governing permissions and
|
12
|
+
* limitations under the License.
|
13
|
+
*/
|
14
|
+
|
15
|
+
#ifndef MSGPACK_GCC_ATOMIC_H
|
16
|
+
#define MSGPACK_GCC_ATOMIC_H
|
17
|
+
|
18
|
+
#if defined(__cplusplus)
|
19
|
+
extern "C" {
|
20
|
+
#endif
|
21
|
+
|
22
|
+
typedef int _msgpack_atomic_counter_t;
|
23
|
+
|
24
|
+
int _msgpack_sync_decr_and_fetch(volatile _msgpack_atomic_counter_t* ptr);
|
25
|
+
int _msgpack_sync_incr_and_fetch(volatile _msgpack_atomic_counter_t* ptr);
|
26
|
+
|
27
|
+
|
28
|
+
#if defined(__cplusplus)
|
29
|
+
}
|
30
|
+
#endif
|
31
|
+
|
32
|
+
|
33
|
+
#endif // MSGPACK_GCC_ATOMIC_H
|
@@ -0,0 +1,42 @@
|
|
1
|
+
//
|
2
|
+
// MessagePack for C++ static resolution routine
|
3
|
+
//
|
4
|
+
// Copyright (C) 2015 MIZUKI Hirata
|
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
|
+
|
19
|
+
#ifndef MSGPACK_ITERATOR_HPP
|
20
|
+
#define MSGPACK_ITERATOR_HPP
|
21
|
+
#if !defined(MSGPACK_USE_CPP03)
|
22
|
+
|
23
|
+
#include <msgpack_fwd.hpp>
|
24
|
+
|
25
|
+
namespace msgpack
|
26
|
+
{
|
27
|
+
MSGPACK_API_VERSION_NAMESPACE(MSGPACK_DEFAULT_API_NS)
|
28
|
+
{
|
29
|
+
inline object_kv* begin(object_map &map) { return map.ptr; }
|
30
|
+
inline const object_kv* begin(const object_map &map) { return map.ptr; }
|
31
|
+
inline object_kv* end(object_map &map) { return map.ptr + map.size; }
|
32
|
+
inline const object_kv* end(const object_map &map) { return map.ptr + map.size; }
|
33
|
+
|
34
|
+
inline object* begin(object_array &array) { return array.ptr; }
|
35
|
+
inline const object* begin(const object_array &array) { return array.ptr; }
|
36
|
+
inline object* end(object_array &array) { return array.ptr + array.size; }
|
37
|
+
inline const object* end(const object_array &array) { return array.ptr + array.size; }
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
#endif // !defined(MSGPACK_USE_CPP03)
|
42
|
+
#endif // MSGPACK_ITERATOR_HPP
|
@@ -15,8 +15,8 @@
|
|
15
15
|
* See the License for the specific language governing permissions and
|
16
16
|
* limitations under the License.
|
17
17
|
*/
|
18
|
-
#ifndef
|
19
|
-
#define
|
18
|
+
#ifndef MSGPACK_OBJECT_H
|
19
|
+
#define MSGPACK_OBJECT_H
|
20
20
|
|
21
21
|
#include "zone.h"
|
22
22
|
#include <stdio.h>
|
@@ -33,14 +33,19 @@ extern "C" {
|
|
33
33
|
*/
|
34
34
|
|
35
35
|
typedef enum {
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
36
|
+
MSGPACK_OBJECT_NIL = 0x00,
|
37
|
+
MSGPACK_OBJECT_BOOLEAN = 0x01,
|
38
|
+
MSGPACK_OBJECT_POSITIVE_INTEGER = 0x02,
|
39
|
+
MSGPACK_OBJECT_NEGATIVE_INTEGER = 0x03,
|
40
|
+
MSGPACK_OBJECT_FLOAT = 0x04,
|
41
|
+
#if defined(MSGPACK_USE_LEGACY_NAME_AS_FLOAT)
|
42
|
+
MSGPACK_OBJECT_DOUBLE = MSGPACK_OBJECT_FLOAT, /* obsolete */
|
43
|
+
#endif /* MSGPACK_USE_LEGACY_NAME_AS_FLOAT */
|
44
|
+
MSGPACK_OBJECT_STR = 0x05,
|
45
|
+
MSGPACK_OBJECT_ARRAY = 0x06,
|
46
|
+
MSGPACK_OBJECT_MAP = 0x07,
|
47
|
+
MSGPACK_OBJECT_BIN = 0x08,
|
48
|
+
MSGPACK_OBJECT_EXT = 0x09
|
44
49
|
} msgpack_object_type;
|
45
50
|
|
46
51
|
|
@@ -48,43 +53,60 @@ struct msgpack_object;
|
|
48
53
|
struct msgpack_object_kv;
|
49
54
|
|
50
55
|
typedef struct {
|
51
|
-
|
52
|
-
|
56
|
+
uint32_t size;
|
57
|
+
struct msgpack_object* ptr;
|
53
58
|
} msgpack_object_array;
|
54
59
|
|
55
60
|
typedef struct {
|
56
|
-
|
57
|
-
|
61
|
+
uint32_t size;
|
62
|
+
struct msgpack_object_kv* ptr;
|
58
63
|
} msgpack_object_map;
|
59
64
|
|
60
65
|
typedef struct {
|
61
|
-
|
62
|
-
|
63
|
-
}
|
66
|
+
uint32_t size;
|
67
|
+
const char* ptr;
|
68
|
+
} msgpack_object_str;
|
69
|
+
|
70
|
+
typedef struct {
|
71
|
+
uint32_t size;
|
72
|
+
const char* ptr;
|
73
|
+
} msgpack_object_bin;
|
74
|
+
|
75
|
+
typedef struct {
|
76
|
+
int8_t type;
|
77
|
+
uint32_t size;
|
78
|
+
const char* ptr;
|
79
|
+
} msgpack_object_ext;
|
64
80
|
|
65
81
|
typedef union {
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
82
|
+
bool boolean;
|
83
|
+
uint64_t u64;
|
84
|
+
int64_t i64;
|
85
|
+
#if defined(MSGPACK_USE_LEGACY_NAME_AS_FLOAT)
|
86
|
+
double dec; /* obsolete*/
|
87
|
+
#endif /* MSGPACK_USE_LEGACY_NAME_AS_FLOAT */
|
88
|
+
double f64;
|
89
|
+
msgpack_object_array array;
|
90
|
+
msgpack_object_map map;
|
91
|
+
msgpack_object_str str;
|
92
|
+
msgpack_object_bin bin;
|
93
|
+
msgpack_object_ext ext;
|
73
94
|
} msgpack_object_union;
|
74
95
|
|
75
96
|
typedef struct msgpack_object {
|
76
|
-
|
77
|
-
|
97
|
+
msgpack_object_type type;
|
98
|
+
msgpack_object_union via;
|
78
99
|
} msgpack_object;
|
79
100
|
|
80
101
|
typedef struct msgpack_object_kv {
|
81
|
-
|
82
|
-
|
102
|
+
msgpack_object key;
|
103
|
+
msgpack_object val;
|
83
104
|
} msgpack_object_kv;
|
84
105
|
|
85
|
-
|
106
|
+
MSGPACK_DLLEXPORT
|
86
107
|
void msgpack_object_print(FILE* out, msgpack_object o);
|
87
108
|
|
109
|
+
MSGPACK_DLLEXPORT
|
88
110
|
bool msgpack_object_equal(const msgpack_object x, const msgpack_object y);
|
89
111
|
|
90
112
|
/** @} */
|
@@ -95,4 +117,3 @@ bool msgpack_object_equal(const msgpack_object x, const msgpack_object y);
|
|
95
117
|
#endif
|
96
118
|
|
97
119
|
#endif /* msgpack/object.h */
|
98
|
-
|
@@ -1,7 +1,7 @@
|
|
1
1
|
//
|
2
2
|
// MessagePack for C++ static resolution routine
|
3
3
|
//
|
4
|
-
// Copyright (C) 2008-
|
4
|
+
// Copyright (C) 2008-2014 FURUHASHI Sadayuki and KONDO Takatoshi
|
5
5
|
//
|
6
6
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
7
7
|
// you may not use this file except in compliance with the License.
|
@@ -15,12 +15,48 @@
|
|
15
15
|
// See the License for the specific language governing permissions and
|
16
16
|
// limitations under the License.
|
17
17
|
//
|
18
|
-
#ifndef
|
19
|
-
#define
|
18
|
+
#ifndef MSGPACK_OBJECT_HPP
|
19
|
+
#define MSGPACK_OBJECT_HPP
|
20
|
+
|
21
|
+
#include "msgpack/versioning.hpp"
|
22
|
+
#include "msgpack/object_fwd.hpp"
|
23
|
+
#include "msgpack/pack.hpp"
|
24
|
+
#include "msgpack/zone.hpp"
|
25
|
+
#include "msgpack/adaptor/int_fwd.hpp"
|
26
|
+
#include "msgpack/adaptor/bool_fwd.hpp"
|
27
|
+
#include "msgpack/adaptor/char_ptr_fwd.hpp"
|
28
|
+
#include "msgpack/adaptor/deque_fwd.hpp"
|
29
|
+
#include "msgpack/adaptor/fixint_fwd.hpp"
|
30
|
+
#include "msgpack/adaptor/float_fwd.hpp"
|
31
|
+
#include "msgpack/adaptor/int_fwd.hpp"
|
32
|
+
#include "msgpack/adaptor/list_fwd.hpp"
|
33
|
+
#include "msgpack/adaptor/map_fwd.hpp"
|
34
|
+
#include "msgpack/adaptor/msgpack_tuple_fwd.hpp"
|
35
|
+
#include "msgpack/adaptor/nil_fwd.hpp"
|
36
|
+
#include "msgpack/adaptor/pair_fwd.hpp"
|
37
|
+
#include "msgpack/adaptor/raw_fwd.hpp"
|
38
|
+
#include "msgpack/adaptor/set_fwd.hpp"
|
39
|
+
#include "msgpack/adaptor/string_fwd.hpp"
|
40
|
+
#include "msgpack/adaptor/vector_fwd.hpp"
|
41
|
+
#include "msgpack/adaptor/vector_bool_fwd.hpp"
|
42
|
+
#include "msgpack/adaptor/vector_char_fwd.hpp"
|
43
|
+
|
44
|
+
#if defined(MSGPACK_USE_CPP03)
|
45
|
+
|
46
|
+
#include "msgpack/adaptor/tr1/unordered_map_fwd.hpp"
|
47
|
+
#include "msgpack/adaptor/tr1/unordered_set_fwd.hpp"
|
48
|
+
|
49
|
+
#else // defined(MSGPACK_USE_CPP03)
|
50
|
+
|
51
|
+
#include "adaptor/cpp11/array_fwd.hpp"
|
52
|
+
#include "adaptor/cpp11/array_char_fwd.hpp"
|
53
|
+
#include "adaptor/cpp11/forward_list_fwd.hpp"
|
54
|
+
#include "adaptor/cpp11/tuple_fwd.hpp"
|
55
|
+
#include "adaptor/cpp11/unordered_map_fwd.hpp"
|
56
|
+
#include "adaptor/cpp11/unordered_set_fwd.hpp"
|
57
|
+
|
58
|
+
#endif // defined(MSGPACK_USE_CPP03)
|
20
59
|
|
21
|
-
#include "object.h"
|
22
|
-
#include "pack.hpp"
|
23
|
-
#include "zone.hpp"
|
24
60
|
#include <string.h>
|
25
61
|
#include <stdexcept>
|
26
62
|
#include <typeinfo>
|
@@ -29,393 +65,648 @@
|
|
29
65
|
|
30
66
|
namespace msgpack {
|
31
67
|
|
32
|
-
|
33
|
-
class type_error : public std::bad_cast { };
|
34
|
-
|
35
|
-
|
36
|
-
namespace type {
|
37
|
-
enum object_type {
|
38
|
-
NIL = MSGPACK_OBJECT_NIL,
|
39
|
-
BOOLEAN = MSGPACK_OBJECT_BOOLEAN,
|
40
|
-
POSITIVE_INTEGER = MSGPACK_OBJECT_POSITIVE_INTEGER,
|
41
|
-
NEGATIVE_INTEGER = MSGPACK_OBJECT_NEGATIVE_INTEGER,
|
42
|
-
DOUBLE = MSGPACK_OBJECT_DOUBLE,
|
43
|
-
RAW = MSGPACK_OBJECT_RAW,
|
44
|
-
ARRAY = MSGPACK_OBJECT_ARRAY,
|
45
|
-
MAP = MSGPACK_OBJECT_MAP,
|
46
|
-
};
|
47
|
-
}
|
48
|
-
|
49
|
-
|
50
|
-
struct object;
|
51
|
-
struct object_kv;
|
52
|
-
|
53
|
-
struct object_array {
|
54
|
-
uint32_t size;
|
55
|
-
object* ptr;
|
56
|
-
};
|
57
|
-
|
58
|
-
struct object_map {
|
59
|
-
uint32_t size;
|
60
|
-
object_kv* ptr;
|
61
|
-
};
|
62
|
-
|
63
|
-
struct object_raw {
|
64
|
-
uint32_t size;
|
65
|
-
const char* ptr;
|
66
|
-
};
|
67
|
-
|
68
|
-
struct object {
|
69
|
-
union union_type {
|
70
|
-
bool boolean;
|
71
|
-
uint64_t u64;
|
72
|
-
int64_t i64;
|
73
|
-
double dec;
|
74
|
-
object_array array;
|
75
|
-
object_map map;
|
76
|
-
object_raw raw;
|
77
|
-
object_raw ref; // obsolete
|
78
|
-
};
|
79
|
-
|
80
|
-
type::object_type type;
|
81
|
-
union_type via;
|
82
|
-
|
83
|
-
bool is_nil() const { return type == type::NIL; }
|
84
|
-
|
85
|
-
template <typename T>
|
86
|
-
T as() const;
|
87
|
-
|
88
|
-
template <typename T>
|
89
|
-
void convert(T* v) const;
|
90
|
-
|
91
|
-
object();
|
92
|
-
|
93
|
-
object(msgpack_object o);
|
94
|
-
|
95
|
-
template <typename T>
|
96
|
-
explicit object(const T& v);
|
97
|
-
|
98
|
-
template <typename T>
|
99
|
-
object(const T& v, zone* z);
|
100
|
-
|
101
|
-
template <typename T>
|
102
|
-
object& operator=(const T& v);
|
103
|
-
|
104
|
-
operator msgpack_object() const;
|
105
|
-
|
106
|
-
struct with_zone;
|
107
|
-
|
108
|
-
private:
|
109
|
-
struct implicit_type;
|
110
|
-
|
111
|
-
public:
|
112
|
-
implicit_type convert() const;
|
113
|
-
};
|
114
|
-
|
115
|
-
struct object_kv {
|
116
|
-
object key;
|
117
|
-
object val;
|
118
|
-
};
|
68
|
+
MSGPACK_API_VERSION_NAMESPACE(v1) {
|
119
69
|
|
120
70
|
struct object::with_zone : object {
|
121
|
-
|
122
|
-
|
71
|
+
with_zone(msgpack::zone& zone) : zone(zone) { }
|
72
|
+
msgpack::zone& zone;
|
123
73
|
private:
|
124
|
-
|
74
|
+
with_zone();
|
125
75
|
};
|
126
76
|
|
127
|
-
|
128
|
-
bool operator==(const object x, const object y);
|
129
|
-
bool operator!=(const object x, const object y);
|
130
|
-
|
131
|
-
template <typename T>
|
132
|
-
bool operator==(const object x, const T& y);
|
133
|
-
|
134
|
-
template <typename T>
|
135
|
-
bool operator==(const T& y, const object x);
|
136
|
-
|
137
|
-
template <typename T>
|
138
|
-
bool operator!=(const object x, const T& y);
|
139
|
-
|
140
|
-
template <typename T>
|
141
|
-
bool operator!=(const T& y, const object x);
|
142
|
-
|
143
|
-
std::ostream& operator<< (std::ostream& s, const object o);
|
144
|
-
|
145
|
-
|
146
|
-
// serialize operator
|
147
|
-
template <typename Stream, typename T>
|
148
|
-
packer<Stream>& operator<< (packer<Stream>& o, const T& v);
|
149
|
-
|
150
|
-
// convert operator
|
151
|
-
template <typename T>
|
152
|
-
T& operator>> (object o, T& v);
|
153
|
-
|
154
|
-
// deconvert operator
|
155
|
-
template <typename T>
|
156
|
-
void operator<< (object::with_zone& o, const T& v);
|
157
|
-
|
158
|
-
|
159
77
|
struct object::implicit_type {
|
160
|
-
|
161
|
-
|
78
|
+
implicit_type(object const& o) : obj(o) { }
|
79
|
+
~implicit_type() { }
|
162
80
|
|
163
|
-
|
164
|
-
|
81
|
+
template <typename T>
|
82
|
+
operator T() { return obj.as<T>(); }
|
165
83
|
|
166
84
|
private:
|
167
|
-
|
85
|
+
msgpack::object const& obj;
|
168
86
|
};
|
169
87
|
|
88
|
+
inline msgpack::object const& operator>> (msgpack::object const& o, msgpack::object& v)
|
89
|
+
{
|
90
|
+
v = o;
|
91
|
+
return o;
|
92
|
+
}
|
93
|
+
|
94
|
+
template <typename T>
|
95
|
+
inline msgpack::object const& operator>> (msgpack::object const& o, T& v)
|
96
|
+
{
|
97
|
+
// If you get a error 'class your_class has no member named 'msgpack_unpack',
|
98
|
+
// check the following:
|
99
|
+
// 1. The class your_class should have MSGPACK_DEFINE macro or
|
100
|
+
//
|
101
|
+
// 2. The class your_class should have the following operator declaration and
|
102
|
+
// definition:
|
103
|
+
// inline object const& operator>> (object const& o, std::string& v)
|
104
|
+
//
|
105
|
+
// See 3.
|
106
|
+
//
|
107
|
+
// 3. #include "msgpack.hpp" too early.
|
108
|
+
// Replace msgpack.hpp with msgpack_fwd.hpp, then,
|
109
|
+
// place operator declarations as follows:
|
110
|
+
//
|
111
|
+
// namespace msgpack {
|
112
|
+
// MSGPACK_API_VERSION_NAMESPACE(MSGPACK_DEFAULT_API_NS) {
|
113
|
+
// object const& operator>> (object const& o, std::string& v);
|
114
|
+
// }
|
115
|
+
// }
|
116
|
+
//
|
117
|
+
// then, #include "msgpack.hpp", finally place the operator definitions as follows:
|
118
|
+
//
|
119
|
+
// namespace msgpack {
|
120
|
+
// MSGPACK_API_VERSION_NAMESPACE(MSGPACK_DEFAULT_API_NS) {
|
121
|
+
// object const& operator>> (object const& o, std::string& v) {
|
122
|
+
// // converting operations here
|
123
|
+
// }
|
124
|
+
// } // MSGPACK_API_VERSION_NAMESPACE(MSGPACK_DEFAULT_API_NS)
|
125
|
+
// } // namespace msgpack
|
126
|
+
//
|
127
|
+
v.msgpack_unpack(o.convert());
|
128
|
+
return o;
|
129
|
+
}
|
170
130
|
|
171
131
|
// obsolete
|
172
132
|
template <typename Type>
|
173
133
|
class define : public Type {
|
174
134
|
public:
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
135
|
+
typedef Type msgpack_type;
|
136
|
+
typedef define<Type> define_type;
|
137
|
+
|
138
|
+
define() {}
|
139
|
+
define(const msgpack_type& v) : msgpack_type(v) {}
|
140
|
+
|
141
|
+
template <typename Packer>
|
142
|
+
void msgpack_pack(Packer& o) const
|
143
|
+
{
|
144
|
+
msgpack::operator<<(o, static_cast<const msgpack_type&>(*this));
|
145
|
+
}
|
146
|
+
|
147
|
+
void msgpack_unpack(object const& o)
|
148
|
+
{
|
149
|
+
msgpack::operator>>(o, static_cast<msgpack_type&>(*this));
|
150
|
+
}
|
191
151
|
};
|
192
152
|
|
193
|
-
|
194
|
-
template <typename Stream>
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
153
|
+
namespace detail {
|
154
|
+
template <typename Stream, typename T>
|
155
|
+
struct packer_serializer {
|
156
|
+
static msgpack::packer<Stream>& pack(msgpack::packer<Stream>& o, const T& v) {
|
157
|
+
// If you get a error 'const class your_class has no member named 'msgpack_pack',
|
158
|
+
// check the following:
|
159
|
+
// 1. The class your_class should have MSGPACK_DEFINE macro or
|
160
|
+
//
|
161
|
+
// 2. The class your_class should have the following operator declaration and
|
162
|
+
// definition:
|
163
|
+
//
|
164
|
+
// namespace msgpack {
|
165
|
+
// MSGPACK_API_VERSION_NAMESPACE(MSGPACK_DEFAULT_API_NS) {
|
166
|
+
// template <typename Stream>
|
167
|
+
// inline msgpack::packer<Stream>& operator<< (msgpack::packer<Stream>& o, const your_class& v)
|
168
|
+
// } // MSGPACK_API_VERSION_NAMESPACE(MSGPACK_DEFAULT_API_NS)
|
169
|
+
// } // namespace msgpack
|
170
|
+
//
|
171
|
+
// See 3.
|
172
|
+
//
|
173
|
+
// 3. #include "msgpack.hpp" too early.
|
174
|
+
// Replace msgpack.hpp with msgpack_fwd.hpp, then,
|
175
|
+
// place operator declarations as follows:
|
176
|
+
//
|
177
|
+
// namespace msgpack {
|
178
|
+
// MSGPACK_API_VERSION_NAMESPACE(MSGPACK_DEFAULT_API_NS) {
|
179
|
+
// template <typename Stream>
|
180
|
+
// msgpack::packer<Stream>& operator<< (msgpack::packer<Stream>& o, const your_class& v);
|
181
|
+
// } // MSGPACK_API_VERSION_NAMESPACE(MSGPACK_DEFAULT_API_NS)
|
182
|
+
// } // namespace msgpack
|
183
|
+
//
|
184
|
+
// then, #include "msgpack.hpp", finally place the operator definitions as follows:
|
185
|
+
//
|
186
|
+
// template <typename Stream>
|
187
|
+
// inline msgpack::packer<Stream>& operator<< (msgpack::packer<Stream>& o, const your_class& v) {
|
188
|
+
// // packing operation
|
189
|
+
// }
|
190
|
+
// } // MSGPACK_API_VERSION_NAMESPACE(MSGPACK_DEFAULT_API_NS)
|
191
|
+
// } // namespace msgpack
|
192
|
+
//
|
193
|
+
v.msgpack_pack(o);
|
194
|
+
return o;
|
195
|
+
}
|
196
|
+
};
|
200
197
|
}
|
201
198
|
|
202
|
-
inline
|
199
|
+
inline void operator<< (msgpack::object::with_zone& o, const msgpack::object& v)
|
203
200
|
{
|
204
|
-
|
205
|
-
|
201
|
+
o.type = v.type;
|
202
|
+
|
203
|
+
switch(v.type) {
|
204
|
+
case msgpack::type::NIL:
|
205
|
+
case msgpack::type::BOOLEAN:
|
206
|
+
case msgpack::type::POSITIVE_INTEGER:
|
207
|
+
case msgpack::type::NEGATIVE_INTEGER:
|
208
|
+
case msgpack::type::FLOAT:
|
209
|
+
std::memcpy(&o.via, &v.via, sizeof(v.via));
|
210
|
+
return;
|
211
|
+
|
212
|
+
case msgpack::type::STR: {
|
213
|
+
char* ptr = static_cast<char*>(o.zone.allocate_align(v.via.str.size));
|
214
|
+
o.via.str.ptr = ptr;
|
215
|
+
o.via.str.size = v.via.str.size;
|
216
|
+
std::memcpy(ptr, v.via.str.ptr, v.via.str.size);
|
217
|
+
return;
|
218
|
+
}
|
219
|
+
|
220
|
+
case msgpack::type::BIN: {
|
221
|
+
char* ptr = static_cast<char*>(o.zone.allocate_align(v.via.bin.size));
|
222
|
+
o.via.bin.ptr = ptr;
|
223
|
+
o.via.bin.size = v.via.bin.size;
|
224
|
+
std::memcpy(ptr, v.via.bin.ptr, v.via.bin.size);
|
225
|
+
return;
|
226
|
+
}
|
227
|
+
|
228
|
+
case msgpack::type::EXT: {
|
229
|
+
char* ptr = static_cast<char*>(o.zone.allocate_align(v.via.ext.size + 1));
|
230
|
+
o.via.ext.ptr = ptr;
|
231
|
+
o.via.ext.size = v.via.ext.size;
|
232
|
+
std::memcpy(ptr, v.via.ext.ptr, v.via.ext.size + 1);
|
233
|
+
return;
|
234
|
+
}
|
235
|
+
|
236
|
+
case msgpack::type::ARRAY:
|
237
|
+
o.via.array.ptr = static_cast<object*>(o.zone.allocate_align(sizeof(object) * v.via.array.size));
|
238
|
+
o.via.array.size = v.via.array.size;
|
239
|
+
for (msgpack::object
|
240
|
+
* po(o.via.array.ptr),
|
241
|
+
* pv(v.via.array.ptr),
|
242
|
+
* const pvend(v.via.array.ptr + v.via.array.size);
|
243
|
+
pv < pvend;
|
244
|
+
++po, ++pv) {
|
245
|
+
new (po) msgpack::object(*pv, o.zone);
|
246
|
+
}
|
247
|
+
return;
|
248
|
+
|
249
|
+
case msgpack::type::MAP:
|
250
|
+
o.via.map.ptr = (object_kv*)o.zone.allocate_align(sizeof(object_kv) * v.via.map.size);
|
251
|
+
o.via.map.size = v.via.map.size;
|
252
|
+
for(msgpack::object_kv
|
253
|
+
* po(o.via.map.ptr),
|
254
|
+
* pv(v.via.map.ptr),
|
255
|
+
* const pvend(v.via.map.ptr + v.via.map.size);
|
256
|
+
pv < pvend;
|
257
|
+
++po, ++pv) {
|
258
|
+
object_kv* kv = new (po) object_kv;
|
259
|
+
new (&kv->key) msgpack::object(pv->key, o.zone);
|
260
|
+
new (&kv->val) msgpack::object(pv->val, o.zone);
|
261
|
+
}
|
262
|
+
return;
|
263
|
+
|
264
|
+
default:
|
265
|
+
throw msgpack::type_error();
|
266
|
+
}
|
206
267
|
}
|
207
268
|
|
208
|
-
|
209
|
-
inline T& operator>> (object o, T& v)
|
269
|
+
inline void operator<< (msgpack::object::with_zone& o, const msgpack::object::with_zone& v)
|
210
270
|
{
|
211
|
-
|
212
|
-
return v;
|
213
|
-
}
|
214
|
-
|
215
|
-
namespace detail {
|
216
|
-
template <typename Stream, typename T>
|
217
|
-
struct packer_serializer {
|
218
|
-
static packer<Stream>& pack(packer<Stream>& o, const T& v) {
|
219
|
-
v.msgpack_pack(o);
|
220
|
-
return o;
|
221
|
-
}
|
222
|
-
};
|
271
|
+
return o << static_cast<msgpack::object const&>(v);
|
223
272
|
}
|
224
273
|
|
225
|
-
|
226
|
-
|
274
|
+
// deconvert operator
|
275
|
+
template <typename T>
|
276
|
+
inline void operator<< (msgpack::object::with_zone& o, const T& v)
|
227
277
|
{
|
228
|
-
|
278
|
+
// If you get a error 'const class your_class has no member named 'msgpack_object',
|
279
|
+
// check the following:
|
280
|
+
// 1. The class your_class should have MSGPACK_DEFINE macro or
|
281
|
+
//
|
282
|
+
// 2. The class your_class should have the following operator declaration and
|
283
|
+
// definition:
|
284
|
+
//
|
285
|
+
// namespace msgpack {
|
286
|
+
// MSGPACK_API_VERSION_NAMESPACE(MSGPACK_DEFAULT_API_NS) {
|
287
|
+
// void operator<< (object::with_zone& o, const your_class& v);
|
288
|
+
// } // MSGPACK_API_VERSION_NAMESPACE(MSGPACK_DEFAULT_API_NS)
|
289
|
+
// } // namespace msgpack
|
290
|
+
//
|
291
|
+
// See 3.
|
292
|
+
//
|
293
|
+
// 3. #include "msgpack.hpp" too early.
|
294
|
+
// Replace msgpack.hpp with msgpack_fwd.hpp, then,
|
295
|
+
// place operator declarations as follows:
|
296
|
+
//
|
297
|
+
// namespace msgpack {
|
298
|
+
// MSGPACK_API_VERSION_NAMESPACE(MSGPACK_DEFAULT_API_NS) {
|
299
|
+
// void operator<< (object::with_zone& o, const your_class& v);
|
300
|
+
// } // MSGPACK_API_VERSION_NAMESPACE(MSGPACK_DEFAULT_API_NS)
|
301
|
+
// } // namespace msgpack
|
302
|
+
//
|
303
|
+
// then, #include "msgpack.hpp", finally place the operator definitions as follows:
|
304
|
+
//
|
305
|
+
// void operator<< (object::with_zone& o, const your_class& v) {
|
306
|
+
// // set object attributes using v.
|
307
|
+
// }
|
308
|
+
// } // MSGPACK_API_VERSION_NAMESPACE(MSGPACK_DEFAULT_API_NS)
|
309
|
+
// } // namespace msgpack
|
310
|
+
//
|
311
|
+
v.msgpack_object(static_cast<object*>(&o), o.zone);
|
229
312
|
}
|
230
313
|
|
314
|
+
template <typename Stream>
|
231
315
|
template <typename T>
|
232
|
-
|
316
|
+
inline msgpack::packer<Stream>& packer<Stream>::pack(const T& v)
|
233
317
|
{
|
234
|
-
|
318
|
+
msgpack::operator<<(*this, v);
|
319
|
+
return *this;
|
235
320
|
}
|
236
321
|
|
237
|
-
|
238
|
-
inline bool operator==(const object x, const object y)
|
322
|
+
inline bool operator==(const msgpack::object& x, const msgpack::object& y)
|
239
323
|
{
|
240
|
-
|
324
|
+
if(x.type != y.type) { return false; }
|
325
|
+
|
326
|
+
switch(x.type) {
|
327
|
+
case msgpack::type::NIL:
|
328
|
+
return true;
|
329
|
+
|
330
|
+
case msgpack::type::BOOLEAN:
|
331
|
+
return x.via.boolean == y.via.boolean;
|
332
|
+
|
333
|
+
case msgpack::type::POSITIVE_INTEGER:
|
334
|
+
return x.via.u64 == y.via.u64;
|
335
|
+
|
336
|
+
case msgpack::type::NEGATIVE_INTEGER:
|
337
|
+
return x.via.i64 == y.via.i64;
|
338
|
+
|
339
|
+
case msgpack::type::FLOAT:
|
340
|
+
return x.via.f64 == y.via.f64;
|
341
|
+
|
342
|
+
case msgpack::type::STR:
|
343
|
+
return x.via.str.size == y.via.str.size &&
|
344
|
+
std::memcmp(x.via.str.ptr, y.via.str.ptr, x.via.str.size) == 0;
|
345
|
+
|
346
|
+
case msgpack::type::BIN:
|
347
|
+
return x.via.bin.size == y.via.bin.size &&
|
348
|
+
std::memcmp(x.via.bin.ptr, y.via.bin.ptr, x.via.bin.size) == 0;
|
349
|
+
|
350
|
+
case msgpack::type::EXT:
|
351
|
+
return x.via.ext.size == y.via.ext.size &&
|
352
|
+
std::memcmp(x.via.ext.ptr, y.via.ext.ptr, x.via.ext.size) == 0;
|
353
|
+
|
354
|
+
case msgpack::type::ARRAY:
|
355
|
+
if(x.via.array.size != y.via.array.size) {
|
356
|
+
return false;
|
357
|
+
} else if(x.via.array.size == 0) {
|
358
|
+
return true;
|
359
|
+
} else {
|
360
|
+
msgpack::object* px = x.via.array.ptr;
|
361
|
+
msgpack::object* const pxend = x.via.array.ptr + x.via.array.size;
|
362
|
+
msgpack::object* py = y.via.array.ptr;
|
363
|
+
do {
|
364
|
+
if(!(*px == *py)) {
|
365
|
+
return false;
|
366
|
+
}
|
367
|
+
++px;
|
368
|
+
++py;
|
369
|
+
} while(px < pxend);
|
370
|
+
return true;
|
371
|
+
}
|
372
|
+
|
373
|
+
case msgpack::type::MAP:
|
374
|
+
if(x.via.map.size != y.via.map.size) {
|
375
|
+
return false;
|
376
|
+
} else if(x.via.map.size == 0) {
|
377
|
+
return true;
|
378
|
+
} else {
|
379
|
+
msgpack::object_kv* px = x.via.map.ptr;
|
380
|
+
msgpack::object_kv* const pxend = x.via.map.ptr + x.via.map.size;
|
381
|
+
msgpack::object_kv* py = y.via.map.ptr;
|
382
|
+
do {
|
383
|
+
if(!(px->key == py->key) || !(px->val == py->val)) {
|
384
|
+
return false;
|
385
|
+
}
|
386
|
+
++px;
|
387
|
+
++py;
|
388
|
+
} while(px < pxend);
|
389
|
+
return true;
|
390
|
+
}
|
391
|
+
|
392
|
+
default:
|
393
|
+
return false;
|
394
|
+
}
|
241
395
|
}
|
242
396
|
|
243
397
|
template <typename T>
|
244
|
-
inline bool operator==(const object x, const T& y)
|
398
|
+
inline bool operator==(const msgpack::object& x, const T& y)
|
245
399
|
try {
|
246
|
-
|
400
|
+
return x == msgpack::object(y);
|
247
401
|
} catch (msgpack::type_error&) {
|
248
|
-
|
402
|
+
return false;
|
249
403
|
}
|
250
404
|
|
251
|
-
inline bool operator!=(const object x, const object y)
|
405
|
+
inline bool operator!=(const msgpack::object& x, const msgpack::object& y)
|
252
406
|
{ return !(x == y); }
|
253
407
|
|
254
408
|
template <typename T>
|
255
|
-
inline bool operator==(const T& y, const object x)
|
409
|
+
inline bool operator==(const T& y, const msgpack::object x)
|
256
410
|
{ return x == y; }
|
257
411
|
|
258
412
|
template <typename T>
|
259
|
-
inline bool operator!=(const object x, const T& y)
|
413
|
+
inline bool operator!=(const msgpack::object& x, const T& y)
|
260
414
|
{ return !(x == y); }
|
261
415
|
|
262
416
|
template <typename T>
|
263
|
-
inline bool operator!=(const T& y, const object x)
|
417
|
+
inline bool operator!=(const T& y, const msgpack::object& x)
|
264
418
|
{ return x != y; }
|
265
419
|
|
266
420
|
|
267
|
-
inline object::implicit_type object::convert() const
|
421
|
+
inline msgpack::object::implicit_type object::convert() const
|
422
|
+
{
|
423
|
+
return msgpack::object::implicit_type(*this);
|
424
|
+
}
|
425
|
+
|
426
|
+
template <typename T>
|
427
|
+
inline void object::convert(T& v) const
|
268
428
|
{
|
269
|
-
|
429
|
+
msgpack::operator>>(*this, v);
|
270
430
|
}
|
271
431
|
|
272
432
|
template <typename T>
|
273
433
|
inline void object::convert(T* v) const
|
274
434
|
{
|
275
|
-
|
435
|
+
convert(*v);
|
276
436
|
}
|
277
437
|
|
278
438
|
template <typename T>
|
279
439
|
inline T object::as() const
|
280
440
|
{
|
281
|
-
|
282
|
-
|
283
|
-
|
441
|
+
T v;
|
442
|
+
convert(v);
|
443
|
+
return v;
|
284
444
|
}
|
285
445
|
|
286
446
|
|
287
447
|
inline object::object()
|
288
448
|
{
|
289
|
-
|
449
|
+
type = msgpack::type::NIL;
|
290
450
|
}
|
291
451
|
|
292
452
|
template <typename T>
|
293
453
|
inline object::object(const T& v)
|
294
454
|
{
|
295
|
-
|
455
|
+
// If you get a error 'no matching function call to
|
456
|
+
// operator<<(msgpack::v?::object::object(const T&)
|
457
|
+
// [with T = your_class]'
|
458
|
+
//
|
459
|
+
// check the following:
|
460
|
+
// 1. The class your_class should have MSGPACK_DEFINE macro or
|
461
|
+
//
|
462
|
+
// 2. The class your_class should have the following operator declaration and
|
463
|
+
// definition:
|
464
|
+
//
|
465
|
+
// namespace msgpack {
|
466
|
+
// MSGPACK_API_VERSION_NAMESPACE(MSGPACK_DEFAULT_API_NS) {
|
467
|
+
// void operator<< (object& o, const your_class& v);
|
468
|
+
// } // MSGPACK_API_VERSION_NAMESPACE(MSGPACK_DEFAULT_API_NS)
|
469
|
+
// } // namespace msgpack
|
470
|
+
//
|
471
|
+
// See 3.
|
472
|
+
//
|
473
|
+
// 3. #include "msgpack.hpp" too early.
|
474
|
+
// Replace msgpack.hpp with msgpack_fwd.hpp, then,
|
475
|
+
// place operator declarations as follows:
|
476
|
+
//
|
477
|
+
// namespace msgpack {
|
478
|
+
// MSGPACK_API_VERSION_NAMESPACE(MSGPACK_DEFAULT_API_NS) {
|
479
|
+
// void operator<< (object& o, const your_class& v);
|
480
|
+
// } // MSGPACK_API_VERSION_NAMESPACE(MSGPACK_DEFAULT_API_NS)
|
481
|
+
// } // namespace msgpack
|
482
|
+
//
|
483
|
+
// then, #include "msgpack.hpp", finally place the operator definitions as follows:
|
484
|
+
//
|
485
|
+
// void operator<< (object& o, const your_class& v) {
|
486
|
+
// // set object attributes using v.
|
487
|
+
// }
|
488
|
+
// } // MSGPACK_API_VERSION_NAMESPACE(MSGPACK_DEFAULT_API_NS)
|
489
|
+
// } // namespace msgpack
|
490
|
+
//
|
491
|
+
msgpack::operator<<(*this, v);
|
296
492
|
}
|
297
493
|
|
298
494
|
template <typename T>
|
299
495
|
inline object& object::operator=(const T& v)
|
300
496
|
{
|
301
|
-
|
302
|
-
|
497
|
+
*this = object(v);
|
498
|
+
return *this;
|
303
499
|
}
|
304
500
|
|
305
501
|
template <typename T>
|
306
|
-
object::object(const T& v, zone
|
502
|
+
object::object(const T& v, msgpack::zone& z)
|
307
503
|
{
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
504
|
+
with_zone oz(z);
|
505
|
+
msgpack::operator<<(oz, v);
|
506
|
+
type = oz.type;
|
507
|
+
via = oz.via;
|
508
|
+
}
|
509
|
+
|
510
|
+
template <typename T>
|
511
|
+
object::object(const T& v, msgpack::zone* z)
|
512
|
+
{
|
513
|
+
with_zone oz(*z);
|
514
|
+
msgpack::operator<<(oz, v);
|
515
|
+
type = oz.type;
|
516
|
+
via = oz.via;
|
312
517
|
}
|
313
518
|
|
314
519
|
|
315
|
-
inline object::object(msgpack_object o)
|
520
|
+
inline object::object(const msgpack_object& o)
|
316
521
|
{
|
317
|
-
|
318
|
-
|
522
|
+
// FIXME beter way?
|
523
|
+
std::memcpy(this, &o, sizeof(o));
|
319
524
|
}
|
320
525
|
|
321
|
-
inline void operator<< (object& o, msgpack_object v)
|
526
|
+
inline void operator<< (msgpack::object& o, const msgpack_object& v)
|
322
527
|
{
|
323
|
-
|
324
|
-
|
528
|
+
// FIXME beter way?
|
529
|
+
std::memcpy(&o, &v, sizeof(v));
|
325
530
|
}
|
326
531
|
|
327
532
|
inline object::operator msgpack_object() const
|
328
533
|
{
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
534
|
+
// FIXME beter way?
|
535
|
+
msgpack_object obj;
|
536
|
+
std::memcpy(&obj, this, sizeof(obj));
|
537
|
+
return obj;
|
333
538
|
}
|
334
539
|
|
335
540
|
|
336
541
|
// obsolete
|
337
542
|
template <typename T>
|
338
|
-
inline void convert(T& v, object o)
|
543
|
+
inline void convert(T& v, msgpack::object const& o)
|
339
544
|
{
|
340
|
-
|
545
|
+
o.convert(v);
|
341
546
|
}
|
342
547
|
|
343
548
|
// obsolete
|
344
549
|
template <typename Stream, typename T>
|
345
|
-
inline void pack(packer<Stream>& o, const T& v)
|
550
|
+
inline void pack(msgpack::packer<Stream>& o, const T& v)
|
346
551
|
{
|
347
|
-
|
552
|
+
o.pack(v);
|
348
553
|
}
|
349
554
|
|
350
555
|
// obsolete
|
351
556
|
template <typename Stream, typename T>
|
352
|
-
inline void pack_copy(packer<Stream>& o, T v)
|
557
|
+
inline void pack_copy(msgpack::packer<Stream>& o, T v)
|
353
558
|
{
|
354
|
-
|
559
|
+
pack(o, v);
|
355
560
|
}
|
356
561
|
|
357
562
|
|
358
563
|
template <typename Stream>
|
359
|
-
packer<Stream>& operator<< (packer<Stream>& o, const object& v)
|
564
|
+
inline msgpack::packer<Stream>& operator<< (msgpack::packer<Stream>& o, const msgpack::object& v)
|
360
565
|
{
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
566
|
+
switch(v.type) {
|
567
|
+
case msgpack::type::NIL:
|
568
|
+
o.pack_nil();
|
569
|
+
return o;
|
570
|
+
|
571
|
+
case msgpack::type::BOOLEAN:
|
572
|
+
if(v.via.boolean) {
|
573
|
+
o.pack_true();
|
574
|
+
} else {
|
575
|
+
o.pack_false();
|
576
|
+
}
|
577
|
+
return o;
|
578
|
+
|
579
|
+
case msgpack::type::POSITIVE_INTEGER:
|
580
|
+
o.pack_uint64(v.via.u64);
|
581
|
+
return o;
|
582
|
+
|
583
|
+
case msgpack::type::NEGATIVE_INTEGER:
|
584
|
+
o.pack_int64(v.via.i64);
|
585
|
+
return o;
|
586
|
+
|
587
|
+
case msgpack::type::FLOAT:
|
588
|
+
o.pack_double(v.via.f64);
|
589
|
+
return o;
|
590
|
+
|
591
|
+
case msgpack::type::STR:
|
592
|
+
o.pack_str(v.via.str.size);
|
593
|
+
o.pack_str_body(v.via.str.ptr, v.via.str.size);
|
594
|
+
return o;
|
595
|
+
|
596
|
+
case msgpack::type::BIN:
|
597
|
+
o.pack_bin(v.via.bin.size);
|
598
|
+
o.pack_bin_body(v.via.bin.ptr, v.via.bin.size);
|
599
|
+
return o;
|
600
|
+
|
601
|
+
case msgpack::type::EXT:
|
602
|
+
o.pack_ext(v.via.ext.size, v.via.ext.type());
|
603
|
+
o.pack_ext_body(v.via.ext.data(), v.via.ext.size);
|
604
|
+
return o;
|
605
|
+
|
606
|
+
case msgpack::type::ARRAY:
|
607
|
+
o.pack_array(v.via.array.size);
|
608
|
+
for(msgpack::object* p(v.via.array.ptr),
|
609
|
+
* const pend(v.via.array.ptr + v.via.array.size);
|
610
|
+
p < pend; ++p) {
|
611
|
+
msgpack::operator<<(o, *p);
|
612
|
+
}
|
613
|
+
return o;
|
614
|
+
|
615
|
+
case msgpack::type::MAP:
|
616
|
+
o.pack_map(v.via.map.size);
|
617
|
+
for(msgpack::object_kv* p(v.via.map.ptr),
|
618
|
+
* const pend(v.via.map.ptr + v.via.map.size);
|
619
|
+
p < pend; ++p) {
|
620
|
+
msgpack::operator<<(o, p->key);
|
621
|
+
msgpack::operator<<(o, p->val);
|
622
|
+
}
|
623
|
+
return o;
|
624
|
+
|
625
|
+
default:
|
626
|
+
throw msgpack::type_error();
|
627
|
+
}
|
413
628
|
}
|
414
629
|
|
630
|
+
template <typename Stream>
|
631
|
+
msgpack::packer<Stream>& operator<< (msgpack::packer<Stream>& o, const msgpack::object::with_zone& v)
|
632
|
+
{
|
633
|
+
return o << static_cast<msgpack::object>(v);
|
634
|
+
}
|
635
|
+
|
636
|
+
inline std::ostream& operator<< (std::ostream& s, const msgpack::object& o)
|
637
|
+
{
|
638
|
+
switch(o.type) {
|
639
|
+
case msgpack::type::NIL:
|
640
|
+
s << "nil";
|
641
|
+
break;
|
642
|
+
|
643
|
+
case msgpack::type::BOOLEAN:
|
644
|
+
s << (o.via.boolean ? "true" : "false");
|
645
|
+
break;
|
646
|
+
|
647
|
+
case msgpack::type::POSITIVE_INTEGER:
|
648
|
+
s << o.via.u64;
|
649
|
+
break;
|
650
|
+
|
651
|
+
case msgpack::type::NEGATIVE_INTEGER:
|
652
|
+
s << o.via.i64;
|
653
|
+
break;
|
654
|
+
|
655
|
+
case msgpack::type::FLOAT:
|
656
|
+
s << o.via.f64;
|
657
|
+
break;
|
658
|
+
|
659
|
+
case msgpack::type::STR:
|
660
|
+
(s << '"').write(o.via.str.ptr, o.via.str.size) << '"';
|
661
|
+
break;
|
662
|
+
|
663
|
+
case msgpack::type::BIN:
|
664
|
+
(s << '"').write(o.via.bin.ptr, o.via.bin.size) << '"';
|
665
|
+
break;
|
666
|
+
|
667
|
+
case msgpack::type::EXT:
|
668
|
+
s << "EXT";
|
669
|
+
break;
|
670
|
+
|
671
|
+
case msgpack::type::ARRAY:
|
672
|
+
s << "[";
|
673
|
+
if(o.via.array.size != 0) {
|
674
|
+
msgpack::object* p(o.via.array.ptr);
|
675
|
+
s << *p;
|
676
|
+
++p;
|
677
|
+
for(msgpack::object* const pend(o.via.array.ptr + o.via.array.size);
|
678
|
+
p < pend; ++p) {
|
679
|
+
s << ", " << *p;
|
680
|
+
}
|
681
|
+
}
|
682
|
+
s << "]";
|
683
|
+
break;
|
684
|
+
|
685
|
+
case msgpack::type::MAP:
|
686
|
+
s << "{";
|
687
|
+
if(o.via.map.size != 0) {
|
688
|
+
msgpack::object_kv* p(o.via.map.ptr);
|
689
|
+
s << p->key << "=>" << p->val;
|
690
|
+
++p;
|
691
|
+
for(msgpack::object_kv* const pend(o.via.map.ptr + o.via.map.size);
|
692
|
+
p < pend; ++p) {
|
693
|
+
s << ", " << p->key << "=>" << p->val;
|
694
|
+
}
|
695
|
+
}
|
696
|
+
s << "}";
|
697
|
+
break;
|
698
|
+
|
699
|
+
default:
|
700
|
+
// FIXME
|
701
|
+
s << "#<UNKNOWN " << static_cast<uint16_t>(o.type) << ">";
|
702
|
+
}
|
703
|
+
return s;
|
704
|
+
}
|
705
|
+
|
706
|
+
} // MSGPACK_API_VERSION_NAMESPACE(v1)
|
415
707
|
|
416
708
|
} // namespace msgpack
|
417
709
|
|
418
710
|
#include "msgpack/type.hpp"
|
419
711
|
|
420
712
|
#endif /* msgpack/object.hpp */
|
421
|
-
|