rroonga 7.1.1-x86-mingw32 → 9.0.2-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Rakefile +3 -3
- data/doc/text/news.md +22 -0
- data/ext/groonga/extconf.rb +29 -26
- data/ext/groonga/rb-grn.h +3 -3
- data/lib/2.2/groonga.so +0 -0
- data/lib/2.3/groonga.so +0 -0
- data/lib/2.4/groonga.so +0 -0
- data/lib/2.5/groonga.so +0 -0
- data/lib/groonga/expression-builder.rb +1 -1
- data/lib/groonga/schema.rb +13 -0
- data/rroonga-build.rb +4 -11
- data/test/test-expression-builder.rb +8 -0
- data/vendor/local/bin/cv2pdb.exe +0 -0
- data/vendor/local/bin/generate-pdb.bat +38 -36
- data/vendor/local/bin/grndb.exe +0 -0
- data/vendor/local/bin/groonga-benchmark.exe +0 -0
- data/vendor/local/bin/groonga-suggest-create-dataset.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-2.dll +0 -0
- data/vendor/local/bin/libmsgpackc.dll +0 -0
- data/vendor/local/bin/libonigmo-6.dll +0 -0
- data/vendor/local/bin/libpcre-1.dll +0 -0
- data/vendor/local/bin/libpcrecpp-0.dll +0 -0
- data/vendor/local/bin/libpcreposix-0.dll +0 -0
- data/vendor/local/bin/lz4.exe +0 -0
- data/vendor/local/bin/lz4c.exe +0 -0
- data/vendor/local/bin/{lz4cat → lz4cat.exe} +0 -0
- data/vendor/local/bin/mecab.exe +0 -0
- data/vendor/local/bin/pcre-config +1 -1
- data/vendor/local/bin/pcregrep.exe +0 -0
- data/vendor/local/bin/pcretest.exe +0 -0
- data/vendor/local/bin/unlz4.exe +0 -0
- data/vendor/local/bin/zlib1.dll +0 -0
- data/vendor/local/include/groonga/groonga.h +16 -1
- data/vendor/local/include/groonga/groonga/accessor.h +5 -1
- data/vendor/local/include/groonga/groonga/column.h +4 -0
- data/vendor/local/include/groonga/groonga/db.h +3 -1
- data/vendor/local/include/groonga/groonga/expr.h +5 -0
- data/vendor/local/include/groonga/groonga/groonga.h +124 -171
- data/vendor/local/include/groonga/groonga/highlighter.h +57 -0
- data/vendor/local/include/groonga/groonga/ii.h +2 -0
- data/vendor/local/include/groonga/groonga/index_column.h +31 -0
- data/vendor/local/include/groonga/groonga/memory.h +29 -0
- data/vendor/local/include/groonga/groonga/msgpack.h +50 -0
- data/vendor/local/include/groonga/groonga/obj.h +22 -1
- data/vendor/local/include/groonga/groonga/option.h +61 -0
- data/vendor/local/include/groonga/groonga/output.h +57 -2
- data/vendor/local/include/groonga/groonga/output_columns.h +38 -0
- data/vendor/local/include/groonga/groonga/plugin.h +5 -0
- data/vendor/local/include/groonga/groonga/raw_string.h +60 -0
- data/vendor/local/include/groonga/groonga/string.h +113 -0
- data/vendor/local/include/groonga/groonga/table.h +89 -1
- data/vendor/local/include/groonga/groonga/thread.h +15 -0
- data/vendor/local/include/groonga/groonga/time.h +1 -0
- data/vendor/local/include/groonga/groonga/token.h +60 -10
- data/vendor/local/include/groonga/groonga/token_cursor.h +59 -0
- data/vendor/local/include/groonga/groonga/token_filter.h +24 -0
- data/vendor/local/include/groonga/groonga/token_metadata.h +49 -0
- data/vendor/local/include/groonga/groonga/tokenizer.h +99 -25
- data/vendor/local/include/groonga/groonga/tokenizer_query_deprecated.h +50 -0
- data/vendor/local/include/groonga/groonga/vector.h +80 -0
- data/vendor/local/include/groonga/groonga/version.h +32 -0
- data/vendor/local/include/groonga/groonga/window_function.h +18 -8
- data/vendor/local/include/groonga/groonga/window_function_executor.h +68 -0
- data/vendor/local/include/lz4.h +504 -212
- data/vendor/local/include/lz4frame.h +433 -153
- data/vendor/local/include/lz4frame_static.h +47 -0
- data/vendor/local/include/lz4hc.h +281 -108
- data/vendor/local/include/msgpack.hpp +4 -0
- data/vendor/local/include/msgpack/adaptor/adaptor_base.hpp +1 -0
- data/vendor/local/include/msgpack/adaptor/adaptor_base_decl.hpp +1 -0
- data/vendor/local/include/msgpack/adaptor/array_ref_decl.hpp +1 -0
- data/vendor/local/include/msgpack/adaptor/boost/msgpack_variant_decl.hpp +1 -0
- data/vendor/local/include/msgpack/adaptor/boost/string_view.hpp +15 -0
- data/vendor/local/include/msgpack/adaptor/check_container_size_decl.hpp +1 -0
- data/vendor/local/include/msgpack/adaptor/cpp17/optional.hpp +16 -0
- data/vendor/local/include/msgpack/adaptor/cpp17/string_view.hpp +16 -0
- data/vendor/local/include/msgpack/adaptor/define_decl.hpp +2 -0
- data/vendor/local/include/msgpack/adaptor/ext_decl.hpp +1 -0
- data/vendor/local/include/msgpack/adaptor/fixint_decl.hpp +1 -0
- data/vendor/local/include/msgpack/adaptor/int_decl.hpp +1 -0
- data/vendor/local/include/msgpack/adaptor/map_decl.hpp +1 -0
- data/vendor/local/include/msgpack/adaptor/msgpack_tuple_decl.hpp +1 -0
- data/vendor/local/include/msgpack/adaptor/nil_decl.hpp +1 -0
- data/vendor/local/include/msgpack/adaptor/raw_decl.hpp +1 -0
- data/vendor/local/include/msgpack/adaptor/size_equal_only_decl.hpp +1 -0
- data/vendor/local/include/msgpack/adaptor/tr1/unordered_map.hpp +2 -2
- data/vendor/local/include/msgpack/adaptor/tr1/unordered_set.hpp +2 -2
- data/vendor/local/include/msgpack/adaptor/v4raw_decl.hpp +1 -0
- data/vendor/local/include/msgpack/cpp_config_decl.hpp +1 -0
- data/vendor/local/include/msgpack/create_object_visitor.hpp +17 -0
- data/vendor/local/include/msgpack/create_object_visitor_decl.hpp +16 -0
- data/vendor/local/include/msgpack/fbuffer.h +1 -1
- data/vendor/local/include/msgpack/fbuffer_decl.hpp +1 -0
- data/vendor/local/include/msgpack/gcc_atomic.hpp +0 -2
- data/vendor/local/include/msgpack/iterator_decl.hpp +2 -1
- data/vendor/local/include/msgpack/meta_decl.hpp +1 -0
- data/vendor/local/include/msgpack/null_visitor.hpp +17 -0
- data/vendor/local/include/msgpack/null_visitor_decl.hpp +16 -0
- data/vendor/local/include/msgpack/object.h +5 -0
- data/vendor/local/include/msgpack/object_decl.hpp +1 -0
- data/vendor/local/include/msgpack/object_fwd.hpp +1 -0
- data/vendor/local/include/msgpack/object_fwd_decl.hpp +1 -0
- data/vendor/local/include/msgpack/pack.h +1 -0
- data/vendor/local/include/msgpack/pack_decl.hpp +1 -0
- data/vendor/local/include/msgpack/parse.hpp +18 -0
- data/vendor/local/include/msgpack/parse_decl.hpp +16 -0
- data/vendor/local/include/msgpack/parse_return.hpp +17 -0
- data/vendor/local/include/msgpack/sbuffer_decl.hpp +1 -0
- data/vendor/local/include/msgpack/sysdep.h +34 -26
- data/vendor/local/include/msgpack/type.hpp +9 -0
- data/vendor/local/include/msgpack/unpack.h +12 -1
- data/vendor/local/include/msgpack/unpack.hpp +1 -0
- data/vendor/local/include/msgpack/unpack_decl.hpp +1 -0
- data/vendor/local/include/msgpack/unpack_exception.hpp +15 -0
- data/vendor/local/include/msgpack/unpack_template.h +22 -30
- data/vendor/local/include/msgpack/v1/adaptor/array_ref.hpp +6 -6
- data/vendor/local/include/msgpack/v1/adaptor/boost/fusion.hpp +49 -6
- data/vendor/local/include/msgpack/v1/adaptor/boost/msgpack_variant.hpp +6 -4
- data/vendor/local/include/msgpack/v1/adaptor/boost/string_view.hpp +87 -0
- data/vendor/local/include/msgpack/v1/adaptor/carray.hpp +11 -11
- data/vendor/local/include/msgpack/v1/adaptor/char_ptr.hpp +1 -1
- data/vendor/local/include/msgpack/v1/adaptor/cpp11/array.hpp +1 -1
- data/vendor/local/include/msgpack/v1/adaptor/cpp11/array_char.hpp +8 -1
- data/vendor/local/include/msgpack/v1/adaptor/cpp11/array_unsigned_char.hpp +8 -1
- data/vendor/local/include/msgpack/v1/adaptor/cpp11/forward_list.hpp +1 -1
- data/vendor/local/include/msgpack/v1/adaptor/cpp11/tuple.hpp +2 -2
- data/vendor/local/include/msgpack/v1/adaptor/cpp11/unordered_map.hpp +4 -4
- data/vendor/local/include/msgpack/v1/adaptor/cpp11/unordered_set.hpp +2 -2
- data/vendor/local/include/msgpack/v1/adaptor/cpp17/optional.hpp +90 -0
- data/vendor/local/include/msgpack/v1/adaptor/cpp17/string_view.hpp +86 -0
- data/vendor/local/include/msgpack/v1/adaptor/deque.hpp +1 -1
- data/vendor/local/include/msgpack/v1/adaptor/detail/cpp03_define_array.hpp +1088 -32
- data/vendor/local/include/msgpack/v1/adaptor/detail/cpp03_define_map.hpp +32 -16
- data/vendor/local/include/msgpack/v1/adaptor/detail/cpp03_msgpack_tuple.hpp +32 -32
- data/vendor/local/include/msgpack/v1/adaptor/detail/cpp11_convert_helper.hpp +45 -0
- data/vendor/local/include/msgpack/v1/adaptor/detail/cpp11_define_array.hpp +4 -3
- data/vendor/local/include/msgpack/v1/adaptor/detail/cpp11_define_map.hpp +4 -2
- data/vendor/local/include/msgpack/v1/adaptor/detail/cpp11_msgpack_tuple.hpp +2 -2
- data/vendor/local/include/msgpack/v1/adaptor/ext.hpp +1 -1
- data/vendor/local/include/msgpack/v1/adaptor/fixint.hpp +40 -24
- data/vendor/local/include/msgpack/v1/adaptor/float.hpp +4 -4
- data/vendor/local/include/msgpack/v1/adaptor/int.hpp +55 -33
- data/vendor/local/include/msgpack/v1/adaptor/list.hpp +1 -1
- data/vendor/local/include/msgpack/v1/adaptor/map.hpp +10 -10
- data/vendor/local/include/msgpack/v1/adaptor/pair.hpp +2 -2
- data/vendor/local/include/msgpack/v1/adaptor/set.hpp +2 -2
- data/vendor/local/include/msgpack/v1/adaptor/string.hpp +1 -1
- data/vendor/local/include/msgpack/v1/adaptor/tr1/unordered_map.hpp +2 -2
- data/vendor/local/include/msgpack/v1/adaptor/tr1/unordered_set.hpp +2 -2
- data/vendor/local/include/msgpack/v1/adaptor/vector.hpp +5 -5
- data/vendor/local/include/msgpack/v1/adaptor/vector_bool.hpp +1 -1
- data/vendor/local/include/msgpack/v1/adaptor/vector_char.hpp +9 -9
- data/vendor/local/include/msgpack/v1/adaptor/vector_unsigned_char.hpp +9 -9
- data/vendor/local/include/msgpack/v1/cpp_config.hpp +6 -0
- data/vendor/local/include/msgpack/v1/cpp_config_decl.hpp +6 -0
- data/vendor/local/include/msgpack/v1/detail/cpp03_zone.hpp +41 -34
- data/vendor/local/include/msgpack/v1/detail/cpp03_zone_decl.hpp +8 -0
- data/vendor/local/include/msgpack/v1/detail/cpp11_zone.hpp +25 -19
- data/vendor/local/include/msgpack/v1/detail/cpp11_zone_decl.hpp +8 -0
- data/vendor/local/include/msgpack/v1/meta.hpp +6 -0
- data/vendor/local/include/msgpack/v1/meta_decl.hpp +5 -0
- data/vendor/local/include/msgpack/v1/object.hpp +768 -393
- data/vendor/local/include/msgpack/v1/object_decl.hpp +11 -1
- data/vendor/local/include/msgpack/v1/object_fwd.hpp +4 -1
- data/vendor/local/include/msgpack/v1/object_fwd_decl.hpp +3 -1
- data/vendor/local/include/msgpack/v1/parse_return.hpp +36 -0
- data/vendor/local/include/msgpack/v1/unpack.hpp +39 -120
- data/vendor/local/include/msgpack/v1/unpack_decl.hpp +2 -9
- data/vendor/local/include/msgpack/v1/unpack_exception.hpp +122 -0
- data/vendor/local/include/msgpack/v1/vrefbuffer.hpp +2 -2
- data/vendor/local/include/msgpack/v2/create_object_visitor.hpp +250 -0
- data/vendor/local/include/msgpack/v2/create_object_visitor_decl.hpp +33 -0
- data/vendor/local/include/msgpack/v2/meta_decl.hpp +4 -0
- data/vendor/local/include/msgpack/v2/null_visitor.hpp +96 -0
- data/vendor/local/include/msgpack/v2/null_visitor_decl.hpp +29 -0
- data/vendor/local/include/msgpack/v2/object_decl.hpp +4 -0
- data/vendor/local/include/msgpack/v2/object_fwd.hpp +1 -1
- data/vendor/local/include/msgpack/v2/object_fwd_decl.hpp +2 -0
- data/vendor/local/include/msgpack/v2/pack_decl.hpp +1 -0
- data/vendor/local/include/msgpack/v2/parse.hpp +1072 -0
- data/vendor/local/include/msgpack/v2/parse_decl.hpp +79 -0
- data/vendor/local/include/msgpack/v2/parse_return.hpp +37 -0
- data/vendor/local/include/msgpack/v2/unpack.hpp +21 -1298
- data/vendor/local/include/msgpack/v2/unpack_decl.hpp +9 -45
- data/vendor/local/include/msgpack/v2/x3_parse.hpp +875 -0
- data/vendor/local/include/msgpack/v2/x3_parse_decl.hpp +36 -0
- data/vendor/local/include/msgpack/v2/x3_unpack.hpp +120 -0
- data/vendor/local/include/msgpack/v2/x3_unpack_decl.hpp +71 -0
- data/vendor/local/include/msgpack/v3/adaptor/adaptor_base.hpp +58 -0
- data/vendor/local/include/msgpack/v3/adaptor/adaptor_base_decl.hpp +52 -0
- data/vendor/local/include/msgpack/v3/adaptor/array_ref_decl.hpp +36 -0
- data/vendor/local/include/msgpack/v3/adaptor/boost/msgpack_variant_decl.hpp +42 -0
- data/vendor/local/include/msgpack/v3/adaptor/check_container_size_decl.hpp +39 -0
- data/vendor/local/include/msgpack/v3/adaptor/define_decl.hpp +23 -0
- data/vendor/local/include/msgpack/v3/adaptor/detail/cpp03_define_array_decl.hpp +31 -0
- data/vendor/local/include/msgpack/v3/adaptor/detail/cpp03_define_map_decl.hpp +31 -0
- data/vendor/local/include/msgpack/v3/adaptor/detail/cpp03_msgpack_tuple_decl.hpp +43 -0
- data/vendor/local/include/msgpack/v3/adaptor/detail/cpp11_define_array_decl.hpp +32 -0
- data/vendor/local/include/msgpack/v3/adaptor/detail/cpp11_define_map_decl.hpp +31 -0
- data/vendor/local/include/msgpack/v3/adaptor/detail/cpp11_msgpack_tuple_decl.hpp +59 -0
- data/vendor/local/include/msgpack/v3/adaptor/ext_decl.hpp +34 -0
- data/vendor/local/include/msgpack/v3/adaptor/fixint_decl.hpp +43 -0
- data/vendor/local/include/msgpack/v3/adaptor/int_decl.hpp +54 -0
- data/vendor/local/include/msgpack/v3/adaptor/map_decl.hpp +33 -0
- data/vendor/local/include/msgpack/v3/adaptor/msgpack_tuple_decl.hpp +21 -0
- data/vendor/local/include/msgpack/v3/adaptor/nil_decl.hpp +42 -0
- data/vendor/local/include/msgpack/v3/adaptor/raw_decl.hpp +33 -0
- data/vendor/local/include/msgpack/v3/adaptor/size_equal_only_decl.hpp +35 -0
- data/vendor/local/include/msgpack/v3/adaptor/v4raw_decl.hpp +34 -0
- data/vendor/local/include/msgpack/v3/cpp_config_decl.hpp +84 -0
- data/vendor/local/include/msgpack/v3/create_object_visitor_decl.hpp +33 -0
- data/vendor/local/include/msgpack/v3/detail/cpp03_zone_decl.hpp +31 -0
- data/vendor/local/include/msgpack/v3/detail/cpp11_zone_decl.hpp +31 -0
- data/vendor/local/include/msgpack/v3/fbuffer_decl.hpp +32 -0
- data/vendor/local/include/msgpack/v3/iterator_decl.hpp +33 -0
- data/vendor/local/include/msgpack/v3/meta_decl.hpp +50 -0
- data/vendor/local/include/msgpack/v3/null_visitor_decl.hpp +29 -0
- data/vendor/local/include/msgpack/v3/object_decl.hpp +53 -0
- data/vendor/local/include/msgpack/v3/object_fwd.hpp +70 -0
- data/vendor/local/include/msgpack/v3/object_fwd_decl.hpp +75 -0
- data/vendor/local/include/msgpack/v3/pack_decl.hpp +55 -0
- data/vendor/local/include/msgpack/v3/parse.hpp +677 -0
- data/vendor/local/include/msgpack/v3/parse_decl.hpp +49 -0
- data/vendor/local/include/msgpack/v3/parse_return.hpp +35 -0
- data/vendor/local/include/msgpack/v3/sbuffer_decl.hpp +33 -0
- data/vendor/local/include/msgpack/v3/unpack.hpp +192 -0
- data/vendor/local/include/msgpack/v3/unpack_decl.hpp +304 -0
- data/vendor/local/include/msgpack/v3/vrefbuffer_decl.hpp +29 -0
- data/vendor/local/include/msgpack/v3/x3_parse_decl.hpp +34 -0
- data/vendor/local/include/msgpack/v3/x3_unpack.hpp +97 -0
- data/vendor/local/include/msgpack/v3/x3_unpack_decl.hpp +65 -0
- data/vendor/local/include/msgpack/v3/zbuffer_decl.hpp +29 -0
- data/vendor/local/include/msgpack/v3/zone_decl.hpp +21 -0
- data/vendor/local/include/msgpack/version_master.h +2 -2
- data/vendor/local/include/msgpack/versioning.hpp +5 -3
- data/vendor/local/include/msgpack/vrefbuffer.h +1 -2
- data/vendor/local/include/msgpack/vrefbuffer_decl.hpp +1 -0
- data/vendor/local/include/msgpack/x3_parse.hpp +15 -0
- data/vendor/local/include/msgpack/x3_parse_decl.hpp +16 -0
- data/vendor/local/include/msgpack/x3_unpack.hpp +16 -0
- data/vendor/local/include/msgpack/x3_unpack_decl.hpp +16 -0
- data/vendor/local/include/msgpack/zbuffer_decl.hpp +1 -0
- data/vendor/local/include/msgpack/zone_decl.hpp +1 -0
- data/vendor/local/include/pcre.h +6 -6
- data/vendor/local/lib/cmake/msgpack/msgpack-config-version.cmake +46 -0
- data/vendor/local/lib/cmake/msgpack/msgpack-config.cmake +47 -0
- data/vendor/local/lib/cmake/msgpack/msgpack-targets-noconfig.cmake +29 -0
- data/vendor/local/lib/cmake/msgpack/msgpack-targets.cmake +101 -0
- data/vendor/local/lib/groonga/plugins/functions/index_column.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/index_column.dll +0 -0
- data/vendor/local/lib/groonga/plugins/functions/index_column.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/index_column.la +1 -1
- data/vendor/local/lib/groonga/plugins/functions/math.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/math.dll +0 -0
- data/vendor/local/lib/groonga/plugins/functions/math.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/math.la +1 -1
- data/vendor/local/lib/groonga/plugins/functions/number.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/number.dll +0 -0
- data/vendor/local/lib/groonga/plugins/functions/number.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/number.la +1 -1
- data/vendor/local/lib/groonga/plugins/functions/string.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/string.dll +0 -0
- data/vendor/local/lib/groonga/plugins/functions/string.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/string.la +1 -1
- data/vendor/local/lib/groonga/plugins/functions/time.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/time.dll +0 -0
- data/vendor/local/lib/groonga/plugins/functions/time.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/time.la +1 -1
- 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 +1 -1
- data/vendor/local/lib/groonga/plugins/normalizers/mysql.a +0 -0
- data/vendor/local/lib/groonga/plugins/normalizers/mysql.dll +0 -0
- data/vendor/local/lib/groonga/plugins/normalizers/mysql.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/normalizers/mysql.la +2 -2
- 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 +1 -1
- data/vendor/local/lib/groonga/plugins/sharding/dynamic_columns.rb +150 -19
- data/vendor/local/lib/groonga/plugins/sharding/logical_count.rb +123 -65
- data/vendor/local/lib/groonga/plugins/sharding/logical_range_filter.rb +528 -113
- data/vendor/local/lib/groonga/plugins/sharding/logical_select.rb +142 -40
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- data/vendor/local/lib/groonga/scripts/ruby/backtrace_entry.rb +1 -1
- data/vendor/local/lib/groonga/scripts/ruby/command_line/grndb.rb +64 -35
- data/vendor/local/lib/groonga/scripts/ruby/expression.rb +3 -1
- data/vendor/local/lib/groonga/scripts/ruby/expression_rewriters.rb +15 -21
- data/vendor/local/lib/groonga/scripts/ruby/expression_rewriters/optimizer.rb +274 -0
- data/vendor/local/lib/groonga/scripts/ruby/expression_tree.rb +8 -2
- data/vendor/local/lib/groonga/scripts/ruby/expression_tree/assign.rb +22 -0
- data/vendor/local/lib/groonga/scripts/ruby/expression_tree/assign_binary_operation.rb +24 -0
- data/vendor/local/lib/groonga/scripts/ruby/expression_tree/binary_operation.rb +206 -8
- data/vendor/local/lib/groonga/scripts/ruby/expression_tree/constant.rb +16 -1
- data/vendor/local/lib/groonga/scripts/ruby/expression_tree/function_call.rb +30 -1
- data/vendor/local/lib/groonga/scripts/ruby/expression_tree/logical_operation.rb +6 -0
- data/vendor/local/lib/groonga/scripts/ruby/expression_tree/member.rb +18 -0
- data/vendor/local/lib/groonga/scripts/ruby/expression_tree/null.rb +17 -0
- data/vendor/local/lib/groonga/scripts/ruby/expression_tree/reference.rb +18 -0
- data/vendor/local/lib/groonga/scripts/ruby/expression_tree/table.rb +14 -0
- data/vendor/local/lib/groonga/scripts/ruby/expression_tree/unary_operation.rb +26 -0
- data/vendor/local/lib/groonga/scripts/ruby/expression_tree/variable.rb +4 -0
- data/vendor/local/lib/groonga/scripts/ruby/expression_tree_builder.rb +78 -8
- data/vendor/local/lib/groonga/scripts/ruby/index_column.rb +10 -0
- data/vendor/local/lib/groonga/scripts/ruby/initialize/post.rb +2 -0
- data/vendor/local/lib/groonga/scripts/ruby/locale_output.rb +28 -0
- data/vendor/local/lib/groonga/scripts/ruby/logger.rb +36 -4
- data/vendor/local/lib/groonga/scripts/ruby/record.rb +1 -1
- data/vendor/local/lib/groonga/scripts/ruby/scan_info_builder.rb +0 -3
- data/vendor/local/lib/groonga/scripts/ruby/scan_info_data.rb +46 -5
- data/vendor/local/lib/groonga/scripts/ruby/scan_info_data_size_estimator.rb +5 -136
- data/vendor/local/lib/groonga/scripts/ruby/table.rb +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 +1 -1
- 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 → liblz4.dll.1.8.2} +0 -0
- data/vendor/local/lib/libmecab.dll.a +0 -0
- data/vendor/local/lib/libmsgpackc.a +0 -0
- data/vendor/local/lib/libmsgpackc.dll.a +0 -0
- data/vendor/local/lib/libonigmo.a +0 -0
- data/vendor/local/lib/libonigmo.dll.a +0 -0
- data/vendor/local/lib/libpcre.a +0 -0
- data/vendor/local/lib/libpcre.dll.a +0 -0
- data/vendor/local/lib/libpcre.la +2 -2
- data/vendor/local/lib/libpcrecpp.dll.a +0 -0
- data/vendor/local/lib/libpcrecpp.la +1 -1
- data/vendor/local/lib/libpcreposix.a +0 -0
- data/vendor/local/lib/libpcreposix.dll.a +0 -0
- data/vendor/local/lib/libpcreposix.la +2 -2
- data/vendor/local/lib/libz.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/groonga-normalizer-mysql.pc +1 -1
- data/vendor/local/lib/pkgconfig/groonga.pc +2 -2
- data/vendor/local/lib/pkgconfig/liblz4.pc +3 -3
- data/vendor/local/lib/pkgconfig/libpcre.pc +1 -1
- data/vendor/local/lib/pkgconfig/libpcrecpp.pc +1 -1
- data/vendor/local/lib/pkgconfig/libpcreposix.pc +1 -1
- data/vendor/local/lib/pkgconfig/msgpack.pc +1 -1
- 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-normalizer-mysql/README.md +14 -22
- data/vendor/local/share/doc/groonga-normalizer-mysql/news.md +22 -2
- data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/en/html/_static/basic.css +113 -4
- data/vendor/local/share/doc/groonga/en/html/_static/doctools.js +46 -19
- data/vendor/local/share/doc/groonga/en/html/_static/documentation_options.js +10 -0
- data/vendor/local/share/doc/groonga/en/html/_static/{jquery-3.1.0.js → jquery-3.2.1.js} +474 -295
- data/vendor/local/share/doc/groonga/en/html/_static/jquery.js +4 -4
- data/vendor/local/share/doc/groonga/en/html/_static/language_data.js +297 -0
- data/vendor/local/share/doc/groonga/en/html/_static/pygments.css +4 -0
- data/vendor/local/share/doc/groonga/en/html/_static/searchtools.js +69 -322
- data/vendor/local/share/doc/groonga/en/html/characteristic.html +16 -24
- data/vendor/local/share/doc/groonga/en/html/client.html +15 -23
- data/vendor/local/share/doc/groonga/en/html/community.html +30 -38
- data/vendor/local/share/doc/groonga/en/html/contribution.html +23 -31
- data/vendor/local/share/doc/groonga/en/html/contribution/development.html +15 -23
- data/vendor/local/share/doc/groonga/en/html/contribution/development/build.html +15 -23
- data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_autotools.html +58 -66
- data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_cmake.html +51 -56
- data/vendor/local/share/doc/groonga/en/html/contribution/development/build/windows_cmake.html +52 -56
- data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +27 -35
- data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +19 -27
- data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +26 -34
- data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +167 -167
- data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +16 -24
- data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +28 -36
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +15 -23
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +15 -23
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +59 -67
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/introduction.html +31 -39
- data/vendor/local/share/doc/groonga/en/html/contribution/report.html +18 -26
- data/vendor/local/share/doc/groonga/en/html/development.html +15 -23
- data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +38 -43
- data/vendor/local/share/doc/groonga/en/html/genindex.html +50 -28
- data/vendor/local/share/doc/groonga/en/html/index.html +248 -234
- data/vendor/local/share/doc/groonga/en/html/install.html +43 -47
- data/vendor/local/share/doc/groonga/en/html/install/centos.html +43 -51
- data/vendor/local/share/doc/groonga/en/html/install/debian.html +52 -131
- data/vendor/local/share/doc/groonga/en/html/install/docker.html +155 -0
- data/vendor/local/share/doc/groonga/en/html/install/fedora.html +41 -49
- data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +29 -37
- data/vendor/local/share/doc/groonga/en/html/install/others.html +142 -150
- data/vendor/local/share/doc/groonga/en/html/install/solaris.html +30 -38
- data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +43 -51
- data/vendor/local/share/doc/groonga/en/html/install/windows.html +33 -41
- data/vendor/local/share/doc/groonga/en/html/limitations.html +36 -42
- data/vendor/local/share/doc/groonga/en/html/news.html +1586 -598
- data/vendor/local/share/doc/groonga/en/html/news/0.x.html +83 -83
- data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +147 -155
- data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +26 -34
- data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +225 -233
- data/vendor/local/share/doc/groonga/en/html/news/1.3.x.html +48 -56
- data/vendor/local/share/doc/groonga/en/html/news/2.x.html +378 -386
- data/vendor/local/share/doc/groonga/en/html/news/3.x.html +320 -328
- data/vendor/local/share/doc/groonga/en/html/news/4.x.html +442 -448
- data/vendor/local/share/doc/groonga/en/html/news/5.x.html +742 -860
- data/vendor/local/share/doc/groonga/en/html/news/6.x.html +544 -621
- data/vendor/local/share/doc/groonga/en/html/news/senna.html +32 -40
- data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/en/html/reference.html +208 -198
- data/vendor/local/share/doc/groonga/en/html/reference/alias.html +85 -93
- data/vendor/local/share/doc/groonga/en/html/reference/api.html +50 -57
- data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +62 -77
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +117 -149
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +140 -176
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +43 -55
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_content_type.html +48 -56
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +194 -254
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +106 -138
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +62 -82
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +117 -137
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +74 -98
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +79 -103
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +40 -48
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +57 -73
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +75 -99
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_inspect.html +495 -0
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +52 -68
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +291 -357
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +69 -89
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +47 -59
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +226 -306
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +120 -160
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_thread.html +80 -103
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +46 -58
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +40 -52
- data/vendor/local/share/doc/groonga/en/html/reference/api/overview.html +52 -66
- data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +98 -122
- data/vendor/local/share/doc/groonga/en/html/reference/cast.html +40 -26
- data/vendor/local/share/doc/groonga/en/html/reference/column.html +16 -24
- data/vendor/local/share/doc/groonga/en/html/reference/columns/index.html +16 -24
- data/vendor/local/share/doc/groonga/en/html/reference/columns/pseudo.html +30 -34
- data/vendor/local/share/doc/groonga/en/html/reference/columns/scalar.html +16 -24
- data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +92 -100
- data/vendor/local/share/doc/groonga/en/html/reference/command.html +76 -84
- data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +26 -34
- data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +64 -72
- data/vendor/local/share/doc/groonga/en/html/reference/command/pretty_print.html +21 -29
- data/vendor/local/share/doc/groonga/en/html/reference/command/request_id.html +25 -33
- data/vendor/local/share/doc/groonga/en/html/reference/command/request_timeout.html +32 -40
- data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +105 -113
- data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +44 -50
- data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +85 -73
- data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +31 -37
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_copy.html +131 -139
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +370 -326
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +115 -117
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +38 -44
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +47 -53
- data/vendor/local/share/doc/groonga/en/html/reference/commands/config_delete.html +40 -48
- data/vendor/local/share/doc/groonga/en/html/reference/commands/config_get.html +42 -50
- data/vendor/local/share/doc/groonga/en/html/reference/commands/config_set.html +41 -49
- data/vendor/local/share/doc/groonga/en/html/reference/commands/database_unmap.html +37 -45
- data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +71 -63
- data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +31 -37
- data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +49 -51
- data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +64 -71
- data/vendor/local/share/doc/groonga/en/html/reference/commands/io_flush.html +335 -138
- data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +233 -87
- data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_acquire.html +45 -53
- data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_clear.html +42 -48
- data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_release.html +43 -51
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +58 -64
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +33 -38
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +31 -38
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_count.html +295 -218
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_parameters.html +56 -64
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_range_filter.html +532 -214
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_select.html +797 -388
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_shard_list.html +35 -43
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_table_remove.html +188 -196
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +83 -90
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +41 -48
- data/vendor/local/share/doc/groonga/en/html/reference/commands/object_exist.html +41 -49
- data/vendor/local/share/doc/groonga/en/html/reference/commands/object_inspect.html +401 -403
- data/vendor/local/share/doc/groonga/en/html/reference/commands/object_list.html +253 -261
- data/vendor/local/share/doc/groonga/en/html/reference/commands/object_remove.html +60 -68
- data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_register.html +36 -44
- data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_unregister.html +35 -43
- data/vendor/local/share/doc/groonga/en/html/reference/commands/query_expand.html +21 -29
- data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +22 -30
- data/vendor/local/share/doc/groonga/en/html/reference/commands/range_filter.html +21 -29
- data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +39 -47
- data/vendor/local/share/doc/groonga/en/html/reference/commands/reindex.html +47 -53
- data/vendor/local/share/doc/groonga/en/html/reference/commands/request_cancel.html +72 -74
- data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +38 -45
- data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +38 -45
- data/vendor/local/share/doc/groonga/en/html/reference/commands/schema.html +330 -338
- data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +1545 -1194
- data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +57 -65
- data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +83 -91
- data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +119 -133
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_copy.html +30 -38
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +165 -174
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +50 -50
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +104 -112
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_rename.html +42 -50
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_tokenize.html +49 -57
- data/vendor/local/share/doc/groonga/en/html/reference/commands/thread_limit.html +46 -54
- data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +110 -117
- data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenizer_list.html +41 -48
- data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +40 -46
- data/vendor/local/share/doc/groonga/en/html/reference/configuration.html +37 -45
- data/vendor/local/share/doc/groonga/en/html/reference/executables.html +19 -27
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grndb.html +134 -114
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +25 -31
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +66 -66
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +174 -182
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +25 -33
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +27 -35
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +191 -199
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +32 -40
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +189 -163
- data/vendor/local/share/doc/groonga/en/html/reference/function.html +59 -64
- data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +71 -79
- data/vendor/local/share/doc/groonga/en/html/reference/functions/cast_loose.html +210 -0
- data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +49 -55
- data/vendor/local/share/doc/groonga/en/html/reference/functions/fuzzy_search.html +38 -46
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +133 -142
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +67 -73
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +56 -62
- data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +80 -88
- data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +70 -78
- data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +56 -64
- data/vendor/local/share/doc/groonga/en/html/reference/functions/in_records.html +87 -94
- data/vendor/local/share/doc/groonga/en/html/reference/functions/in_values.html +54 -62
- data/vendor/local/share/doc/groonga/en/html/reference/functions/math_abs.html +55 -63
- data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +40 -48
- data/vendor/local/share/doc/groonga/en/html/reference/functions/number_classify.html +36 -44
- data/vendor/local/share/doc/groonga/en/html/reference/functions/prefix_rk_search.html +74 -82
- data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +152 -160
- data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +45 -52
- data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +76 -84
- data/vendor/local/share/doc/groonga/en/html/reference/functions/string_length.html +37 -45
- data/vendor/local/share/doc/groonga/en/html/reference/functions/string_substring.html +39 -47
- data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +76 -84
- data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_day.html +37 -45
- data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_day_of_week.html +278 -0
- data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_hour.html +37 -45
- data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_minute.html +36 -44
- data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_month.html +36 -44
- data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_second.html +36 -44
- data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_week.html +36 -44
- data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_year.html +37 -45
- data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_find.html +368 -0
- data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_new.html +40 -48
- data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_size.html +54 -62
- data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_slice.html +40 -47
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +44 -52
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +307 -316
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +486 -492
- data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +44 -52
- data/vendor/local/share/doc/groonga/en/html/reference/log.html +128 -147
- data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +43 -92
- data/vendor/local/share/doc/groonga/en/html/reference/normalizers/normalizer_auto.html +179 -0
- data/vendor/local/share/doc/groonga/en/html/reference/normalizers/normalizer_nfkc100.html +897 -0
- data/vendor/local/share/doc/groonga/en/html/reference/normalizers/normalizer_nfkc51.html +162 -0
- data/vendor/local/share/doc/groonga/en/html/reference/operations.html +26 -34
- data/vendor/local/share/doc/groonga/en/html/reference/operations/geolocation_search.html +48 -56
- data/vendor/local/share/doc/groonga/en/html/reference/operations/prefix_rk_search.html +47 -55
- data/vendor/local/share/doc/groonga/en/html/reference/output.html +47 -55
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +20 -28
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +93 -101
- data/vendor/local/share/doc/groonga/en/html/reference/regular_expression.html +228 -225
- data/vendor/local/share/doc/groonga/en/html/reference/scorer.html +59 -67
- data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_at_most.html +50 -58
- data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_idf.html +57 -65
- data/vendor/local/share/doc/groonga/en/html/reference/sharding.html +76 -86
- data/vendor/local/share/doc/groonga/en/html/reference/suggest.html +43 -51
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/completion.html +159 -167
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/correction.html +93 -101
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/introduction.html +85 -93
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/suggestion.html +88 -96
- data/vendor/local/share/doc/groonga/en/html/reference/tables.html +142 -150
- data/vendor/local/share/doc/groonga/en/html/reference/token_filter/summary.html +147 -0
- data/vendor/local/share/doc/groonga/en/html/reference/token_filters.html +31 -223
- data/vendor/local/share/doc/groonga/en/html/reference/token_filters/token_filter_nfkc100.html +626 -0
- data/vendor/local/share/doc/groonga/en/html/reference/token_filters/token_filter_stem.html +291 -0
- data/vendor/local/share/doc/groonga/en/html/reference/token_filters/token_filter_stop_word.html +287 -0
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizer/summary.html +259 -0
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +42 -1455
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_bigram.html +368 -0
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_bigram_ignore_blank.html +221 -0
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_bigram_ignore_blank_split_symbol.html +240 -0
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_bigram_ignore_blank_split_symbol_alpha.html +270 -0
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_bigram_ignore_blank_split_symbol_alpha_digit.html +292 -0
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_bigram_split_symbol.html +179 -0
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_bigram_split_symbol_alpha.html +200 -0
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_bigram_split_symbol_alpha_digit.html +212 -0
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_delimit.html +357 -0
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_delimit_null.html +162 -0
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_mecab.html +783 -0
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_regexp.html +289 -0
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_trigram.html +194 -0
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_unigram.html +194 -0
- data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +71 -79
- data/vendor/local/share/doc/groonga/en/html/reference/types.html +64 -72
- data/vendor/local/share/doc/groonga/en/html/reference/window_function.html +29 -37
- data/vendor/local/share/doc/groonga/en/html/reference/window_functions/record_number.html +38 -46
- data/vendor/local/share/doc/groonga/en/html/reference/window_functions/window_count.html +38 -46
- data/vendor/local/share/doc/groonga/en/html/reference/window_functions/window_record_number.html +38 -46
- data/vendor/local/share/doc/groonga/en/html/reference/window_functions/window_sum.html +38 -46
- data/vendor/local/share/doc/groonga/en/html/search.html +13 -24
- data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/en/html/server.html +15 -23
- data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +27 -35
- data/vendor/local/share/doc/groonga/en/html/server/http.html +18 -26
- data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +94 -102
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +15 -23
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +15 -23
- data/vendor/local/share/doc/groonga/en/html/server/memcached.html +18 -26
- data/vendor/local/share/doc/groonga/en/html/server/package.html +101 -109
- data/vendor/local/share/doc/groonga/en/html/spec.html +19 -27
- data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +207 -215
- data/vendor/local/share/doc/groonga/en/html/spec/search.html +39 -39
- data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +15 -23
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +46 -50
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/how_to_analyze_error_message.html +27 -35
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +26 -31
- data/vendor/local/share/doc/groonga/en/html/tutorial.html +17 -25
- data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +46 -54
- data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +63 -71
- data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +30 -38
- data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +88 -97
- data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +19 -27
- data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +61 -69
- data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +108 -116
- data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +24 -32
- data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +19 -27
- data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +32 -40
- data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +52 -60
- data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_static/basic.css +113 -4
- data/vendor/local/share/doc/groonga/ja/html/_static/doctools.js +46 -19
- data/vendor/local/share/doc/groonga/ja/html/_static/documentation_options.js +10 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/{jquery-3.1.0.js → jquery-3.2.1.js} +474 -295
- data/vendor/local/share/doc/groonga/ja/html/_static/jquery.js +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_static/language_data.js +124 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/pygments.css +4 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/searchtools.js +70 -150
- data/vendor/local/share/doc/groonga/ja/html/characteristic.html +15 -23
- data/vendor/local/share/doc/groonga/ja/html/client.html +15 -23
- data/vendor/local/share/doc/groonga/ja/html/community.html +29 -37
- data/vendor/local/share/doc/groonga/ja/html/contribution.html +23 -31
- data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +15 -23
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/build.html +15 -23
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_autotools.html +50 -58
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_cmake.html +43 -48
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/windows_cmake.html +47 -51
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +26 -34
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +18 -26
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +23 -31
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +162 -162
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +16 -24
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +26 -34
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +15 -23
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +15 -23
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +50 -58
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/introduction.html +28 -36
- data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +17 -25
- data/vendor/local/share/doc/groonga/ja/html/development.html +15 -23
- data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +32 -37
- data/vendor/local/share/doc/groonga/ja/html/genindex.html +50 -28
- data/vendor/local/share/doc/groonga/ja/html/index.html +247 -233
- data/vendor/local/share/doc/groonga/ja/html/install.html +41 -45
- data/vendor/local/share/doc/groonga/ja/html/install/centos.html +44 -52
- data/vendor/local/share/doc/groonga/ja/html/install/debian.html +52 -121
- data/vendor/local/share/doc/groonga/ja/html/install/docker.html +155 -0
- data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +40 -48
- data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +28 -36
- data/vendor/local/share/doc/groonga/ja/html/install/others.html +116 -124
- data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +28 -36
- data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +43 -51
- data/vendor/local/share/doc/groonga/ja/html/install/windows.html +29 -37
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +30 -36
- data/vendor/local/share/doc/groonga/ja/html/news.html +1234 -384
- data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +82 -82
- data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +146 -154
- data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +25 -33
- data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +191 -199
- data/vendor/local/share/doc/groonga/ja/html/news/1.3.x.html +41 -49
- data/vendor/local/share/doc/groonga/ja/html/news/2.x.html +283 -291
- data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +229 -237
- data/vendor/local/share/doc/groonga/ja/html/news/4.x.html +274 -280
- data/vendor/local/share/doc/groonga/ja/html/news/5.x.html +475 -593
- data/vendor/local/share/doc/groonga/ja/html/news/6.x.html +313 -390
- data/vendor/local/share/doc/groonga/ja/html/news/senna.html +31 -39
- data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/ja/html/reference.html +208 -198
- data/vendor/local/share/doc/groonga/ja/html/reference/alias.html +70 -78
- data/vendor/local/share/doc/groonga/ja/html/reference/api.html +50 -57
- data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +57 -72
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +107 -139
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +137 -173
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +40 -52
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_content_type.html +46 -54
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +184 -244
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +99 -131
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +57 -77
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +100 -120
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +71 -95
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +75 -99
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +37 -45
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +54 -70
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +71 -95
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_inspect.html +487 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +49 -65
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +286 -352
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +64 -84
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +44 -56
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +219 -299
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +116 -156
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_thread.html +70 -93
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +42 -54
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +36 -48
- data/vendor/local/share/doc/groonga/ja/html/reference/api/overview.html +48 -62
- data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +94 -118
- data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +39 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/column.html +15 -23
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/index.html +15 -23
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/pseudo.html +28 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/scalar.html +15 -23
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +76 -84
- data/vendor/local/share/doc/groonga/ja/html/reference/command.html +76 -84
- data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +25 -33
- data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +51 -59
- data/vendor/local/share/doc/groonga/ja/html/reference/command/pretty_print.html +20 -28
- data/vendor/local/share/doc/groonga/ja/html/reference/command/request_id.html +21 -29
- data/vendor/local/share/doc/groonga/ja/html/reference/command/request_timeout.html +27 -35
- data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +101 -109
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +39 -45
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +84 -72
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +30 -36
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_copy.html +104 -112
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +271 -237
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +100 -102
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +37 -43
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +41 -47
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_delete.html +38 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_get.html +39 -47
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_set.html +39 -47
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/database_unmap.html +34 -42
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +70 -62
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +30 -36
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +42 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +59 -68
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/io_flush.html +300 -126
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +212 -80
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_acquire.html +42 -50
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_clear.html +40 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_release.html +41 -49
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +57 -63
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +32 -37
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +30 -37
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_count.html +246 -178
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_parameters.html +51 -59
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_range_filter.html +479 -175
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_select.html +718 -326
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_shard_list.html +34 -42
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_table_remove.html +145 -153
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +78 -85
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +40 -47
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_exist.html +36 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_inspect.html +360 -362
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_list.html +221 -229
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_remove.html +47 -55
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_register.html +32 -40
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_unregister.html +33 -41
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/query_expand.html +20 -28
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +21 -29
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/range_filter.html +20 -28
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +35 -43
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/reindex.html +42 -48
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/request_cancel.html +57 -57
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +36 -43
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +36 -43
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/schema.html +317 -325
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +1246 -917
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +50 -58
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +77 -85
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +109 -123
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_copy.html +29 -37
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +131 -140
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +49 -49
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +87 -95
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_rename.html +36 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_tokenize.html +44 -52
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/thread_limit.html +38 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +93 -100
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +40 -47
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +39 -45
- data/vendor/local/share/doc/groonga/ja/html/reference/configuration.html +36 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +19 -27
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grndb.html +125 -107
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +23 -29
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +62 -62
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +132 -140
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +23 -31
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +25 -33
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +166 -174
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +31 -39
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +189 -165
- data/vendor/local/share/doc/groonga/ja/html/reference/function.html +59 -64
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +69 -77
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/cast_loose.html +208 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +48 -54
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/fuzzy_search.html +37 -45
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +115 -124
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +66 -72
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +55 -61
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +69 -77
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +60 -68
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +54 -62
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_records.html +85 -93
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_values.html +54 -62
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/math_abs.html +54 -62
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +39 -47
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/number_classify.html +35 -43
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/prefix_rk_search.html +67 -75
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +130 -138
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +44 -51
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +61 -69
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/string_length.html +36 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/string_substring.html +38 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +63 -71
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_day.html +36 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_day_of_week.html +276 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_hour.html +36 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_minute.html +35 -43
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_month.html +35 -43
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_second.html +35 -43
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_week.html +35 -43
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_year.html +36 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_find.html +353 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_new.html +39 -47
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_size.html +52 -61
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_slice.html +38 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +38 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +200 -208
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +375 -382
- data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +39 -47
- data/vendor/local/share/doc/groonga/ja/html/reference/log.html +125 -144
- data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +36 -70
- data/vendor/local/share/doc/groonga/ja/html/reference/normalizers/normalizer_auto.html +168 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/normalizers/normalizer_nfkc100.html +887 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/normalizers/normalizer_nfkc51.html +160 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/operations.html +26 -34
- data/vendor/local/share/doc/groonga/ja/html/reference/operations/geolocation_search.html +38 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/operations/prefix_rk_search.html +41 -49
- data/vendor/local/share/doc/groonga/ja/html/reference/output.html +42 -50
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +20 -28
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +68 -76
- data/vendor/local/share/doc/groonga/ja/html/reference/regular_expression.html +178 -184
- data/vendor/local/share/doc/groonga/ja/html/reference/scorer.html +38 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_at_most.html +38 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_idf.html +39 -47
- data/vendor/local/share/doc/groonga/ja/html/reference/sharding.html +63 -73
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest.html +43 -51
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/completion.html +130 -138
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/correction.html +72 -80
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/introduction.html +68 -76
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/suggestion.html +76 -86
- data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +129 -137
- data/vendor/local/share/doc/groonga/ja/html/reference/token_filter/summary.html +145 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/token_filters.html +31 -215
- data/vendor/local/share/doc/groonga/ja/html/reference/token_filters/token_filter_nfkc100.html +617 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/token_filters/token_filter_stem.html +289 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/token_filters/token_filter_stop_word.html +284 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizer/summary.html +233 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +42 -1349
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_bigram.html +344 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_bigram_ignore_blank.html +219 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_bigram_ignore_blank_split_symbol.html +237 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_bigram_ignore_blank_split_symbol_alpha.html +267 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_bigram_ignore_blank_split_symbol_alpha_digit.html +287 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_bigram_split_symbol.html +179 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_bigram_split_symbol_alpha.html +199 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_bigram_split_symbol_alpha_digit.html +209 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_delimit.html +344 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_delimit_null.html +160 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_mecab.html +764 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_regexp.html +284 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_trigram.html +191 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_unigram.html +191 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +65 -73
- data/vendor/local/share/doc/groonga/ja/html/reference/types.html +48 -56
- data/vendor/local/share/doc/groonga/ja/html/reference/window_function.html +29 -37
- data/vendor/local/share/doc/groonga/ja/html/reference/window_functions/record_number.html +37 -45
- data/vendor/local/share/doc/groonga/ja/html/reference/window_functions/window_count.html +37 -45
- data/vendor/local/share/doc/groonga/ja/html/reference/window_functions/window_record_number.html +37 -45
- data/vendor/local/share/doc/groonga/ja/html/reference/window_functions/window_sum.html +37 -45
- data/vendor/local/share/doc/groonga/ja/html/search.html +13 -24
- data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/ja/html/server.html +15 -23
- data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +22 -30
- data/vendor/local/share/doc/groonga/ja/html/server/http.html +17 -25
- data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +82 -90
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +15 -23
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +15 -23
- data/vendor/local/share/doc/groonga/ja/html/server/memcached.html +16 -24
- data/vendor/local/share/doc/groonga/ja/html/server/package.html +99 -107
- data/vendor/local/share/doc/groonga/ja/html/spec.html +19 -27
- data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +201 -209
- data/vendor/local/share/doc/groonga/ja/html/spec/search.html +36 -36
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +15 -23
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +44 -48
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/how_to_analyze_error_message.html +21 -29
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +24 -29
- data/vendor/local/share/doc/groonga/ja/html/tutorial.html +16 -24
- data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +32 -40
- data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +62 -70
- data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +22 -30
- data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +77 -86
- data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +15 -23
- data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +56 -64
- data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +84 -92
- data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +20 -28
- data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +18 -26
- data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +21 -29
- data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +43 -51
- data/vendor/local/share/doc/pcre/AUTHORS +3 -3
- data/vendor/local/share/doc/pcre/ChangeLog +53 -0
- data/vendor/local/share/doc/pcre/LICENCE +3 -3
- data/vendor/local/share/doc/pcre/NEWS +6 -0
- data/vendor/local/share/doc/pcre/html/NON-AUTOTOOLS-BUILD.txt +8 -7
- data/vendor/local/share/groonga/mruby/LEGAL +35 -35
- data/vendor/local/share/license/cv2pdb/{README → README.MD} +28 -10
- data/vendor/local/share/license/groonga-normalizer-mysql/README.md +14 -22
- data/vendor/local/share/license/lz4/LICENSE +2 -2
- data/vendor/local/share/license/mruby/AUTHORS +3 -0
- data/vendor/local/share/license/mruby/MITL +1 -1
- data/vendor/local/share/license/mruby/README.md +1 -1
- data/vendor/local/share/license/msgpack/README.md +5 -34
- data/vendor/local/share/license/pcre/LICENCE +3 -3
- data/vendor/local/share/man/man1/lz4.1 +221 -86
- data/vendor/local/share/man/man1/lz4c.1 +222 -32
- data/vendor/local/share/man/man1/lz4cat.1 +221 -30
- data/vendor/local/share/man/man1/unlz4.1 +223 -0
- metadata +231 -87
- data/lib/2.1/groonga.so +0 -0
- data/vendor/local/lib/groonga/plugins/expression_rewriters/optimizer.rb +0 -147
- data/vendor/local/lib/groonga/scripts/ruby/expression_tree/options.rb +0 -14
- data/vendor/local/share/doc/groonga/en/html/_static/ajax-loader.gif +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/comment-bright.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/comment-close.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/comment.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/down-pressed.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/down.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/up-pressed.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/up.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/websupport.js +0 -808
- data/vendor/local/share/doc/groonga/ja/html/_static/ajax-loader.gif +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/comment-bright.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/comment-close.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/comment.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/down-pressed.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/down.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/up-pressed.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/up.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/websupport.js +0 -808
@@ -0,0 +1,29 @@
|
|
1
|
+
//
|
2
|
+
// MessagePack for C++ deserializing routine
|
3
|
+
//
|
4
|
+
// Copyright (C) 2018 KONDO Takatoshi
|
5
|
+
//
|
6
|
+
// Distributed under the Boost Software License, Version 1.0.
|
7
|
+
// (See accompanying file LICENSE_1_0.txt or copy at
|
8
|
+
// http://www.boost.org/LICENSE_1_0.txt)
|
9
|
+
//
|
10
|
+
#ifndef MSGPACK_V2_NULL_VISITOR_DECL_HPP
|
11
|
+
#define MSGPACK_V2_NULL_VISITOR_DECL_HPP
|
12
|
+
|
13
|
+
#include "msgpack/versioning.hpp"
|
14
|
+
|
15
|
+
namespace msgpack {
|
16
|
+
|
17
|
+
/// @cond
|
18
|
+
MSGPACK_API_VERSION_NAMESPACE(v2) {
|
19
|
+
/// @endcond
|
20
|
+
|
21
|
+
struct null_visitor;
|
22
|
+
|
23
|
+
/// @cond
|
24
|
+
} // MSGPACK_API_VERSION_NAMESPACE(v2)
|
25
|
+
/// @endcond
|
26
|
+
|
27
|
+
} // namespace msgpack
|
28
|
+
|
29
|
+
#endif // MSGPACK_V2_NULL_VISITOR_DECL_HPP
|
@@ -25,6 +25,8 @@ using v1::type::NIL;
|
|
25
25
|
using v1::type::BOOLEAN;
|
26
26
|
using v1::type::POSITIVE_INTEGER;
|
27
27
|
using v1::type::NEGATIVE_INTEGER;
|
28
|
+
using v1::type::FLOAT32;
|
29
|
+
using v1::type::FLOAT64;
|
28
30
|
using v1::type::FLOAT;
|
29
31
|
#if defined(MSGPACK_USE_LEGACY_NAME_AS_FLOAT)
|
30
32
|
using v1::type::DOUBLE;
|
@@ -0,0 +1,1072 @@
|
|
1
|
+
//
|
2
|
+
// MessagePack for C++ deserializing routine
|
3
|
+
//
|
4
|
+
// Copyright (C) 2016-2017 KONDO Takatoshi
|
5
|
+
//
|
6
|
+
// Distributed under the Boost Software License, Version 1.0.
|
7
|
+
// (See accompanying file LICENSE_1_0.txt or copy at
|
8
|
+
// http://www.boost.org/LICENSE_1_0.txt)
|
9
|
+
//
|
10
|
+
#ifndef MSGPACK_V2_PARSE_HPP
|
11
|
+
#define MSGPACK_V2_PARSE_HPP
|
12
|
+
|
13
|
+
#if MSGPACK_DEFAULT_API_VERSION >= 2
|
14
|
+
|
15
|
+
#include <cstddef>
|
16
|
+
|
17
|
+
#include "msgpack/unpack_define.h"
|
18
|
+
#include "msgpack/parse_return.hpp"
|
19
|
+
#include "msgpack/unpack_exception.hpp"
|
20
|
+
#include "msgpack/unpack_decl.hpp"
|
21
|
+
|
22
|
+
namespace msgpack {
|
23
|
+
|
24
|
+
/// @cond
|
25
|
+
MSGPACK_API_VERSION_NAMESPACE(v2) {
|
26
|
+
/// @endcond
|
27
|
+
|
28
|
+
namespace detail {
|
29
|
+
|
30
|
+
using v1::detail::fix_tag;
|
31
|
+
using v1::detail::value;
|
32
|
+
using v1::detail::load;
|
33
|
+
|
34
|
+
template <typename VisitorHolder>
|
35
|
+
class context {
|
36
|
+
public:
|
37
|
+
context()
|
38
|
+
:m_trail(0), m_cs(MSGPACK_CS_HEADER)
|
39
|
+
{
|
40
|
+
}
|
41
|
+
|
42
|
+
void init()
|
43
|
+
{
|
44
|
+
m_cs = MSGPACK_CS_HEADER;
|
45
|
+
m_trail = 0;
|
46
|
+
m_stack.clear();
|
47
|
+
holder().visitor().init();
|
48
|
+
}
|
49
|
+
|
50
|
+
parse_return execute(const char* data, std::size_t len, std::size_t& off);
|
51
|
+
|
52
|
+
private:
|
53
|
+
template <typename T>
|
54
|
+
static uint32_t next_cs(T p)
|
55
|
+
{
|
56
|
+
return static_cast<uint32_t>(*p) & 0x1f;
|
57
|
+
}
|
58
|
+
|
59
|
+
VisitorHolder& holder() {
|
60
|
+
return static_cast<VisitorHolder&>(*this);
|
61
|
+
}
|
62
|
+
|
63
|
+
template <typename T, typename StartVisitor, typename EndVisitor>
|
64
|
+
parse_return start_aggregate(
|
65
|
+
StartVisitor const& sv,
|
66
|
+
EndVisitor const& ev,
|
67
|
+
const char* load_pos,
|
68
|
+
std::size_t& off) {
|
69
|
+
typename value<T>::type size;
|
70
|
+
load<T>(size, load_pos);
|
71
|
+
++m_current;
|
72
|
+
if (size == 0) {
|
73
|
+
if (!sv(size)) {
|
74
|
+
off = m_current - m_start;
|
75
|
+
return PARSE_STOP_VISITOR;
|
76
|
+
}
|
77
|
+
if (!ev()) {
|
78
|
+
off = m_current - m_start;
|
79
|
+
return PARSE_STOP_VISITOR;
|
80
|
+
}
|
81
|
+
parse_return ret = m_stack.consume(holder());
|
82
|
+
if (ret != PARSE_CONTINUE) {
|
83
|
+
off = m_current - m_start;
|
84
|
+
return ret;
|
85
|
+
}
|
86
|
+
}
|
87
|
+
else {
|
88
|
+
if (!sv(size)) {
|
89
|
+
off = m_current - m_start;
|
90
|
+
return PARSE_STOP_VISITOR;
|
91
|
+
}
|
92
|
+
parse_return ret = m_stack.push(holder(), sv.type(), static_cast<uint32_t>(size));
|
93
|
+
if (ret != PARSE_CONTINUE) {
|
94
|
+
off = m_current - m_start;
|
95
|
+
return ret;
|
96
|
+
}
|
97
|
+
}
|
98
|
+
m_cs = MSGPACK_CS_HEADER;
|
99
|
+
return PARSE_CONTINUE;
|
100
|
+
}
|
101
|
+
|
102
|
+
parse_return after_visit_proc(bool visit_result, std::size_t& off) {
|
103
|
+
++m_current;
|
104
|
+
if (!visit_result) {
|
105
|
+
off = m_current - m_start;
|
106
|
+
return PARSE_STOP_VISITOR;
|
107
|
+
}
|
108
|
+
parse_return ret = m_stack.consume(holder());
|
109
|
+
if (ret != PARSE_CONTINUE) {
|
110
|
+
off = m_current - m_start;
|
111
|
+
}
|
112
|
+
m_cs = MSGPACK_CS_HEADER;
|
113
|
+
return ret;
|
114
|
+
}
|
115
|
+
|
116
|
+
struct array_sv {
|
117
|
+
array_sv(VisitorHolder& visitor_holder):m_visitor_holder(visitor_holder) {}
|
118
|
+
bool operator()(uint32_t size) const {
|
119
|
+
return m_visitor_holder.visitor().start_array(size);
|
120
|
+
}
|
121
|
+
msgpack_container_type type() const { return MSGPACK_CT_ARRAY_ITEM; }
|
122
|
+
private:
|
123
|
+
VisitorHolder& m_visitor_holder;
|
124
|
+
};
|
125
|
+
struct array_ev {
|
126
|
+
array_ev(VisitorHolder& visitor_holder):m_visitor_holder(visitor_holder) {}
|
127
|
+
bool operator()() const {
|
128
|
+
return m_visitor_holder.visitor().end_array();
|
129
|
+
}
|
130
|
+
private:
|
131
|
+
VisitorHolder& m_visitor_holder;
|
132
|
+
};
|
133
|
+
struct map_sv {
|
134
|
+
map_sv(VisitorHolder& visitor_holder):m_visitor_holder(visitor_holder) {}
|
135
|
+
bool operator()(uint32_t size) const {
|
136
|
+
return m_visitor_holder.visitor().start_map(size);
|
137
|
+
}
|
138
|
+
msgpack_container_type type() const { return MSGPACK_CT_MAP_KEY; }
|
139
|
+
private:
|
140
|
+
VisitorHolder& m_visitor_holder;
|
141
|
+
};
|
142
|
+
struct map_ev {
|
143
|
+
map_ev(VisitorHolder& visitor_holder):m_visitor_holder(visitor_holder) {}
|
144
|
+
bool operator()() const {
|
145
|
+
return m_visitor_holder.visitor().end_map();
|
146
|
+
}
|
147
|
+
private:
|
148
|
+
VisitorHolder& m_visitor_holder;
|
149
|
+
};
|
150
|
+
|
151
|
+
struct unpack_stack {
|
152
|
+
struct stack_elem {
|
153
|
+
stack_elem(msgpack_container_type type, uint32_t rest):m_type(type), m_rest(rest) {}
|
154
|
+
msgpack_container_type m_type;
|
155
|
+
uint32_t m_rest;
|
156
|
+
};
|
157
|
+
unpack_stack() {
|
158
|
+
m_stack.reserve(MSGPACK_EMBED_STACK_SIZE);
|
159
|
+
}
|
160
|
+
parse_return push(VisitorHolder& visitor_holder, msgpack_container_type type, uint32_t rest) {
|
161
|
+
m_stack.push_back(stack_elem(type, rest));
|
162
|
+
switch (type) {
|
163
|
+
case MSGPACK_CT_ARRAY_ITEM:
|
164
|
+
return visitor_holder.visitor().start_array_item() ? PARSE_CONTINUE : PARSE_STOP_VISITOR;
|
165
|
+
case MSGPACK_CT_MAP_KEY:
|
166
|
+
return visitor_holder.visitor().start_map_key() ? PARSE_CONTINUE : PARSE_STOP_VISITOR;
|
167
|
+
case MSGPACK_CT_MAP_VALUE:
|
168
|
+
assert(0);
|
169
|
+
return PARSE_STOP_VISITOR;
|
170
|
+
}
|
171
|
+
assert(0);
|
172
|
+
return PARSE_STOP_VISITOR;
|
173
|
+
}
|
174
|
+
parse_return consume(VisitorHolder& visitor_holder) {
|
175
|
+
while (!m_stack.empty()) {
|
176
|
+
stack_elem& e = m_stack.back();
|
177
|
+
switch (e.m_type) {
|
178
|
+
case MSGPACK_CT_ARRAY_ITEM:
|
179
|
+
if (!visitor_holder.visitor().end_array_item()) return PARSE_STOP_VISITOR;
|
180
|
+
if (--e.m_rest == 0) {
|
181
|
+
m_stack.pop_back();
|
182
|
+
if (!visitor_holder.visitor().end_array()) return PARSE_STOP_VISITOR;
|
183
|
+
}
|
184
|
+
else {
|
185
|
+
if (!visitor_holder.visitor().start_array_item()) return PARSE_STOP_VISITOR;
|
186
|
+
return PARSE_CONTINUE;
|
187
|
+
}
|
188
|
+
break;
|
189
|
+
case MSGPACK_CT_MAP_KEY:
|
190
|
+
if (!visitor_holder.visitor().end_map_key()) return PARSE_STOP_VISITOR;
|
191
|
+
if (!visitor_holder.visitor().start_map_value()) return PARSE_STOP_VISITOR;
|
192
|
+
e.m_type = MSGPACK_CT_MAP_VALUE;
|
193
|
+
return PARSE_CONTINUE;
|
194
|
+
case MSGPACK_CT_MAP_VALUE:
|
195
|
+
if (!visitor_holder.visitor().end_map_value()) return PARSE_STOP_VISITOR;
|
196
|
+
if (--e.m_rest == 0) {
|
197
|
+
m_stack.pop_back();
|
198
|
+
if (!visitor_holder.visitor().end_map()) return PARSE_STOP_VISITOR;
|
199
|
+
}
|
200
|
+
else {
|
201
|
+
e.m_type = MSGPACK_CT_MAP_KEY;
|
202
|
+
if (!visitor_holder.visitor().start_map_key()) return PARSE_STOP_VISITOR;
|
203
|
+
return PARSE_CONTINUE;
|
204
|
+
}
|
205
|
+
break;
|
206
|
+
}
|
207
|
+
}
|
208
|
+
return PARSE_SUCCESS;
|
209
|
+
}
|
210
|
+
bool empty() const { return m_stack.empty(); }
|
211
|
+
void clear() { m_stack.clear(); }
|
212
|
+
private:
|
213
|
+
std::vector<stack_elem> m_stack;
|
214
|
+
};
|
215
|
+
|
216
|
+
char const* m_start;
|
217
|
+
char const* m_current;
|
218
|
+
|
219
|
+
std::size_t m_trail;
|
220
|
+
uint32_t m_cs;
|
221
|
+
uint32_t m_num_elements;
|
222
|
+
unpack_stack m_stack;
|
223
|
+
};
|
224
|
+
|
225
|
+
template <std::size_t N>
|
226
|
+
inline void check_ext_size(std::size_t /*size*/) {
|
227
|
+
}
|
228
|
+
|
229
|
+
template <>
|
230
|
+
inline void check_ext_size<4>(std::size_t size) {
|
231
|
+
if (size == 0xffffffff) throw msgpack::ext_size_overflow("ext size overflow");
|
232
|
+
}
|
233
|
+
|
234
|
+
template <typename VisitorHolder>
|
235
|
+
inline parse_return context<VisitorHolder>::execute(const char* data, std::size_t len, std::size_t& off)
|
236
|
+
{
|
237
|
+
assert(len >= off);
|
238
|
+
|
239
|
+
m_start = data;
|
240
|
+
m_current = data + off;
|
241
|
+
const char* const pe = data + len;
|
242
|
+
const char* n = MSGPACK_NULLPTR;
|
243
|
+
|
244
|
+
msgpack::object obj;
|
245
|
+
|
246
|
+
if(m_current == pe) {
|
247
|
+
off = m_current - m_start;
|
248
|
+
return PARSE_CONTINUE;
|
249
|
+
}
|
250
|
+
bool fixed_trail_again = false;
|
251
|
+
do {
|
252
|
+
if (m_cs == MSGPACK_CS_HEADER) {
|
253
|
+
fixed_trail_again = false;
|
254
|
+
int selector = *reinterpret_cast<const unsigned char*>(m_current);
|
255
|
+
if (0x00 <= selector && selector <= 0x7f) { // Positive Fixnum
|
256
|
+
uint8_t tmp = *reinterpret_cast<const uint8_t*>(m_current);
|
257
|
+
bool visret = holder().visitor().visit_positive_integer(tmp);
|
258
|
+
parse_return upr = after_visit_proc(visret, off);
|
259
|
+
if (upr != PARSE_CONTINUE) return upr;
|
260
|
+
} else if(0xe0 <= selector && selector <= 0xff) { // Negative Fixnum
|
261
|
+
int8_t tmp = *reinterpret_cast<const int8_t*>(m_current);
|
262
|
+
bool visret = holder().visitor().visit_negative_integer(tmp);
|
263
|
+
parse_return upr = after_visit_proc(visret, off);
|
264
|
+
if (upr != PARSE_CONTINUE) return upr;
|
265
|
+
} else if (0xc4 <= selector && selector <= 0xdf) {
|
266
|
+
const uint32_t trail[] = {
|
267
|
+
1, // bin 8 0xc4
|
268
|
+
2, // bin 16 0xc5
|
269
|
+
4, // bin 32 0xc6
|
270
|
+
1, // ext 8 0xc7
|
271
|
+
2, // ext 16 0xc8
|
272
|
+
4, // ext 32 0xc9
|
273
|
+
4, // float 32 0xca
|
274
|
+
8, // float 64 0xcb
|
275
|
+
1, // uint 8 0xcc
|
276
|
+
2, // uint 16 0xcd
|
277
|
+
4, // uint 32 0xce
|
278
|
+
8, // uint 64 0xcf
|
279
|
+
1, // int 8 0xd0
|
280
|
+
2, // int 16 0xd1
|
281
|
+
4, // int 32 0xd2
|
282
|
+
8, // int 64 0xd3
|
283
|
+
2, // fixext 1 0xd4
|
284
|
+
3, // fixext 2 0xd5
|
285
|
+
5, // fixext 4 0xd6
|
286
|
+
9, // fixext 8 0xd7
|
287
|
+
17,// fixext 16 0xd8
|
288
|
+
1, // str 8 0xd9
|
289
|
+
2, // str 16 0xda
|
290
|
+
4, // str 32 0xdb
|
291
|
+
2, // array 16 0xdc
|
292
|
+
4, // array 32 0xdd
|
293
|
+
2, // map 16 0xde
|
294
|
+
4, // map 32 0xdf
|
295
|
+
};
|
296
|
+
m_trail = trail[selector - 0xc4];
|
297
|
+
m_cs = next_cs(m_current);
|
298
|
+
fixed_trail_again = true;
|
299
|
+
} else if(0xa0 <= selector && selector <= 0xbf) { // FixStr
|
300
|
+
m_trail = static_cast<uint32_t>(*m_current) & 0x1f;
|
301
|
+
if(m_trail == 0) {
|
302
|
+
bool visret = holder().visitor().visit_str(n, static_cast<uint32_t>(m_trail));
|
303
|
+
parse_return upr = after_visit_proc(visret, off);
|
304
|
+
if (upr != PARSE_CONTINUE) return upr;
|
305
|
+
}
|
306
|
+
else {
|
307
|
+
m_cs = MSGPACK_ACS_STR_VALUE;
|
308
|
+
fixed_trail_again = true;
|
309
|
+
}
|
310
|
+
} else if(0x90 <= selector && selector <= 0x9f) { // FixArray
|
311
|
+
parse_return ret = start_aggregate<fix_tag>(array_sv(holder()), array_ev(holder()), m_current, off);
|
312
|
+
if (ret != PARSE_CONTINUE) return ret;
|
313
|
+
} else if(0x80 <= selector && selector <= 0x8f) { // FixMap
|
314
|
+
parse_return ret = start_aggregate<fix_tag>(map_sv(holder()), map_ev(holder()), m_current, off);
|
315
|
+
if (ret != PARSE_CONTINUE) return ret;
|
316
|
+
} else if(selector == 0xc2) { // false
|
317
|
+
bool visret = holder().visitor().visit_boolean(false);
|
318
|
+
parse_return upr = after_visit_proc(visret, off);
|
319
|
+
if (upr != PARSE_CONTINUE) return upr;
|
320
|
+
} else if(selector == 0xc3) { // true
|
321
|
+
bool visret = holder().visitor().visit_boolean(true);
|
322
|
+
parse_return upr = after_visit_proc(visret, off);
|
323
|
+
if (upr != PARSE_CONTINUE) return upr;
|
324
|
+
} else if(selector == 0xc0) { // nil
|
325
|
+
bool visret = holder().visitor().visit_nil();
|
326
|
+
parse_return upr = after_visit_proc(visret, off);
|
327
|
+
if (upr != PARSE_CONTINUE) return upr;
|
328
|
+
} else {
|
329
|
+
off = m_current - m_start;
|
330
|
+
holder().visitor().parse_error(off - 1, off);
|
331
|
+
return PARSE_PARSE_ERROR;
|
332
|
+
}
|
333
|
+
// end MSGPACK_CS_HEADER
|
334
|
+
}
|
335
|
+
if (m_cs != MSGPACK_CS_HEADER || fixed_trail_again) {
|
336
|
+
if (fixed_trail_again) {
|
337
|
+
++m_current;
|
338
|
+
fixed_trail_again = false;
|
339
|
+
}
|
340
|
+
if(static_cast<std::size_t>(pe - m_current) < m_trail) {
|
341
|
+
off = m_current - m_start;
|
342
|
+
return PARSE_CONTINUE;
|
343
|
+
}
|
344
|
+
n = m_current;
|
345
|
+
m_current += m_trail - 1;
|
346
|
+
switch(m_cs) {
|
347
|
+
//case MSGPACK_CS_
|
348
|
+
//case MSGPACK_CS_
|
349
|
+
case MSGPACK_CS_FLOAT: {
|
350
|
+
union { uint32_t i; float f; } mem;
|
351
|
+
load<uint32_t>(mem.i, n);
|
352
|
+
bool visret = holder().visitor().visit_float32(mem.f);
|
353
|
+
parse_return upr = after_visit_proc(visret, off);
|
354
|
+
if (upr != PARSE_CONTINUE) return upr;
|
355
|
+
} break;
|
356
|
+
case MSGPACK_CS_DOUBLE: {
|
357
|
+
union { uint64_t i; double f; } mem;
|
358
|
+
load<uint64_t>(mem.i, n);
|
359
|
+
#if defined(TARGET_OS_IPHONE)
|
360
|
+
// ok
|
361
|
+
#elif defined(__arm__) && !(__ARM_EABI__) // arm-oabi
|
362
|
+
// https://github.com/msgpack/msgpack-perl/pull/1
|
363
|
+
mem.i = (mem.i & 0xFFFFFFFFUL) << 32UL | (mem.i >> 32UL);
|
364
|
+
#endif
|
365
|
+
bool visret = holder().visitor().visit_float64(mem.f);
|
366
|
+
parse_return upr = after_visit_proc(visret, off);
|
367
|
+
if (upr != PARSE_CONTINUE) return upr;
|
368
|
+
} break;
|
369
|
+
case MSGPACK_CS_UINT_8: {
|
370
|
+
uint8_t tmp;
|
371
|
+
load<uint8_t>(tmp, n);
|
372
|
+
bool visret = holder().visitor().visit_positive_integer(tmp);
|
373
|
+
parse_return upr = after_visit_proc(visret, off);
|
374
|
+
if (upr != PARSE_CONTINUE) return upr;
|
375
|
+
} break;
|
376
|
+
case MSGPACK_CS_UINT_16: {
|
377
|
+
uint16_t tmp;
|
378
|
+
load<uint16_t>(tmp, n);
|
379
|
+
bool visret = holder().visitor().visit_positive_integer(tmp);
|
380
|
+
parse_return upr = after_visit_proc(visret, off);
|
381
|
+
if (upr != PARSE_CONTINUE) return upr;
|
382
|
+
} break;
|
383
|
+
case MSGPACK_CS_UINT_32: {
|
384
|
+
uint32_t tmp;
|
385
|
+
load<uint32_t>(tmp, n);
|
386
|
+
bool visret = holder().visitor().visit_positive_integer(tmp);
|
387
|
+
parse_return upr = after_visit_proc(visret, off);
|
388
|
+
if (upr != PARSE_CONTINUE) return upr;
|
389
|
+
} break;
|
390
|
+
case MSGPACK_CS_UINT_64: {
|
391
|
+
uint64_t tmp;
|
392
|
+
load<uint64_t>(tmp, n);
|
393
|
+
bool visret = holder().visitor().visit_positive_integer(tmp);
|
394
|
+
parse_return upr = after_visit_proc(visret, off);
|
395
|
+
if (upr != PARSE_CONTINUE) return upr;
|
396
|
+
} break;
|
397
|
+
case MSGPACK_CS_INT_8: {
|
398
|
+
int8_t tmp;
|
399
|
+
load<int8_t>(tmp, n);
|
400
|
+
bool visret = holder().visitor().visit_negative_integer(tmp);
|
401
|
+
parse_return upr = after_visit_proc(visret, off);
|
402
|
+
if (upr != PARSE_CONTINUE) return upr;
|
403
|
+
} break;
|
404
|
+
case MSGPACK_CS_INT_16: {
|
405
|
+
int16_t tmp;
|
406
|
+
load<int16_t>(tmp, n);
|
407
|
+
bool visret = holder().visitor().visit_negative_integer(tmp);
|
408
|
+
parse_return upr = after_visit_proc(visret, off);
|
409
|
+
if (upr != PARSE_CONTINUE) return upr;
|
410
|
+
} break;
|
411
|
+
case MSGPACK_CS_INT_32: {
|
412
|
+
int32_t tmp;
|
413
|
+
load<int32_t>(tmp, n);
|
414
|
+
bool visret = holder().visitor().visit_negative_integer(tmp);
|
415
|
+
parse_return upr = after_visit_proc(visret, off);
|
416
|
+
if (upr != PARSE_CONTINUE) return upr;
|
417
|
+
} break;
|
418
|
+
case MSGPACK_CS_INT_64: {
|
419
|
+
int64_t tmp;
|
420
|
+
load<int64_t>(tmp, n);
|
421
|
+
bool visret = holder().visitor().visit_negative_integer(tmp);
|
422
|
+
parse_return upr = after_visit_proc(visret, off);
|
423
|
+
if (upr != PARSE_CONTINUE) return upr;
|
424
|
+
} break;
|
425
|
+
case MSGPACK_CS_FIXEXT_1: {
|
426
|
+
bool visret = holder().visitor().visit_ext(n, 1+1);
|
427
|
+
parse_return upr = after_visit_proc(visret, off);
|
428
|
+
if (upr != PARSE_CONTINUE) return upr;
|
429
|
+
} break;
|
430
|
+
case MSGPACK_CS_FIXEXT_2: {
|
431
|
+
bool visret = holder().visitor().visit_ext(n, 2+1);
|
432
|
+
parse_return upr = after_visit_proc(visret, off);
|
433
|
+
if (upr != PARSE_CONTINUE) return upr;
|
434
|
+
} break;
|
435
|
+
case MSGPACK_CS_FIXEXT_4: {
|
436
|
+
bool visret = holder().visitor().visit_ext(n, 4+1);
|
437
|
+
parse_return upr = after_visit_proc(visret, off);
|
438
|
+
if (upr != PARSE_CONTINUE) return upr;
|
439
|
+
} break;
|
440
|
+
case MSGPACK_CS_FIXEXT_8: {
|
441
|
+
bool visret = holder().visitor().visit_ext(n, 8+1);
|
442
|
+
parse_return upr = after_visit_proc(visret, off);
|
443
|
+
if (upr != PARSE_CONTINUE) return upr;
|
444
|
+
} break;
|
445
|
+
case MSGPACK_CS_FIXEXT_16: {
|
446
|
+
bool visret = holder().visitor().visit_ext(n, 16+1);
|
447
|
+
parse_return upr = after_visit_proc(visret, off);
|
448
|
+
if (upr != PARSE_CONTINUE) return upr;
|
449
|
+
} break;
|
450
|
+
case MSGPACK_CS_STR_8: {
|
451
|
+
uint8_t tmp;
|
452
|
+
load<uint8_t>(tmp, n);
|
453
|
+
m_trail = tmp;
|
454
|
+
if(m_trail == 0) {
|
455
|
+
bool visret = holder().visitor().visit_str(n, static_cast<uint32_t>(m_trail));
|
456
|
+
parse_return upr = after_visit_proc(visret, off);
|
457
|
+
if (upr != PARSE_CONTINUE) return upr;
|
458
|
+
}
|
459
|
+
else {
|
460
|
+
m_cs = MSGPACK_ACS_STR_VALUE;
|
461
|
+
fixed_trail_again = true;
|
462
|
+
}
|
463
|
+
} break;
|
464
|
+
case MSGPACK_CS_BIN_8: {
|
465
|
+
uint8_t tmp;
|
466
|
+
load<uint8_t>(tmp, n);
|
467
|
+
m_trail = tmp;
|
468
|
+
if(m_trail == 0) {
|
469
|
+
bool visret = holder().visitor().visit_bin(n, static_cast<uint32_t>(m_trail));
|
470
|
+
parse_return upr = after_visit_proc(visret, off);
|
471
|
+
if (upr != PARSE_CONTINUE) return upr;
|
472
|
+
}
|
473
|
+
else {
|
474
|
+
m_cs = MSGPACK_ACS_BIN_VALUE;
|
475
|
+
fixed_trail_again = true;
|
476
|
+
}
|
477
|
+
} break;
|
478
|
+
case MSGPACK_CS_EXT_8: {
|
479
|
+
uint8_t tmp;
|
480
|
+
load<uint8_t>(tmp, n);
|
481
|
+
m_trail = tmp + 1;
|
482
|
+
if(m_trail == 0) {
|
483
|
+
bool visret = holder().visitor().visit_ext(n, static_cast<uint32_t>(m_trail));
|
484
|
+
parse_return upr = after_visit_proc(visret, off);
|
485
|
+
if (upr != PARSE_CONTINUE) return upr;
|
486
|
+
}
|
487
|
+
else {
|
488
|
+
m_cs = MSGPACK_ACS_EXT_VALUE;
|
489
|
+
fixed_trail_again = true;
|
490
|
+
}
|
491
|
+
} break;
|
492
|
+
case MSGPACK_CS_STR_16: {
|
493
|
+
uint16_t tmp;
|
494
|
+
load<uint16_t>(tmp, n);
|
495
|
+
m_trail = tmp;
|
496
|
+
if(m_trail == 0) {
|
497
|
+
bool visret = holder().visitor().visit_str(n, static_cast<uint32_t>(m_trail));
|
498
|
+
parse_return upr = after_visit_proc(visret, off);
|
499
|
+
if (upr != PARSE_CONTINUE) return upr;
|
500
|
+
}
|
501
|
+
else {
|
502
|
+
m_cs = MSGPACK_ACS_STR_VALUE;
|
503
|
+
fixed_trail_again = true;
|
504
|
+
}
|
505
|
+
} break;
|
506
|
+
case MSGPACK_CS_BIN_16: {
|
507
|
+
uint16_t tmp;
|
508
|
+
load<uint16_t>(tmp, n);
|
509
|
+
m_trail = tmp;
|
510
|
+
if(m_trail == 0) {
|
511
|
+
bool visret = holder().visitor().visit_bin(n, static_cast<uint32_t>(m_trail));
|
512
|
+
parse_return upr = after_visit_proc(visret, off);
|
513
|
+
if (upr != PARSE_CONTINUE) return upr;
|
514
|
+
}
|
515
|
+
else {
|
516
|
+
m_cs = MSGPACK_ACS_BIN_VALUE;
|
517
|
+
fixed_trail_again = true;
|
518
|
+
}
|
519
|
+
} break;
|
520
|
+
case MSGPACK_CS_EXT_16: {
|
521
|
+
uint16_t tmp;
|
522
|
+
load<uint16_t>(tmp, n);
|
523
|
+
m_trail = tmp + 1;
|
524
|
+
if(m_trail == 0) {
|
525
|
+
bool visret = holder().visitor().visit_ext(n, static_cast<uint32_t>(m_trail));
|
526
|
+
parse_return upr = after_visit_proc(visret, off);
|
527
|
+
if (upr != PARSE_CONTINUE) return upr;
|
528
|
+
}
|
529
|
+
else {
|
530
|
+
m_cs = MSGPACK_ACS_EXT_VALUE;
|
531
|
+
fixed_trail_again = true;
|
532
|
+
}
|
533
|
+
} break;
|
534
|
+
case MSGPACK_CS_STR_32: {
|
535
|
+
uint32_t tmp;
|
536
|
+
load<uint32_t>(tmp, n);
|
537
|
+
m_trail = tmp;
|
538
|
+
if(m_trail == 0) {
|
539
|
+
bool visret = holder().visitor().visit_str(n, static_cast<uint32_t>(m_trail));
|
540
|
+
parse_return upr = after_visit_proc(visret, off);
|
541
|
+
if (upr != PARSE_CONTINUE) return upr;
|
542
|
+
}
|
543
|
+
else {
|
544
|
+
m_cs = MSGPACK_ACS_STR_VALUE;
|
545
|
+
fixed_trail_again = true;
|
546
|
+
}
|
547
|
+
} break;
|
548
|
+
case MSGPACK_CS_BIN_32: {
|
549
|
+
uint32_t tmp;
|
550
|
+
load<uint32_t>(tmp, n);
|
551
|
+
m_trail = tmp;
|
552
|
+
if(m_trail == 0) {
|
553
|
+
bool visret = holder().visitor().visit_bin(n, static_cast<uint32_t>(m_trail));
|
554
|
+
parse_return upr = after_visit_proc(visret, off);
|
555
|
+
if (upr != PARSE_CONTINUE) return upr;
|
556
|
+
}
|
557
|
+
else {
|
558
|
+
m_cs = MSGPACK_ACS_BIN_VALUE;
|
559
|
+
fixed_trail_again = true;
|
560
|
+
}
|
561
|
+
} break;
|
562
|
+
case MSGPACK_CS_EXT_32: {
|
563
|
+
uint32_t tmp;
|
564
|
+
load<uint32_t>(tmp, n);
|
565
|
+
check_ext_size<sizeof(std::size_t)>(tmp);
|
566
|
+
m_trail = tmp;
|
567
|
+
++m_trail;
|
568
|
+
if(m_trail == 0) {
|
569
|
+
bool visret = holder().visitor().visit_ext(n, static_cast<uint32_t>(m_trail));
|
570
|
+
parse_return upr = after_visit_proc(visret, off);
|
571
|
+
if (upr != PARSE_CONTINUE) return upr;
|
572
|
+
}
|
573
|
+
else {
|
574
|
+
m_cs = MSGPACK_ACS_EXT_VALUE;
|
575
|
+
fixed_trail_again = true;
|
576
|
+
}
|
577
|
+
} break;
|
578
|
+
case MSGPACK_ACS_STR_VALUE: {
|
579
|
+
bool visret = holder().visitor().visit_str(n, static_cast<uint32_t>(m_trail));
|
580
|
+
parse_return upr = after_visit_proc(visret, off);
|
581
|
+
if (upr != PARSE_CONTINUE) return upr;
|
582
|
+
} break;
|
583
|
+
case MSGPACK_ACS_BIN_VALUE: {
|
584
|
+
bool visret = holder().visitor().visit_bin(n, static_cast<uint32_t>(m_trail));
|
585
|
+
parse_return upr = after_visit_proc(visret, off);
|
586
|
+
if (upr != PARSE_CONTINUE) return upr;
|
587
|
+
} break;
|
588
|
+
case MSGPACK_ACS_EXT_VALUE: {
|
589
|
+
bool visret = holder().visitor().visit_ext(n, static_cast<uint32_t>(m_trail));
|
590
|
+
parse_return upr = after_visit_proc(visret, off);
|
591
|
+
if (upr != PARSE_CONTINUE) return upr;
|
592
|
+
} break;
|
593
|
+
case MSGPACK_CS_ARRAY_16: {
|
594
|
+
parse_return ret = start_aggregate<uint16_t>(array_sv(holder()), array_ev(holder()), n, off);
|
595
|
+
if (ret != PARSE_CONTINUE) return ret;
|
596
|
+
|
597
|
+
} break;
|
598
|
+
case MSGPACK_CS_ARRAY_32: {
|
599
|
+
parse_return ret = start_aggregate<uint32_t>(array_sv(holder()), array_ev(holder()), n, off);
|
600
|
+
if (ret != PARSE_CONTINUE) return ret;
|
601
|
+
} break;
|
602
|
+
case MSGPACK_CS_MAP_16: {
|
603
|
+
parse_return ret = start_aggregate<uint16_t>(map_sv(holder()), map_ev(holder()), n, off);
|
604
|
+
if (ret != PARSE_CONTINUE) return ret;
|
605
|
+
} break;
|
606
|
+
case MSGPACK_CS_MAP_32: {
|
607
|
+
parse_return ret = start_aggregate<uint32_t>(map_sv(holder()), map_ev(holder()), n, off);
|
608
|
+
if (ret != PARSE_CONTINUE) return ret;
|
609
|
+
} break;
|
610
|
+
default:
|
611
|
+
off = m_current - m_start;
|
612
|
+
holder().visitor().parse_error(n - m_start - 1, n - m_start);
|
613
|
+
return PARSE_PARSE_ERROR;
|
614
|
+
}
|
615
|
+
}
|
616
|
+
} while(m_current != pe);
|
617
|
+
|
618
|
+
off = m_current - m_start;
|
619
|
+
return PARSE_CONTINUE;
|
620
|
+
}
|
621
|
+
|
622
|
+
} // detail
|
623
|
+
|
624
|
+
|
625
|
+
/// Parsing class for a stream deserialization.
|
626
|
+
|
627
|
+
template <typename VisitorHolder, typename ReferencedBufferHook>
|
628
|
+
class parser : public detail::context<VisitorHolder> {
|
629
|
+
typedef parser<VisitorHolder, ReferencedBufferHook> this_type;
|
630
|
+
typedef detail::context<VisitorHolder> context_type;
|
631
|
+
public:
|
632
|
+
/// Constructor
|
633
|
+
/**
|
634
|
+
* @param hook The handler that is called when buffer is allocated internally.
|
635
|
+
* `hook` should be callable with char* parameter.
|
636
|
+
* `parser` gives a chance to prepare finalizer.
|
637
|
+
* See https://github.com/msgpack/msgpack-c/wiki/v2_0_cpp_visitor#parse-api
|
638
|
+
* @param initial_buffer_size The memory size to allocate when unpacker is constructed.
|
639
|
+
*
|
640
|
+
*/
|
641
|
+
parser(ReferencedBufferHook& hook,
|
642
|
+
std::size_t initial_buffer_size = MSGPACK_UNPACKER_INIT_BUFFER_SIZE);
|
643
|
+
|
644
|
+
#if !defined(MSGPACK_USE_CPP03)
|
645
|
+
parser(this_type&& other);
|
646
|
+
this_type& operator=(this_type&& other);
|
647
|
+
#endif // !defined(MSGPACK_USE_CPP03)
|
648
|
+
|
649
|
+
~parser();
|
650
|
+
|
651
|
+
public:
|
652
|
+
/// Reserve a buffer memory.
|
653
|
+
/**
|
654
|
+
* @param size The size of allocating memory.
|
655
|
+
*
|
656
|
+
* After returning this function, buffer_capacity() returns at least 'size'.
|
657
|
+
* See:
|
658
|
+
* https://github.com/msgpack/msgpack-c/wiki/v1_1_cpp_unpacker#msgpack-controls-a-buffer
|
659
|
+
*/
|
660
|
+
void reserve_buffer(std::size_t size = MSGPACK_UNPACKER_RESERVE_SIZE);
|
661
|
+
|
662
|
+
/// Get buffer pointer.
|
663
|
+
/**
|
664
|
+
* You need to care about the memory is enable between buffer() and buffer() + buffer_capacity()
|
665
|
+
* See:
|
666
|
+
* https://github.com/msgpack/msgpack-c/wiki/v1_1_cpp_unpacker#msgpack-controls-a-buffer
|
667
|
+
*/
|
668
|
+
char* buffer();
|
669
|
+
|
670
|
+
/// Get buffer capacity.
|
671
|
+
/**
|
672
|
+
* @return The memory size that you can write.
|
673
|
+
*
|
674
|
+
* See:
|
675
|
+
* https://github.com/msgpack/msgpack-c/wiki/v1_1_cpp_unpacker#msgpack-controls-a-buffer
|
676
|
+
*/
|
677
|
+
std::size_t buffer_capacity() const;
|
678
|
+
|
679
|
+
/// Notify a buffer consumed information to msgpack::unpacker.
|
680
|
+
/**
|
681
|
+
* @param size The size of memory that you consumed.
|
682
|
+
*
|
683
|
+
* After copying the data to the memory that is pointed by buffer(), you need to call the
|
684
|
+
* function to notify how many bytes are consumed. Then you can call next() functions.
|
685
|
+
*
|
686
|
+
* See:
|
687
|
+
* https://github.com/msgpack/msgpack-c/wiki/v1_1_cpp_unpacker#msgpack-controls-a-buffer
|
688
|
+
*/
|
689
|
+
void buffer_consumed(std::size_t size);
|
690
|
+
|
691
|
+
/// Unpack one msgpack::object.
|
692
|
+
/**
|
693
|
+
*
|
694
|
+
*
|
695
|
+
* @return If one msgpack::object is unpacked, then return true, if msgpack::object is incomplete
|
696
|
+
* and additional data is required, then return false. If data format is invalid, throw
|
697
|
+
* msgpack::parse_error.
|
698
|
+
*
|
699
|
+
* See:
|
700
|
+
* https://github.com/msgpack/msgpack-c/wiki/v1_1_cpp_unpacker#msgpack-controls-a-buffer
|
701
|
+
*/
|
702
|
+
bool next();
|
703
|
+
|
704
|
+
/// Get message size.
|
705
|
+
/**
|
706
|
+
* @return Returns parsed_size() + nonparsed_size()
|
707
|
+
*/
|
708
|
+
std::size_t message_size() const;
|
709
|
+
|
710
|
+
public:
|
711
|
+
/// Get parsed message size.
|
712
|
+
/**
|
713
|
+
* @return Parsed message size.
|
714
|
+
*
|
715
|
+
* This function is usable when non-MessagePack message follows after
|
716
|
+
* MessagePack message.
|
717
|
+
*/
|
718
|
+
std::size_t parsed_size() const;
|
719
|
+
|
720
|
+
/// Get the address that is not parsed in the buffer.
|
721
|
+
/**
|
722
|
+
* @return Address of the buffer that is not parsed
|
723
|
+
*
|
724
|
+
* This function is usable when non-MessagePack message follows after
|
725
|
+
* MessagePack message.
|
726
|
+
*/
|
727
|
+
char* nonparsed_buffer();
|
728
|
+
|
729
|
+
/// Get the size of the buffer that is not parsed.
|
730
|
+
/**
|
731
|
+
* @return Size of the buffer that is not parsed
|
732
|
+
*
|
733
|
+
* This function is usable when non-MessagePack message follows after
|
734
|
+
* MessagePack message.
|
735
|
+
*/
|
736
|
+
std::size_t nonparsed_size() const;
|
737
|
+
|
738
|
+
/// Skip the specified size of non-parsed buffer.
|
739
|
+
/**
|
740
|
+
* @param size to skip
|
741
|
+
*
|
742
|
+
* Note that the `size' argument must be smaller than nonparsed_size().
|
743
|
+
* This function is usable when non-MessagePack message follows after
|
744
|
+
* MessagePack message.
|
745
|
+
*/
|
746
|
+
void skip_nonparsed_buffer(std::size_t size);
|
747
|
+
|
748
|
+
/// Remove nonparsed buffer and reset the current position as a new start point.
|
749
|
+
/**
|
750
|
+
* This function is usable when non-MessagePack message follows after
|
751
|
+
* MessagePack message.
|
752
|
+
*/
|
753
|
+
void remove_nonparsed_buffer();
|
754
|
+
|
755
|
+
void reset();
|
756
|
+
|
757
|
+
protected:
|
758
|
+
char* get_raw_buffer() {
|
759
|
+
return m_buffer;
|
760
|
+
}
|
761
|
+
private:
|
762
|
+
void expand_buffer(std::size_t size);
|
763
|
+
parse_return execute_imp();
|
764
|
+
|
765
|
+
private:
|
766
|
+
char* m_buffer;
|
767
|
+
std::size_t m_used;
|
768
|
+
std::size_t m_free;
|
769
|
+
std::size_t m_off;
|
770
|
+
std::size_t m_parsed;
|
771
|
+
std::size_t m_initial_buffer_size;
|
772
|
+
ReferencedBufferHook& m_referenced_buffer_hook;
|
773
|
+
|
774
|
+
#if defined(MSGPACK_USE_CPP03)
|
775
|
+
private:
|
776
|
+
parser(const this_type&);
|
777
|
+
this_type& operator=(const this_type&);
|
778
|
+
#else // defined(MSGPACK_USE_CPP03)
|
779
|
+
public:
|
780
|
+
parser(const this_type&) = delete;
|
781
|
+
this_type& operator=(const this_type&) = delete;
|
782
|
+
#endif // defined(MSGPACK_USE_CPP03)
|
783
|
+
};
|
784
|
+
|
785
|
+
template <typename VisitorHolder, typename ReferencedBufferHook>
|
786
|
+
inline parser<VisitorHolder, ReferencedBufferHook>::parser(
|
787
|
+
ReferencedBufferHook& hook,
|
788
|
+
std::size_t initial_buffer_size)
|
789
|
+
:m_referenced_buffer_hook(hook)
|
790
|
+
{
|
791
|
+
if(initial_buffer_size < COUNTER_SIZE) {
|
792
|
+
initial_buffer_size = COUNTER_SIZE;
|
793
|
+
}
|
794
|
+
|
795
|
+
char* buffer = static_cast<char*>(::malloc(initial_buffer_size));
|
796
|
+
if(!buffer) {
|
797
|
+
throw std::bad_alloc();
|
798
|
+
}
|
799
|
+
|
800
|
+
m_buffer = buffer;
|
801
|
+
m_used = COUNTER_SIZE;
|
802
|
+
m_free = initial_buffer_size - m_used;
|
803
|
+
m_off = COUNTER_SIZE;
|
804
|
+
m_parsed = 0;
|
805
|
+
m_initial_buffer_size = initial_buffer_size;
|
806
|
+
|
807
|
+
detail::init_count(m_buffer);
|
808
|
+
}
|
809
|
+
|
810
|
+
#if !defined(MSGPACK_USE_CPP03)
|
811
|
+
// Move constructor and move assignment operator
|
812
|
+
|
813
|
+
template <typename VisitorHolder, typename ReferencedBufferHook>
|
814
|
+
inline parser<VisitorHolder, ReferencedBufferHook>::parser(this_type&& other)
|
815
|
+
:context_type(std::move(other)),
|
816
|
+
m_buffer(other.m_buffer),
|
817
|
+
m_used(other.m_used),
|
818
|
+
m_free(other.m_free),
|
819
|
+
m_off(other.m_off),
|
820
|
+
m_parsed(other.m_parsed),
|
821
|
+
m_initial_buffer_size(other.m_initial_buffer_size),
|
822
|
+
m_referenced_buffer_hook(other.m_referenced_buffer_hook) {
|
823
|
+
other.m_buffer = MSGPACK_NULLPTR;
|
824
|
+
other.m_used = 0;
|
825
|
+
other.m_free = 0;
|
826
|
+
other.m_off = 0;
|
827
|
+
other.m_parsed = 0;
|
828
|
+
}
|
829
|
+
|
830
|
+
template <typename VisitorHolder, typename ReferencedBufferHook>
|
831
|
+
inline parser<VisitorHolder, ReferencedBufferHook>& parser<VisitorHolder, ReferencedBufferHook>::operator=(this_type&& other) {
|
832
|
+
this->~parser();
|
833
|
+
new (this) this_type(std::move(other));
|
834
|
+
return *this;
|
835
|
+
}
|
836
|
+
|
837
|
+
#endif // !defined(MSGPACK_USE_CPP03)
|
838
|
+
|
839
|
+
|
840
|
+
template <typename VisitorHolder, typename ReferencedBufferHook>
|
841
|
+
inline parser<VisitorHolder, ReferencedBufferHook>::~parser()
|
842
|
+
{
|
843
|
+
// These checks are required for move operations.
|
844
|
+
if (m_buffer) detail::decr_count(m_buffer);
|
845
|
+
}
|
846
|
+
|
847
|
+
|
848
|
+
template <typename VisitorHolder, typename ReferencedBufferHook>
|
849
|
+
inline void parser<VisitorHolder, ReferencedBufferHook>::reserve_buffer(std::size_t size)
|
850
|
+
{
|
851
|
+
if(m_free >= size) return;
|
852
|
+
expand_buffer(size);
|
853
|
+
}
|
854
|
+
|
855
|
+
template <typename VisitorHolder, typename ReferencedBufferHook>
|
856
|
+
inline void parser<VisitorHolder, ReferencedBufferHook>::expand_buffer(std::size_t size)
|
857
|
+
{
|
858
|
+
if(m_used == m_off && detail::get_count(m_buffer) == 1
|
859
|
+
&& !static_cast<VisitorHolder&>(*this).visitor().referenced()) {
|
860
|
+
// rewind buffer
|
861
|
+
m_free += m_used - COUNTER_SIZE;
|
862
|
+
m_used = COUNTER_SIZE;
|
863
|
+
m_off = COUNTER_SIZE;
|
864
|
+
|
865
|
+
if(m_free >= size) return;
|
866
|
+
}
|
867
|
+
|
868
|
+
if(m_off == COUNTER_SIZE) {
|
869
|
+
std::size_t next_size = (m_used + m_free) * 2; // include COUNTER_SIZE
|
870
|
+
while(next_size < size + m_used) {
|
871
|
+
std::size_t tmp_next_size = next_size * 2;
|
872
|
+
if (tmp_next_size <= next_size) {
|
873
|
+
next_size = size + m_used;
|
874
|
+
break;
|
875
|
+
}
|
876
|
+
next_size = tmp_next_size;
|
877
|
+
}
|
878
|
+
|
879
|
+
char* tmp = static_cast<char*>(::realloc(m_buffer, next_size));
|
880
|
+
if(!tmp) {
|
881
|
+
throw std::bad_alloc();
|
882
|
+
}
|
883
|
+
|
884
|
+
m_buffer = tmp;
|
885
|
+
m_free = next_size - m_used;
|
886
|
+
|
887
|
+
} else {
|
888
|
+
std::size_t next_size = m_initial_buffer_size; // include COUNTER_SIZE
|
889
|
+
std::size_t not_parsed = m_used - m_off;
|
890
|
+
while(next_size < size + not_parsed + COUNTER_SIZE) {
|
891
|
+
std::size_t tmp_next_size = next_size * 2;
|
892
|
+
if (tmp_next_size <= next_size) {
|
893
|
+
next_size = size + not_parsed + COUNTER_SIZE;
|
894
|
+
break;
|
895
|
+
}
|
896
|
+
next_size = tmp_next_size;
|
897
|
+
}
|
898
|
+
|
899
|
+
char* tmp = static_cast<char*>(::malloc(next_size));
|
900
|
+
if(!tmp) {
|
901
|
+
throw std::bad_alloc();
|
902
|
+
}
|
903
|
+
|
904
|
+
detail::init_count(tmp);
|
905
|
+
|
906
|
+
std::memcpy(tmp+COUNTER_SIZE, m_buffer + m_off, not_parsed);
|
907
|
+
|
908
|
+
if(static_cast<VisitorHolder&>(*this).referenced()) {
|
909
|
+
try {
|
910
|
+
m_referenced_buffer_hook(m_buffer);
|
911
|
+
}
|
912
|
+
catch (...) {
|
913
|
+
::free(tmp);
|
914
|
+
throw;
|
915
|
+
}
|
916
|
+
static_cast<VisitorHolder&>(*this).set_referenced(false);
|
917
|
+
} else {
|
918
|
+
detail::decr_count(m_buffer);
|
919
|
+
}
|
920
|
+
|
921
|
+
m_buffer = tmp;
|
922
|
+
m_used = not_parsed + COUNTER_SIZE;
|
923
|
+
m_free = next_size - m_used;
|
924
|
+
m_off = COUNTER_SIZE;
|
925
|
+
}
|
926
|
+
}
|
927
|
+
|
928
|
+
template <typename VisitorHolder, typename ReferencedBufferHook>
|
929
|
+
inline char* parser<VisitorHolder, ReferencedBufferHook>::buffer()
|
930
|
+
{
|
931
|
+
return m_buffer + m_used;
|
932
|
+
}
|
933
|
+
|
934
|
+
template <typename VisitorHolder, typename ReferencedBufferHook>
|
935
|
+
inline std::size_t parser<VisitorHolder, ReferencedBufferHook>::buffer_capacity() const
|
936
|
+
{
|
937
|
+
return m_free;
|
938
|
+
}
|
939
|
+
|
940
|
+
template <typename VisitorHolder, typename ReferencedBufferHook>
|
941
|
+
inline void parser<VisitorHolder, ReferencedBufferHook>::buffer_consumed(std::size_t size)
|
942
|
+
{
|
943
|
+
m_used += size;
|
944
|
+
m_free -= size;
|
945
|
+
}
|
946
|
+
|
947
|
+
template <typename VisitorHolder, typename ReferencedBufferHook>
|
948
|
+
inline bool parser<VisitorHolder, ReferencedBufferHook>::next()
|
949
|
+
{
|
950
|
+
parse_return ret = execute_imp();
|
951
|
+
return ret == PARSE_SUCCESS;
|
952
|
+
}
|
953
|
+
|
954
|
+
template <typename VisitorHolder, typename ReferencedBufferHook>
|
955
|
+
inline parse_return parser<VisitorHolder, ReferencedBufferHook>::execute_imp()
|
956
|
+
{
|
957
|
+
std::size_t off = m_off;
|
958
|
+
parse_return ret = context_type::execute(m_buffer, m_used, m_off);
|
959
|
+
if(m_off > off) {
|
960
|
+
m_parsed += m_off - off;
|
961
|
+
}
|
962
|
+
return ret;
|
963
|
+
}
|
964
|
+
|
965
|
+
template <typename VisitorHolder, typename ReferencedBufferHook>
|
966
|
+
inline void parser<VisitorHolder, ReferencedBufferHook>::reset()
|
967
|
+
{
|
968
|
+
context_type::init();
|
969
|
+
// don't reset referenced flag
|
970
|
+
m_parsed = 0;
|
971
|
+
}
|
972
|
+
|
973
|
+
template <typename VisitorHolder, typename ReferencedBufferHook>
|
974
|
+
inline std::size_t parser<VisitorHolder, ReferencedBufferHook>::message_size() const
|
975
|
+
{
|
976
|
+
return m_parsed - m_off + m_used;
|
977
|
+
}
|
978
|
+
|
979
|
+
template <typename VisitorHolder, typename ReferencedBufferHook>
|
980
|
+
inline std::size_t parser<VisitorHolder, ReferencedBufferHook>::parsed_size() const
|
981
|
+
{
|
982
|
+
return m_parsed;
|
983
|
+
}
|
984
|
+
|
985
|
+
template <typename VisitorHolder, typename ReferencedBufferHook>
|
986
|
+
inline char* parser<VisitorHolder, ReferencedBufferHook>::nonparsed_buffer()
|
987
|
+
{
|
988
|
+
return m_buffer + m_off;
|
989
|
+
}
|
990
|
+
|
991
|
+
template <typename VisitorHolder, typename ReferencedBufferHook>
|
992
|
+
inline std::size_t parser<VisitorHolder, ReferencedBufferHook>::nonparsed_size() const
|
993
|
+
{
|
994
|
+
return m_used - m_off;
|
995
|
+
}
|
996
|
+
|
997
|
+
template <typename VisitorHolder, typename ReferencedBufferHook>
|
998
|
+
inline void parser<VisitorHolder, ReferencedBufferHook>::skip_nonparsed_buffer(std::size_t size)
|
999
|
+
{
|
1000
|
+
m_off += size;
|
1001
|
+
}
|
1002
|
+
|
1003
|
+
template <typename VisitorHolder, typename ReferencedBufferHook>
|
1004
|
+
inline void parser<VisitorHolder, ReferencedBufferHook>::remove_nonparsed_buffer()
|
1005
|
+
{
|
1006
|
+
m_used = m_off;
|
1007
|
+
}
|
1008
|
+
|
1009
|
+
template <typename Visitor>
|
1010
|
+
inline bool parse(const char* data, size_t len, size_t& off, Visitor& v) {
|
1011
|
+
parse_return ret = msgpack::detail::parse_imp(data, len, off, v);
|
1012
|
+
return ret == PARSE_SUCCESS || ret == PARSE_EXTRA_BYTES;
|
1013
|
+
}
|
1014
|
+
|
1015
|
+
template <typename Visitor>
|
1016
|
+
inline bool parse(const char* data, size_t len, Visitor& v) {
|
1017
|
+
std::size_t off = 0;
|
1018
|
+
return msgpack::parse(data, len, off, v);
|
1019
|
+
}
|
1020
|
+
|
1021
|
+
namespace detail {
|
1022
|
+
|
1023
|
+
template <typename Visitor>
|
1024
|
+
struct parse_helper : detail::context<parse_helper<Visitor> > {
|
1025
|
+
parse_helper(Visitor& v):m_visitor(v) {}
|
1026
|
+
parse_return execute(const char* data, std::size_t len, std::size_t& off) {
|
1027
|
+
return detail::context<parse_helper<Visitor> >::execute(data, len, off);
|
1028
|
+
}
|
1029
|
+
Visitor& visitor() const { return m_visitor; }
|
1030
|
+
Visitor& m_visitor;
|
1031
|
+
};
|
1032
|
+
|
1033
|
+
template <typename Visitor>
|
1034
|
+
inline parse_return
|
1035
|
+
parse_imp(const char* data, size_t len, size_t& off, Visitor& v) {
|
1036
|
+
std::size_t noff = off;
|
1037
|
+
|
1038
|
+
if(len <= noff) {
|
1039
|
+
// FIXME
|
1040
|
+
v.insufficient_bytes(noff, noff);
|
1041
|
+
return PARSE_CONTINUE;
|
1042
|
+
}
|
1043
|
+
detail::parse_helper<Visitor> h(v);
|
1044
|
+
parse_return ret = h.execute(data, len, noff);
|
1045
|
+
switch (ret) {
|
1046
|
+
case PARSE_CONTINUE:
|
1047
|
+
off = noff;
|
1048
|
+
v.insufficient_bytes(noff - 1, noff);
|
1049
|
+
return ret;
|
1050
|
+
case PARSE_SUCCESS:
|
1051
|
+
off = noff;
|
1052
|
+
if(noff < len) {
|
1053
|
+
return PARSE_EXTRA_BYTES;
|
1054
|
+
}
|
1055
|
+
return ret;
|
1056
|
+
default:
|
1057
|
+
return ret;
|
1058
|
+
}
|
1059
|
+
}
|
1060
|
+
|
1061
|
+
} // detail
|
1062
|
+
|
1063
|
+
|
1064
|
+
/// @cond
|
1065
|
+
} // MSGPACK_API_VERSION_NAMESPACE(v2)
|
1066
|
+
/// @endcond
|
1067
|
+
|
1068
|
+
} // namespace msgpack
|
1069
|
+
|
1070
|
+
#endif // MSGPACK_DEFAULT_API_VERSION >= 2
|
1071
|
+
|
1072
|
+
#endif // MSGPACK_V2_PARSE_HPP
|