rroonga 9.0.3-x64-mingw32 → 9.0.7-x64-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/doc/text/news.md +30 -0
 - data/ext/groonga/rb-grn-context.c +27 -0
 - data/ext/groonga/rb-grn-flushable.c +7 -0
 - data/ext/groonga/rb-grn-index-column.c +28 -0
 - data/ext/groonga/rb-grn-index-cursor.c +19 -0
 - data/ext/groonga/rb-grn-logger.c +17 -3
 - data/ext/groonga/rb-grn-object.c +236 -22
 - data/ext/groonga/rb-grn-table.c +68 -42
 - data/ext/groonga/rb-grn.h +1 -1
 - 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/2.6/groonga.so +0 -0
 - data/lib/groonga/dumper.rb +3 -0
 - data/lib/groonga/record.rb +2 -2
 - data/test/groonga-test-utils.rb +28 -5
 - data/test/run-test.rb +0 -2
 - data/test/test-accessor.rb +63 -7
 - data/test/test-context.rb +25 -0
 - data/test/test-exception.rb +5 -0
 - data/test/test-flushable.rb +51 -6
 - data/test/test-index-column.rb +67 -6
 - data/test/test-index-cursor.rb +26 -0
 - data/test/test-logger.rb +56 -11
 - data/test/test-plugin.rb +1 -0
 - data/test/test-query-logger.rb +4 -3
 - data/test/test-record.rb +2 -1
 - data/test/test-remote.rb +40 -10
 - data/test/test-schema-dumper.rb +13 -0
 - data/test/test-table.rb +21 -1
 - data/test/test-variable.rb +23 -7
 - data/vendor/local/bin/generate-pdb.bat +22 -22
 - 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.exe +0 -0
 - data/vendor/local/bin/mecab.exe +0 -0
 - 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/cmake/RapidJSONConfig.cmake +3 -0
 - data/vendor/local/cmake/RapidJSONConfigVersion.cmake +10 -0
 - data/vendor/local/include/groonga/groonga/expr.h +16 -0
 - data/vendor/local/include/groonga/groonga/obj.h +8 -0
 - data/vendor/local/include/groonga/groonga/output.h +5 -0
 - data/vendor/local/include/groonga/groonga/version.h +2 -2
 - data/vendor/local/include/rapidjson/allocators.h +271 -0
 - data/vendor/local/include/rapidjson/document.h +2575 -0
 - data/vendor/local/include/rapidjson/encodedstream.h +299 -0
 - data/vendor/local/include/rapidjson/encodings.h +716 -0
 - data/vendor/local/include/rapidjson/error/en.h +74 -0
 - data/vendor/local/include/rapidjson/error/error.h +155 -0
 - data/vendor/local/include/rapidjson/filereadstream.h +99 -0
 - data/vendor/local/include/rapidjson/filewritestream.h +104 -0
 - data/vendor/local/include/rapidjson/fwd.h +151 -0
 - data/vendor/local/include/rapidjson/internal/biginteger.h +290 -0
 - data/vendor/local/include/rapidjson/internal/diyfp.h +258 -0
 - data/vendor/local/include/rapidjson/internal/dtoa.h +245 -0
 - data/vendor/local/include/rapidjson/internal/ieee754.h +78 -0
 - data/vendor/local/include/rapidjson/internal/itoa.h +304 -0
 - data/vendor/local/include/rapidjson/internal/meta.h +181 -0
 - data/vendor/local/include/rapidjson/internal/pow10.h +55 -0
 - data/vendor/local/include/rapidjson/internal/regex.h +701 -0
 - data/vendor/local/include/rapidjson/internal/stack.h +230 -0
 - data/vendor/local/include/rapidjson/internal/strfunc.h +55 -0
 - data/vendor/local/include/rapidjson/internal/strtod.h +269 -0
 - data/vendor/local/include/rapidjson/internal/swap.h +46 -0
 - data/vendor/local/include/rapidjson/istreamwrapper.h +115 -0
 - data/vendor/local/include/rapidjson/memorybuffer.h +70 -0
 - data/vendor/local/include/rapidjson/memorystream.h +71 -0
 - data/vendor/local/include/rapidjson/msinttypes/inttypes.h +316 -0
 - data/vendor/local/include/rapidjson/msinttypes/stdint.h +300 -0
 - data/vendor/local/include/rapidjson/ostreamwrapper.h +81 -0
 - data/vendor/local/include/rapidjson/pointer.h +1358 -0
 - data/vendor/local/include/rapidjson/prettywriter.h +255 -0
 - data/vendor/local/include/rapidjson/rapidjson.h +615 -0
 - data/vendor/local/include/rapidjson/reader.h +1879 -0
 - data/vendor/local/include/rapidjson/schema.h +2006 -0
 - data/vendor/local/include/rapidjson/stream.h +179 -0
 - data/vendor/local/include/rapidjson/stringbuffer.h +117 -0
 - data/vendor/local/include/rapidjson/writer.h +610 -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/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 +44 -18
 - data/vendor/local/lib/groonga/plugins/sharding/logical_count.rb +9 -8
 - data/vendor/local/lib/groonga/plugins/sharding/logical_range_filter.rb +48 -15
 - data/vendor/local/lib/groonga/plugins/sharding/logical_select.rb +84 -58
 - data/vendor/local/lib/groonga/plugins/sharding/range_expression_builder.rb +1 -1
 - 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/command.rb +3 -4
 - data/vendor/local/lib/groonga/scripts/ruby/command_line/grndb.rb +267 -77
 - data/vendor/local/lib/groonga/scripts/ruby/command_line_parser.rb +96 -0
 - data/vendor/local/lib/groonga/scripts/ruby/expression_rewriters/optimizer.rb +1 -1
 - data/vendor/local/lib/groonga/scripts/ruby/expression_tree/binary_operation.rb +30 -7
 - data/vendor/local/lib/groonga/scripts/ruby/initialize/pre.rb +5 -0
 - data/vendor/local/lib/groonga/scripts/ruby/loggable.rb +8 -0
 - data/vendor/local/lib/groonga/scripts/ruby/logger/flags.rb +70 -0
 - data/vendor/local/lib/groonga/scripts/ruby/query_loggable.rb +8 -0
 - data/vendor/local/lib/groonga/scripts/ruby/scan_info_builder.rb +1 -1
 - data/vendor/local/lib/groonga/scripts/ruby/scan_info_data.rb +2 -2
 - data/vendor/local/lib/groonga/scripts/ruby/time.rb +9 -0
 - 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.dll +0 -0
 - data/vendor/local/lib/liblz4.dll.1 +0 -0
 - data/vendor/local/lib/liblz4.dll.1.8.2 +0 -0
 - data/vendor/local/lib/libmecab.dll.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/libonigmo.la +1 -1
 - data/vendor/local/lib/libpcre.dll.a +0 -0
 - data/vendor/local/lib/libpcrecpp.dll.a +0 -0
 - data/vendor/local/lib/libpcreposix.dll.a +0 -0
 - data/vendor/local/lib/libz.dll.a +0 -0
 - data/vendor/local/lib/pkgconfig/groonga.pc +2 -2
 - data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
 - data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
 - data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
 - data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
 - data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
 - data/vendor/local/share/doc/RapidJSON/examples/CMakeLists.txt +42 -0
 - data/vendor/local/share/doc/RapidJSON/examples/capitalize/capitalize.cpp +67 -0
 - data/vendor/local/share/doc/RapidJSON/examples/condense/condense.cpp +32 -0
 - data/vendor/local/share/doc/RapidJSON/examples/filterkey/filterkey.cpp +135 -0
 - data/vendor/local/share/doc/RapidJSON/examples/filterkeydom/filterkeydom.cpp +170 -0
 - data/vendor/local/share/doc/RapidJSON/examples/jsonx/jsonx.cpp +207 -0
 - data/vendor/local/share/doc/RapidJSON/examples/messagereader/messagereader.cpp +105 -0
 - data/vendor/local/share/doc/RapidJSON/examples/parsebyparts/parsebyparts.cpp +173 -0
 - data/vendor/local/share/doc/RapidJSON/examples/pretty/pretty.cpp +30 -0
 - data/vendor/local/share/doc/RapidJSON/examples/prettyauto/prettyauto.cpp +56 -0
 - data/vendor/local/share/doc/RapidJSON/examples/schemavalidator/schemavalidator.cpp +72 -0
 - data/vendor/local/share/doc/RapidJSON/examples/serialize/serialize.cpp +173 -0
 - data/vendor/local/share/doc/RapidJSON/examples/simpledom/simpledom.cpp +29 -0
 - data/vendor/local/share/doc/RapidJSON/examples/simplereader/simplereader.cpp +42 -0
 - data/vendor/local/share/doc/RapidJSON/examples/simplewriter/simplewriter.cpp +36 -0
 - data/vendor/local/share/doc/RapidJSON/examples/tutorial/tutorial.cpp +151 -0
 - data/vendor/local/share/doc/RapidJSON/readme.md +160 -0
 - data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_static/documentation_options.js +1 -1
 - data/vendor/local/share/doc/groonga/en/html/characteristic.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/client.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/community.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/contribution.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/contribution/development.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/build.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_autotools.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_cmake.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/build/windows_cmake.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/contribution/documentation/introduction.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/contribution/report.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/development.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/genindex.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/index.html +11 -7
 - data/vendor/local/share/doc/groonga/en/html/install.html +5 -4
 - data/vendor/local/share/doc/groonga/en/html/install/centos.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/install/debian.html +79 -8
 - data/vendor/local/share/doc/groonga/en/html/install/docker.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/install/fedora.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/install/others.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/install/solaris.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/install/windows.html +12 -12
 - data/vendor/local/share/doc/groonga/en/html/limitations.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/news.html +498 -206
 - data/vendor/local/share/doc/groonga/en/html/news/0.x.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/news/1.3.x.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/news/2.x.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/news/3.x.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/news/4.x.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/news/5.x.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/news/6.x.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/news/senna.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
 - data/vendor/local/share/doc/groonga/en/html/reference.html +9 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/alias.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/api.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_content_type.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_inspect.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_thread.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/api/overview.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/cast.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/column.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/columns/index.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/columns/pseudo.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/columns/scalar.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/command.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/command/pretty_print.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/command/request_id.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/command/request_timeout.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_copy.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/config_delete.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/config_get.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/config_set.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/database_unmap.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/io_flush.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_acquire.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_clear.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_release.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_count.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_parameters.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_range_filter.html +77 -4
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_select.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_shard_list.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_table_remove.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/object_exist.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/object_inspect.html +78 -54
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/object_list.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/object_remove.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_register.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_unregister.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/query_expand.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/range_filter.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/reindex.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/request_cancel.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/schema.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_copy.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_rename.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_tokenize.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/thread_limit.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenizer_list.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/configuration.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/executables.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/grndb.html +58 -4
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/function.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/cast_loose.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/fuzzy_search.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +11 -19
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/in_records.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/in_values.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/math_abs.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/number_classify.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/prefix_rk_search.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/string_length.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/string_substring.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_day.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_day_of_week.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_hour.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_minute.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_month.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_second.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_week.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_year.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_find.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_new.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_size.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_slice.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/log.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/normalizers/normalizer_auto.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/normalizers/normalizer_nfkc100.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/normalizers/normalizer_nfkc51.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/operations.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/operations/geolocation_search.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/operations/prefix_rk_search.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/output.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/regular_expression.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/scorer.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_at_most.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_idf.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/sharding.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest/completion.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest/correction.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest/introduction.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest/suggestion.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/tables.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/token_filter/summary.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/token_filters.html +7 -7
 - data/vendor/local/share/doc/groonga/en/html/reference/token_filters/token_filter_nfkc100.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/token_filters/token_filter_stem.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/token_filters/token_filter_stop_word.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizer/summary.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +9 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_bigram.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_bigram_ignore_blank.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_bigram_ignore_blank_split_symbol.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_bigram_ignore_blank_split_symbol_alpha.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_bigram_ignore_blank_split_symbol_alpha_digit.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_bigram_split_symbol.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_bigram_split_symbol_alpha.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_bigram_split_symbol_alpha_digit.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_delimit.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_delimit_null.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_mecab.html +8 -8
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_ngram.html +1005 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_pattern.html +240 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_regexp.html +21 -21
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_table.html +246 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_trigram.html +20 -20
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers/token_unigram.html +15 -15
 - data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/types.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/window_function.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/window_functions/record_number.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/window_functions/window_count.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/window_functions/window_record_number.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/reference/window_functions/window_sum.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/search.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
 - data/vendor/local/share/doc/groonga/en/html/server.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/server/http.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/server/memcached.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/server/package.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/spec.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/spec/search.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/troubleshooting/how_to_analyze_error_message.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/tutorial.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +68 -6
 - data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +37 -4
 - data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +3 -3
 - data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_static/documentation_options.js +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/characteristic.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/client.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/community.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/contribution.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/build.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_autotools.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_cmake.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/windows_cmake.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/introduction.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/development.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/genindex.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/index.html +11 -7
 - data/vendor/local/share/doc/groonga/ja/html/install.html +5 -4
 - data/vendor/local/share/doc/groonga/ja/html/install/centos.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/install/debian.html +69 -8
 - data/vendor/local/share/doc/groonga/ja/html/install/docker.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/install/others.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/install/windows.html +12 -12
 - data/vendor/local/share/doc/groonga/ja/html/limitations.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/news.html +494 -206
 - data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/news/1.3.x.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/news/2.x.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/news/4.x.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/news/5.x.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/news/6.x.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/news/senna.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference.html +9 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/alias.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/api.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_content_type.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_inspect.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_thread.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/overview.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/column.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/columns/index.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/columns/pseudo.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/columns/scalar.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/command.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/pretty_print.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/request_id.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/request_timeout.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_copy.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_delete.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_get.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_set.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/database_unmap.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/io_flush.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_acquire.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_clear.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_release.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_count.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_parameters.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_range_filter.html +75 -4
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_select.html +7 -7
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_shard_list.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_table_remove.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_exist.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_inspect.html +73 -54
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_list.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_remove.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_register.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_unregister.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/query_expand.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/range_filter.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/reindex.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/request_cancel.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/schema.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +7 -7
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_copy.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_rename.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_tokenize.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/thread_limit.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/configuration.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/grndb.html +57 -4
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/function.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/cast_loose.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/fuzzy_search.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +11 -19
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_records.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_values.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/math_abs.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/number_classify.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/prefix_rk_search.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/string_length.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/string_substring.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_day.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_day_of_week.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_hour.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_minute.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_month.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_second.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_week.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_year.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_find.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_new.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_size.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_slice.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/log.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/normalizers/normalizer_auto.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/normalizers/normalizer_nfkc100.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/normalizers/normalizer_nfkc51.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/operations.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/operations/geolocation_search.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/operations/prefix_rk_search.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/output.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/regular_expression.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/scorer.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_at_most.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_idf.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/sharding.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest/completion.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest/correction.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest/introduction.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest/suggestion.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/token_filter/summary.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/token_filters.html +7 -7
 - data/vendor/local/share/doc/groonga/ja/html/reference/token_filters/token_filter_nfkc100.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/token_filters/token_filter_stem.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/token_filters/token_filter_stop_word.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizer/summary.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +9 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_bigram.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_bigram_ignore_blank.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_bigram_ignore_blank_split_symbol.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_bigram_ignore_blank_split_symbol_alpha.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_bigram_ignore_blank_split_symbol_alpha_digit.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_bigram_split_symbol.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_bigram_split_symbol_alpha.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_bigram_split_symbol_alpha_digit.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_delimit.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_delimit_null.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_mecab.html +8 -8
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_ngram.html +998 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_pattern.html +240 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_regexp.html +21 -21
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_table.html +242 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_trigram.html +20 -20
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers/token_unigram.html +15 -15
 - data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/types.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/window_function.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/window_functions/record_number.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/window_functions/window_count.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/window_functions/window_record_number.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/reference/window_functions/window_sum.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/search.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/server.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/server/http.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/server/memcached.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/server/package.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/spec.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/spec/search.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/troubleshooting/how_to_analyze_error_message.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/tutorial.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +64 -6
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +37 -4
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +3 -3
 - data/vendor/local/share/groonga/COPYING +502 -0
 - data/vendor/local/share/groonga/mruby/LEGAL +58 -54
 - data/vendor/local/share/license/mruby/AUTHORS +6 -2
 - data/vendor/local/share/license/mruby/LEGAL +1 -1
 - data/vendor/local/share/license/mruby/{MITL → LICENSE} +1 -1
 - data/vendor/local/share/license/mruby/README.md +3 -3
 - data/vendor/local/share/license/rapidjson/license.txt +57 -0
 - metadata +126 -60
 
    
        data/test/test-schema-dumper.rb
    CHANGED
    
    | 
         @@ -395,6 +395,19 @@ column_create Terms Items_title COLUMN_INDEX|WITH_POSITION|INDEX_MEDIUM Items ti 
     | 
|
| 
       395 
395 
     | 
    
         
             
                  SCHEMA
         
     | 
| 
       396 
396 
     | 
    
         
             
                end
         
     | 
| 
       397 
397 
     | 
    
         | 
| 
      
 398 
     | 
    
         
            +
                def test_large_index
         
     | 
| 
      
 399 
     | 
    
         
            +
                  define_index_schema(:title_index_options => {:size => :large})
         
     | 
| 
      
 400 
     | 
    
         
            +
                  assert_equal(<<-SCHEMA, dump)
         
     | 
| 
      
 401 
     | 
    
         
            +
            table_create Items TABLE_HASH_KEY ShortText
         
     | 
| 
      
 402 
     | 
    
         
            +
            column_create Items title COLUMN_SCALAR ShortText
         
     | 
| 
      
 403 
     | 
    
         
            +
             
     | 
| 
      
 404 
     | 
    
         
            +
            table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram --token_filters TokenFilterStopWord --normalizer NormalizerAuto
         
     | 
| 
      
 405 
     | 
    
         
            +
             
     | 
| 
      
 406 
     | 
    
         
            +
            column_create Terms Items__key COLUMN_INDEX|WITH_POSITION Items _key
         
     | 
| 
      
 407 
     | 
    
         
            +
            column_create Terms Items_title COLUMN_INDEX|WITH_POSITION|INDEX_LARGE Items title
         
     | 
| 
      
 408 
     | 
    
         
            +
                  SCHEMA
         
     | 
| 
      
 409 
     | 
    
         
            +
                end
         
     | 
| 
      
 410 
     | 
    
         
            +
             
     | 
| 
       398 
411 
     | 
    
         
             
                def test_weight_vector
         
     | 
| 
       399 
412 
     | 
    
         
             
                  define_weight_vector_schema
         
     | 
| 
       400 
413 
     | 
    
         
             
                  assert_equal(<<-SCHEMA, dump)
         
     | 
    
        data/test/test-table.rb
    CHANGED
    
    | 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # Copyright (C) 2009- 
     | 
| 
      
 1 
     | 
    
         
            +
            # Copyright (C) 2009-2019  Kouhei Sutou <kou@clear-code.com>
         
     | 
| 
       2 
2 
     | 
    
         
             
            # Copyright (C) 2016  Masafumi Yokoyama <yokoyama@clear-code.com>
         
     | 
| 
       3 
3 
     | 
    
         
             
            #
         
     | 
| 
       4 
4 
     | 
    
         
             
            # This library is free software; you can redistribute it and/or
         
     | 
| 
         @@ -276,6 +276,25 @@ class TableTest < Test::Unit::TestCase 
     | 
|
| 
       276 
276 
     | 
    
         
             
                             bookmark["created_at"].to_a)
         
     | 
| 
       277 
277 
     | 
    
         
             
              end
         
     | 
| 
       278 
278 
     | 
    
         | 
| 
      
 279 
     | 
    
         
            +
              sub_test_case "#support_score?" do
         
     | 
| 
      
 280 
     | 
    
         
            +
                setup
         
     | 
| 
      
 281 
     | 
    
         
            +
                def setup_table
         
     | 
| 
      
 282 
     | 
    
         
            +
                  @table = Groonga::Hash.create(:name => "Bookmarks")
         
     | 
| 
      
 283 
     | 
    
         
            +
                end
         
     | 
| 
      
 284 
     | 
    
         
            +
             
     | 
| 
      
 285 
     | 
    
         
            +
                test "true" do
         
     | 
| 
      
 286 
     | 
    
         
            +
                   assert do
         
     | 
| 
      
 287 
     | 
    
         
            +
                     @table.select.support_score?
         
     | 
| 
      
 288 
     | 
    
         
            +
                  end
         
     | 
| 
      
 289 
     | 
    
         
            +
                end
         
     | 
| 
      
 290 
     | 
    
         
            +
             
     | 
| 
      
 291 
     | 
    
         
            +
                test "false" do
         
     | 
| 
      
 292 
     | 
    
         
            +
                  assert do
         
     | 
| 
      
 293 
     | 
    
         
            +
                    not @table.support_score?
         
     | 
| 
      
 294 
     | 
    
         
            +
                  end
         
     | 
| 
      
 295 
     | 
    
         
            +
                end
         
     | 
| 
      
 296 
     | 
    
         
            +
              end
         
     | 
| 
      
 297 
     | 
    
         
            +
             
     | 
| 
       279 
298 
     | 
    
         
             
              class DeleteTest < self
         
     | 
| 
       280 
299 
     | 
    
         
             
                setup
         
     | 
| 
       281 
300 
     | 
    
         
             
                def setup_data
         
     | 
| 
         @@ -738,6 +757,7 @@ class TableTest < Test::Unit::TestCase 
     | 
|
| 
       738 
757 
     | 
    
         | 
| 
       739 
758 
     | 
    
         
             
                private
         
     | 
| 
       740 
759 
     | 
    
         
             
                def by_other_process
         
     | 
| 
      
 760 
     | 
    
         
            +
                  only_not_windows
         
     | 
| 
       741 
761 
     | 
    
         
             
                  pid = Process.fork do
         
     | 
| 
       742 
762 
     | 
    
         
             
                    yield
         
     | 
| 
       743 
763 
     | 
    
         
             
                  end
         
     | 
    
        data/test/test-variable.rb
    CHANGED
    
    | 
         @@ -1,4 +1,4 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            # Copyright (C) 2009  Kouhei  
     | 
| 
      
 1 
     | 
    
         
            +
            # Copyright (C) 2009-2019  Sutou Kouhei <kou@clear-code.com>
         
     | 
| 
       2 
2 
     | 
    
         
             
            #
         
     | 
| 
       3 
3 
     | 
    
         
             
            # This library is free software; you can redistribute it and/or
         
     | 
| 
       4 
4 
     | 
    
         
             
            # modify it under the terms of the GNU Lesser General Public
         
     | 
| 
         @@ -16,13 +16,29 @@ 
     | 
|
| 
       16 
16 
     | 
    
         
             
            class VariableTest < Test::Unit::TestCase
         
     | 
| 
       17 
17 
     | 
    
         
             
              include GroongaTestUtils
         
     | 
| 
       18 
18 
     | 
    
         | 
| 
       19 
     | 
    
         
            -
              setup 
     | 
| 
      
 19 
     | 
    
         
            +
              def setup
         
     | 
| 
      
 20 
     | 
    
         
            +
                setup_database
         
     | 
| 
      
 21 
     | 
    
         
            +
                @expression = Groonga::Expression.new
         
     | 
| 
      
 22 
     | 
    
         
            +
                @variable = @expression.define_variable
         
     | 
| 
      
 23 
     | 
    
         
            +
              end
         
     | 
| 
       20 
24 
     | 
    
         | 
| 
       21 
25 
     | 
    
         
             
              def test_value
         
     | 
| 
       22 
     | 
    
         
            -
                 
     | 
| 
       23 
     | 
    
         
            -
                variable =  
     | 
| 
       24 
     | 
    
         
            -
                 
     | 
| 
       25 
     | 
    
         
            -
             
     | 
| 
       26 
     | 
    
         
            -
             
     | 
| 
      
 26 
     | 
    
         
            +
                assert_nil(@variable.value)
         
     | 
| 
      
 27 
     | 
    
         
            +
                @variable.value = "morita"
         
     | 
| 
      
 28 
     | 
    
         
            +
                assert_equal("morita", @variable.value)
         
     | 
| 
      
 29 
     | 
    
         
            +
              end
         
     | 
| 
      
 30 
     | 
    
         
            +
             
     | 
| 
      
 31 
     | 
    
         
            +
              sub_test_case("#bulk?") do
         
     | 
| 
      
 32 
     | 
    
         
            +
                def test_true
         
     | 
| 
      
 33 
     | 
    
         
            +
                  assert do
         
     | 
| 
      
 34 
     | 
    
         
            +
                    @variable.bulk?
         
     | 
| 
      
 35 
     | 
    
         
            +
                  end
         
     | 
| 
      
 36 
     | 
    
         
            +
                end
         
     | 
| 
      
 37 
     | 
    
         
            +
             
     | 
| 
      
 38 
     | 
    
         
            +
                def test_false
         
     | 
| 
      
 39 
     | 
    
         
            +
                  assert do
         
     | 
| 
      
 40 
     | 
    
         
            +
                    not @expression.bulk?
         
     | 
| 
      
 41 
     | 
    
         
            +
                  end
         
     | 
| 
      
 42 
     | 
    
         
            +
                end
         
     | 
| 
       27 
43 
     | 
    
         
             
              end
         
     | 
| 
       28 
44 
     | 
    
         
             
            end
         
     | 
| 
         @@ -1,38 +1,38 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            bin\cv2pdb.exe libexec\mecab\mecab-test-gen.exe libexec\mecab\mecab-test-gen.exe libexec\mecab\mecab-test-gen.pdb
         
     | 
| 
       2 
     | 
    
         
            -
            bin\cv2pdb.exe libexec\mecab\mecab-cost-train.exe libexec\mecab\mecab-cost-train.exe libexec\mecab\mecab-cost-train.pdb
         
     | 
| 
       3 
     | 
    
         
            -
            bin\cv2pdb.exe libexec\mecab\mecab-system-eval.exe libexec\mecab\mecab-system-eval.exe libexec\mecab\mecab-system-eval.pdb
         
     | 
| 
       4 
     | 
    
         
            -
            bin\cv2pdb.exe libexec\mecab\mecab-dict-index.exe libexec\mecab\mecab-dict-index.exe libexec\mecab\mecab-dict-index.pdb
         
     | 
| 
       5 
     | 
    
         
            -
            bin\cv2pdb.exe libexec\mecab\mecab-dict-gen.exe libexec\mecab\mecab-dict-gen.exe libexec\mecab\mecab-dict-gen.pdb
         
     | 
| 
       6 
     | 
    
         
            -
            bin\cv2pdb.exe bin\mecab.exe bin\mecab.exe bin\mecab.pdb
         
     | 
| 
       7 
1 
     | 
    
         
             
            bin\cv2pdb.exe bin\grndb.exe bin\grndb.exe bin\grndb.pdb
         
     | 
| 
       8 
     | 
    
         
            -
            bin\cv2pdb.exe bin\ 
     | 
| 
      
 2 
     | 
    
         
            +
            bin\cv2pdb.exe bin\lz4cat.exe bin\lz4cat.exe bin\lz4cat.pdb
         
     | 
| 
      
 3 
     | 
    
         
            +
            bin\cv2pdb.exe bin\unlz4.exe bin\unlz4.exe bin\unlz4.pdb
         
     | 
| 
      
 4 
     | 
    
         
            +
            bin\cv2pdb.exe bin\mecab.exe bin\mecab.exe bin\mecab.pdb
         
     | 
| 
       9 
5 
     | 
    
         
             
            bin\cv2pdb.exe bin\pcregrep.exe bin\pcregrep.exe bin\pcregrep.pdb
         
     | 
| 
       10 
     | 
    
         
            -
            bin\cv2pdb.exe bin\groonga.exe bin\groonga.exe bin\groonga.pdb
         
     | 
| 
       11 
6 
     | 
    
         
             
            bin\cv2pdb.exe bin\groonga-benchmark.exe bin\groonga-benchmark.exe bin\groonga-benchmark.pdb
         
     | 
| 
       12 
7 
     | 
    
         
             
            bin\cv2pdb.exe bin\pcretest.exe bin\pcretest.exe bin\pcretest.pdb
         
     | 
| 
       13 
     | 
    
         
            -
            bin\cv2pdb.exe bin\ 
     | 
| 
      
 8 
     | 
    
         
            +
            bin\cv2pdb.exe bin\groonga-suggest-create-dataset.exe bin\groonga-suggest-create-dataset.exe bin\groonga-suggest-create-dataset.pdb
         
     | 
| 
       14 
9 
     | 
    
         
             
            bin\cv2pdb.exe bin\lz4c.exe bin\lz4c.exe bin\lz4c.pdb
         
     | 
| 
       15 
10 
     | 
    
         
             
            bin\cv2pdb.exe bin\lz4.exe bin\lz4.exe bin\lz4.pdb
         
     | 
| 
       16 
     | 
    
         
            -
            bin\cv2pdb.exe bin\ 
     | 
| 
       17 
     | 
    
         
            -
            bin\cv2pdb.exe  
     | 
| 
       18 
     | 
    
         
            -
            bin\cv2pdb.exe  
     | 
| 
       19 
     | 
    
         
            -
            bin\cv2pdb.exe  
     | 
| 
       20 
     | 
    
         
            -
            bin\cv2pdb.exe  
     | 
| 
      
 11 
     | 
    
         
            +
            bin\cv2pdb.exe bin\groonga.exe bin\groonga.exe bin\groonga.pdb
         
     | 
| 
      
 12 
     | 
    
         
            +
            bin\cv2pdb.exe libexec\mecab\mecab-test-gen.exe libexec\mecab\mecab-test-gen.exe libexec\mecab\mecab-test-gen.pdb
         
     | 
| 
      
 13 
     | 
    
         
            +
            bin\cv2pdb.exe libexec\mecab\mecab-cost-train.exe libexec\mecab\mecab-cost-train.exe libexec\mecab\mecab-cost-train.pdb
         
     | 
| 
      
 14 
     | 
    
         
            +
            bin\cv2pdb.exe libexec\mecab\mecab-dict-index.exe libexec\mecab\mecab-dict-index.exe libexec\mecab\mecab-dict-index.pdb
         
     | 
| 
      
 15 
     | 
    
         
            +
            bin\cv2pdb.exe libexec\mecab\mecab-dict-gen.exe libexec\mecab\mecab-dict-gen.exe libexec\mecab\mecab-dict-gen.pdb
         
     | 
| 
      
 16 
     | 
    
         
            +
            bin\cv2pdb.exe libexec\mecab\mecab-system-eval.exe libexec\mecab\mecab-system-eval.exe libexec\mecab\mecab-system-eval.pdb
         
     | 
| 
       21 
17 
     | 
    
         
             
            bin\cv2pdb.exe bin\libpcrecpp-0.dll bin\libpcrecpp-0.dll bin\libpcrecpp-0.pdb
         
     | 
| 
       22 
     | 
    
         
            -
            bin\cv2pdb.exe bin\ 
     | 
| 
      
 18 
     | 
    
         
            +
            bin\cv2pdb.exe bin\libmsgpackc.dll bin\libmsgpackc.dll bin\libmsgpackc.pdb
         
     | 
| 
      
 19 
     | 
    
         
            +
            bin\cv2pdb.exe bin\libgcc_s_seh-1.dll bin\libgcc_s_seh-1.dll bin\libgcc_s_seh-1.pdb
         
     | 
| 
      
 20 
     | 
    
         
            +
            bin\cv2pdb.exe bin\libstdc++-6.dll bin\libstdc++-6.dll bin\libstdc++-6.pdb
         
     | 
| 
      
 21 
     | 
    
         
            +
            bin\cv2pdb.exe bin\libpcre-1.dll bin\libpcre-1.dll bin\libpcre-1.pdb
         
     | 
| 
       23 
22 
     | 
    
         
             
            bin\cv2pdb.exe bin\libgroonga-0.dll bin\libgroonga-0.dll bin\libgroonga-0.pdb
         
     | 
| 
      
 23 
     | 
    
         
            +
            bin\cv2pdb.exe bin\libpcreposix-0.dll bin\libpcreposix-0.dll bin\libpcreposix-0.pdb
         
     | 
| 
       24 
24 
     | 
    
         
             
            bin\cv2pdb.exe bin\libonigmo-6.dll bin\libonigmo-6.dll bin\libonigmo-6.pdb
         
     | 
| 
       25 
     | 
    
         
            -
            bin\cv2pdb.exe bin\ 
     | 
| 
       26 
     | 
    
         
            -
            bin\cv2pdb.exe bin\ 
     | 
| 
      
 25 
     | 
    
         
            +
            bin\cv2pdb.exe bin\zlib1.dll bin\zlib1.dll bin\zlib1.pdb
         
     | 
| 
      
 26 
     | 
    
         
            +
            bin\cv2pdb.exe bin\libmecab-2.dll bin\libmecab-2.dll bin\libmecab-2.pdb
         
     | 
| 
       27 
27 
     | 
    
         
             
            bin\cv2pdb.exe lib\liblz4.dll lib\liblz4.dll lib\liblz4.pdb
         
     | 
| 
       28 
     | 
    
         
            -
            bin\cv2pdb.exe lib\groonga\plugins\tokenizers\mecab.dll lib\groonga\plugins\tokenizers\mecab.dll lib\groonga\plugins\tokenizers\mecab.pdb
         
     | 
| 
       29 
28 
     | 
    
         
             
            bin\cv2pdb.exe lib\groonga\plugins\suggest\suggest.dll lib\groonga\plugins\suggest\suggest.dll lib\groonga\plugins\suggest\suggest.pdb
         
     | 
| 
       30 
     | 
    
         
            -
            bin\cv2pdb.exe lib\groonga\plugins\ 
     | 
| 
       31 
     | 
    
         
            -
            bin\cv2pdb.exe lib\groonga\plugins\ 
     | 
| 
      
 29 
     | 
    
         
            +
            bin\cv2pdb.exe lib\groonga\plugins\tokenizers\mecab.dll lib\groonga\plugins\tokenizers\mecab.dll lib\groonga\plugins\tokenizers\mecab.pdb
         
     | 
| 
      
 30 
     | 
    
         
            +
            bin\cv2pdb.exe lib\groonga\plugins\functions\vector.dll lib\groonga\plugins\functions\vector.dll lib\groonga\plugins\functions\vector.pdb
         
     | 
| 
       32 
31 
     | 
    
         
             
            bin\cv2pdb.exe lib\groonga\plugins\functions\time.dll lib\groonga\plugins\functions\time.dll lib\groonga\plugins\functions\time.pdb
         
     | 
| 
       33 
32 
     | 
    
         
             
            bin\cv2pdb.exe lib\groonga\plugins\functions\string.dll lib\groonga\plugins\functions\string.dll lib\groonga\plugins\functions\string.pdb
         
     | 
| 
       34 
     | 
    
         
            -
            bin\cv2pdb.exe lib\groonga\plugins\functions\number.dll lib\groonga\plugins\functions\number.dll lib\groonga\plugins\functions\number.pdb
         
     | 
| 
       35 
     | 
    
         
            -
            bin\cv2pdb.exe lib\groonga\plugins\functions\vector.dll lib\groonga\plugins\functions\vector.dll lib\groonga\plugins\functions\vector.pdb
         
     | 
| 
       36 
33 
     | 
    
         
             
            bin\cv2pdb.exe lib\groonga\plugins\functions\index_column.dll lib\groonga\plugins\functions\index_column.dll lib\groonga\plugins\functions\index_column.pdb
         
     | 
| 
      
 34 
     | 
    
         
            +
            bin\cv2pdb.exe lib\groonga\plugins\functions\number.dll lib\groonga\plugins\functions\number.dll lib\groonga\plugins\functions\number.pdb
         
     | 
| 
       37 
35 
     | 
    
         
             
            bin\cv2pdb.exe lib\groonga\plugins\functions\math.dll lib\groonga\plugins\functions\math.dll lib\groonga\plugins\functions\math.pdb
         
     | 
| 
      
 36 
     | 
    
         
            +
            bin\cv2pdb.exe lib\groonga\plugins\normalizers\mysql.dll lib\groonga\plugins\normalizers\mysql.dll lib\groonga\plugins\normalizers\mysql.pdb
         
     | 
| 
      
 37 
     | 
    
         
            +
            bin\cv2pdb.exe lib\groonga\plugins\query_expanders\tsv.dll lib\groonga\plugins\query_expanders\tsv.dll lib\groonga\plugins\query_expanders\tsv.pdb
         
     | 
| 
       38 
38 
     | 
    
         
             
            bin\cv2pdb.exe lib\groonga\plugins\token_filters\stop_word.dll lib\groonga\plugins\token_filters\stop_word.dll lib\groonga\plugins\token_filters\stop_word.pdb
         
     | 
    
        data/vendor/local/bin/grndb.exe
    CHANGED
    
    | 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
    
        data/vendor/local/bin/lz4.exe
    CHANGED
    
    | 
         Binary file 
     | 
    
        data/vendor/local/bin/lz4c.exe
    CHANGED
    
    | 
         Binary file 
     | 
    
        data/vendor/local/bin/lz4cat.exe
    CHANGED
    
    | 
         Binary file 
     | 
    
        data/vendor/local/bin/mecab.exe
    CHANGED
    
    | 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
    
        data/vendor/local/bin/unlz4.exe
    CHANGED
    
    | 
         Binary file 
     | 
    
        data/vendor/local/bin/zlib1.dll
    CHANGED
    
    | 
         Binary file 
     | 
| 
         @@ -0,0 +1,10 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            SET(PACKAGE_VERSION "1.1.0")
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            IF (PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION)
         
     | 
| 
      
 4 
     | 
    
         
            +
              SET(PACKAGE_VERSION_EXACT "true")
         
     | 
| 
      
 5 
     | 
    
         
            +
            ENDIF (PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION)
         
     | 
| 
      
 6 
     | 
    
         
            +
            IF (NOT PACKAGE_FIND_VERSION VERSION_GREATER PACKAGE_VERSION)
         
     | 
| 
      
 7 
     | 
    
         
            +
              SET(PACKAGE_VERSION_COMPATIBLE "true")
         
     | 
| 
      
 8 
     | 
    
         
            +
            ELSE (NOT PACKAGE_FIND_VERSION VERSION_GREATER PACKAGE_VERSION)
         
     | 
| 
      
 9 
     | 
    
         
            +
              SET(PACKAGE_VERSION_UNSUITABLE "true")
         
     | 
| 
      
 10 
     | 
    
         
            +
            ENDIF (NOT PACKAGE_FIND_VERSION VERSION_GREATER PACKAGE_VERSION)
         
     | 
| 
         @@ -1,5 +1,6 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            /*
         
     | 
| 
       2 
2 
     | 
    
         
             
              Copyright(C) 2009-2017 Brazil
         
     | 
| 
      
 3 
     | 
    
         
            +
              Copyright(C) 2019 Sutou Kouhei <kou@clear-code.com>
         
     | 
| 
       3 
4 
     | 
    
         | 
| 
       4 
5 
     | 
    
         
             
              This library is free software; you can redistribute it and/or
         
     | 
| 
       5 
6 
     | 
    
         
             
              modify it under the terms of the GNU Lesser General Public
         
     | 
| 
         @@ -123,6 +124,21 @@ GRN_API grn_rc grn_expr_snip_add_conditions(grn_ctx *ctx, 
     | 
|
| 
       123 
124 
     | 
    
         | 
| 
       124 
125 
     | 
    
         
             
            GRN_API unsigned int grn_expr_estimate_size(grn_ctx *ctx, grn_obj *expr);
         
     | 
| 
       125 
126 
     | 
    
         | 
| 
      
 127 
     | 
    
         
            +
            GRN_API grn_rc
         
     | 
| 
      
 128 
     | 
    
         
            +
            grn_expr_set_query_log_tag_prefix(grn_ctx *ctx,
         
     | 
| 
      
 129 
     | 
    
         
            +
                                              grn_obj *expr,
         
     | 
| 
      
 130 
     | 
    
         
            +
                                              const char *prefix,
         
     | 
| 
      
 131 
     | 
    
         
            +
                                              int prefix_len);
         
     | 
| 
      
 132 
     | 
    
         
            +
            GRN_API const char *
         
     | 
| 
      
 133 
     | 
    
         
            +
            grn_expr_get_query_log_tag_prefix(grn_ctx *ctx, grn_obj *expr);
         
     | 
| 
      
 134 
     | 
    
         
            +
             
     | 
| 
      
 135 
     | 
    
         
            +
            GRN_API grn_rc
         
     | 
| 
      
 136 
     | 
    
         
            +
            grn_expr_set_parent(grn_ctx *ctx,
         
     | 
| 
      
 137 
     | 
    
         
            +
                                grn_obj *expr,
         
     | 
| 
      
 138 
     | 
    
         
            +
                                grn_obj *parent);
         
     | 
| 
      
 139 
     | 
    
         
            +
            GRN_API grn_obj *
         
     | 
| 
      
 140 
     | 
    
         
            +
            grn_expr_get_parent(grn_ctx *ctx, grn_obj *expr);
         
     | 
| 
      
 141 
     | 
    
         
            +
             
     | 
| 
       126 
142 
     | 
    
         
             
            #ifdef __cplusplus
         
     | 
| 
       127 
143 
     | 
    
         
             
            }
         
     | 
| 
       128 
144 
     | 
    
         
             
            #endif
         
     | 
| 
         @@ -50,6 +50,14 @@ GRN_API grn_bool grn_obj_is_index_column(grn_ctx *ctx, grn_obj *obj); 
     | 
|
| 
       50 
50 
     | 
    
         
             
            GRN_API grn_bool grn_obj_is_accessor(grn_ctx *ctx, grn_obj *obj);
         
     | 
| 
       51 
51 
     | 
    
         
             
            GRN_API grn_bool grn_obj_is_id_accessor(grn_ctx *ctx, grn_obj *obj);
         
     | 
| 
       52 
52 
     | 
    
         
             
            GRN_API grn_bool grn_obj_is_key_accessor(grn_ctx *ctx, grn_obj *obj);
         
     | 
| 
      
 53 
     | 
    
         
            +
            GRN_API bool grn_obj_is_value_accessor(grn_ctx *ctx, grn_obj *obj);
         
     | 
| 
      
 54 
     | 
    
         
            +
            GRN_API bool grn_obj_is_score_accessor(grn_ctx *ctx, grn_obj *obj);
         
     | 
| 
      
 55 
     | 
    
         
            +
            GRN_API bool grn_obj_is_nsubrecs_accessor(grn_ctx *ctx, grn_obj *obj);
         
     | 
| 
      
 56 
     | 
    
         
            +
            GRN_API bool grn_obj_is_max_accessor(grn_ctx *ctx, grn_obj *obj);
         
     | 
| 
      
 57 
     | 
    
         
            +
            GRN_API bool grn_obj_is_min_accessor(grn_ctx *ctx, grn_obj *obj);
         
     | 
| 
      
 58 
     | 
    
         
            +
            GRN_API bool grn_obj_is_sum_accessor(grn_ctx *ctx, grn_obj *obj);
         
     | 
| 
      
 59 
     | 
    
         
            +
            GRN_API bool grn_obj_is_avg_accessor(grn_ctx *ctx, grn_obj *obj);
         
     | 
| 
      
 60 
     | 
    
         
            +
            GRN_API bool grn_obj_is_column_value_accessor(grn_ctx *ctx, grn_obj *obj);
         
     | 
| 
       53 
61 
     | 
    
         
             
            GRN_API grn_bool grn_obj_is_type(grn_ctx *ctx, grn_obj *obj);
         
     | 
| 
       54 
62 
     | 
    
         
             
            GRN_API grn_bool grn_obj_is_text_family_type(grn_ctx *ctx, grn_obj *obj);
         
     | 
| 
       55 
63 
     | 
    
         
             
            GRN_API grn_bool grn_obj_is_proc(grn_ctx *ctx, grn_obj *obj);
         
     | 
| 
         @@ -46,6 +46,11 @@ struct _grn_obj_format { 
     | 
|
| 
       46 
46 
     | 
    
         
             
              grn_obj *expression;
         
     | 
| 
       47 
47 
     | 
    
         
             
            };
         
     | 
| 
       48 
48 
     | 
    
         | 
| 
      
 49 
     | 
    
         
            +
            GRN_API grn_rc grn_output_range_normalize(grn_ctx *ctx,
         
     | 
| 
      
 50 
     | 
    
         
            +
                                                      int size,
         
     | 
| 
      
 51 
     | 
    
         
            +
                                                      int *offset,
         
     | 
| 
      
 52 
     | 
    
         
            +
                                                      int *limit);
         
     | 
| 
      
 53 
     | 
    
         
            +
             
     | 
| 
       49 
54 
     | 
    
         
             
            #define GRN_OBJ_FORMAT_INIT(format,format_nhits,format_offset,format_limit,format_hits_offset) do { \
         
     | 
| 
       50 
55 
     | 
    
         
             
              GRN_PTR_INIT(&(format)->columns, GRN_OBJ_VECTOR, GRN_ID_NIL);\
         
     | 
| 
       51 
56 
     | 
    
         
             
              (format)->nhits = (format_nhits);\
         
     | 
| 
         @@ -18,10 +18,10 @@ 
     | 
|
| 
       18 
18 
     | 
    
         | 
| 
       19 
19 
     | 
    
         
             
            #pragma once
         
     | 
| 
       20 
20 
     | 
    
         | 
| 
       21 
     | 
    
         
            -
            #define GRN_VERSION "9.0. 
     | 
| 
      
 21 
     | 
    
         
            +
            #define GRN_VERSION "9.0.6"
         
     | 
| 
       22 
22 
     | 
    
         
             
            #define GRN_VERSION_MAJOR 9
         
     | 
| 
       23 
23 
     | 
    
         
             
            #define GRN_VERSION_MINOR 0
         
     | 
| 
       24 
     | 
    
         
            -
            #define GRN_VERSION_MICRO  
     | 
| 
      
 24 
     | 
    
         
            +
            #define GRN_VERSION_MICRO 6
         
     | 
| 
       25 
25 
     | 
    
         | 
| 
       26 
26 
     | 
    
         
             
            #define GRN_VERSION_OR_LATER(major, minor, micro)       \
         
     | 
| 
       27 
27 
     | 
    
         
             
              (GRN_VERSION_MAJOR > (major) ||                       \
         
     | 
| 
         @@ -0,0 +1,271 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            // Tencent is pleased to support the open source community by making RapidJSON available.
         
     | 
| 
      
 2 
     | 
    
         
            +
            // 
         
     | 
| 
      
 3 
     | 
    
         
            +
            // Copyright (C) 2015 THL A29 Limited, a Tencent company, and Milo Yip. All rights reserved.
         
     | 
| 
      
 4 
     | 
    
         
            +
            //
         
     | 
| 
      
 5 
     | 
    
         
            +
            // Licensed under the MIT License (the "License"); you may not use this file except
         
     | 
| 
      
 6 
     | 
    
         
            +
            // in compliance with the License. You may obtain a copy of the License at
         
     | 
| 
      
 7 
     | 
    
         
            +
            //
         
     | 
| 
      
 8 
     | 
    
         
            +
            // http://opensource.org/licenses/MIT
         
     | 
| 
      
 9 
     | 
    
         
            +
            //
         
     | 
| 
      
 10 
     | 
    
         
            +
            // Unless required by applicable law or agreed to in writing, software distributed 
         
     | 
| 
      
 11 
     | 
    
         
            +
            // under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 
         
     | 
| 
      
 12 
     | 
    
         
            +
            // CONDITIONS OF ANY KIND, either express or implied. See the License for the 
         
     | 
| 
      
 13 
     | 
    
         
            +
            // specific language governing permissions and limitations under the License.
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
      
 15 
     | 
    
         
            +
            #ifndef RAPIDJSON_ALLOCATORS_H_
         
     | 
| 
      
 16 
     | 
    
         
            +
            #define RAPIDJSON_ALLOCATORS_H_
         
     | 
| 
      
 17 
     | 
    
         
            +
             
     | 
| 
      
 18 
     | 
    
         
            +
            #include "rapidjson.h"
         
     | 
| 
      
 19 
     | 
    
         
            +
             
     | 
| 
      
 20 
     | 
    
         
            +
            RAPIDJSON_NAMESPACE_BEGIN
         
     | 
| 
      
 21 
     | 
    
         
            +
             
     | 
| 
      
 22 
     | 
    
         
            +
            ///////////////////////////////////////////////////////////////////////////////
         
     | 
| 
      
 23 
     | 
    
         
            +
            // Allocator
         
     | 
| 
      
 24 
     | 
    
         
            +
             
     | 
| 
      
 25 
     | 
    
         
            +
            /*! \class rapidjson::Allocator
         
     | 
| 
      
 26 
     | 
    
         
            +
                \brief Concept for allocating, resizing and freeing memory block.
         
     | 
| 
      
 27 
     | 
    
         
            +
                
         
     | 
| 
      
 28 
     | 
    
         
            +
                Note that Malloc() and Realloc() are non-static but Free() is static.
         
     | 
| 
      
 29 
     | 
    
         
            +
                
         
     | 
| 
      
 30 
     | 
    
         
            +
                So if an allocator need to support Free(), it needs to put its pointer in 
         
     | 
| 
      
 31 
     | 
    
         
            +
                the header of memory block.
         
     | 
| 
      
 32 
     | 
    
         
            +
             
     | 
| 
      
 33 
     | 
    
         
            +
            \code
         
     | 
| 
      
 34 
     | 
    
         
            +
            concept Allocator {
         
     | 
| 
      
 35 
     | 
    
         
            +
                static const bool kNeedFree;    //!< Whether this allocator needs to call Free().
         
     | 
| 
      
 36 
     | 
    
         
            +
             
     | 
| 
      
 37 
     | 
    
         
            +
                // Allocate a memory block.
         
     | 
| 
      
 38 
     | 
    
         
            +
                // \param size of the memory block in bytes.
         
     | 
| 
      
 39 
     | 
    
         
            +
                // \returns pointer to the memory block.
         
     | 
| 
      
 40 
     | 
    
         
            +
                void* Malloc(size_t size);
         
     | 
| 
      
 41 
     | 
    
         
            +
             
     | 
| 
      
 42 
     | 
    
         
            +
                // Resize a memory block.
         
     | 
| 
      
 43 
     | 
    
         
            +
                // \param originalPtr The pointer to current memory block. Null pointer is permitted.
         
     | 
| 
      
 44 
     | 
    
         
            +
                // \param originalSize The current size in bytes. (Design issue: since some allocator may not book-keep this, explicitly pass to it can save memory.)
         
     | 
| 
      
 45 
     | 
    
         
            +
                // \param newSize the new size in bytes.
         
     | 
| 
      
 46 
     | 
    
         
            +
                void* Realloc(void* originalPtr, size_t originalSize, size_t newSize);
         
     | 
| 
      
 47 
     | 
    
         
            +
             
     | 
| 
      
 48 
     | 
    
         
            +
                // Free a memory block.
         
     | 
| 
      
 49 
     | 
    
         
            +
                // \param pointer to the memory block. Null pointer is permitted.
         
     | 
| 
      
 50 
     | 
    
         
            +
                static void Free(void *ptr);
         
     | 
| 
      
 51 
     | 
    
         
            +
            };
         
     | 
| 
      
 52 
     | 
    
         
            +
            \endcode
         
     | 
| 
      
 53 
     | 
    
         
            +
            */
         
     | 
| 
      
 54 
     | 
    
         
            +
             
     | 
| 
      
 55 
     | 
    
         
            +
            ///////////////////////////////////////////////////////////////////////////////
         
     | 
| 
      
 56 
     | 
    
         
            +
            // CrtAllocator
         
     | 
| 
      
 57 
     | 
    
         
            +
             
     | 
| 
      
 58 
     | 
    
         
            +
            //! C-runtime library allocator.
         
     | 
| 
      
 59 
     | 
    
         
            +
            /*! This class is just wrapper for standard C library memory routines.
         
     | 
| 
      
 60 
     | 
    
         
            +
                \note implements Allocator concept
         
     | 
| 
      
 61 
     | 
    
         
            +
            */
         
     | 
| 
      
 62 
     | 
    
         
            +
            class CrtAllocator {
         
     | 
| 
      
 63 
     | 
    
         
            +
            public:
         
     | 
| 
      
 64 
     | 
    
         
            +
                static const bool kNeedFree = true;
         
     | 
| 
      
 65 
     | 
    
         
            +
                void* Malloc(size_t size) { 
         
     | 
| 
      
 66 
     | 
    
         
            +
                    if (size) //  behavior of malloc(0) is implementation defined.
         
     | 
| 
      
 67 
     | 
    
         
            +
                        return std::malloc(size);
         
     | 
| 
      
 68 
     | 
    
         
            +
                    else
         
     | 
| 
      
 69 
     | 
    
         
            +
                        return NULL; // standardize to returning NULL.
         
     | 
| 
      
 70 
     | 
    
         
            +
                }
         
     | 
| 
      
 71 
     | 
    
         
            +
                void* Realloc(void* originalPtr, size_t originalSize, size_t newSize) {
         
     | 
| 
      
 72 
     | 
    
         
            +
                    (void)originalSize;
         
     | 
| 
      
 73 
     | 
    
         
            +
                    if (newSize == 0) {
         
     | 
| 
      
 74 
     | 
    
         
            +
                        std::free(originalPtr);
         
     | 
| 
      
 75 
     | 
    
         
            +
                        return NULL;
         
     | 
| 
      
 76 
     | 
    
         
            +
                    }
         
     | 
| 
      
 77 
     | 
    
         
            +
                    return std::realloc(originalPtr, newSize);
         
     | 
| 
      
 78 
     | 
    
         
            +
                }
         
     | 
| 
      
 79 
     | 
    
         
            +
                static void Free(void *ptr) { std::free(ptr); }
         
     | 
| 
      
 80 
     | 
    
         
            +
            };
         
     | 
| 
      
 81 
     | 
    
         
            +
             
     | 
| 
      
 82 
     | 
    
         
            +
            ///////////////////////////////////////////////////////////////////////////////
         
     | 
| 
      
 83 
     | 
    
         
            +
            // MemoryPoolAllocator
         
     | 
| 
      
 84 
     | 
    
         
            +
             
     | 
| 
      
 85 
     | 
    
         
            +
            //! Default memory allocator used by the parser and DOM.
         
     | 
| 
      
 86 
     | 
    
         
            +
            /*! This allocator allocate memory blocks from pre-allocated memory chunks. 
         
     | 
| 
      
 87 
     | 
    
         
            +
             
     | 
| 
      
 88 
     | 
    
         
            +
                It does not free memory blocks. And Realloc() only allocate new memory.
         
     | 
| 
      
 89 
     | 
    
         
            +
             
     | 
| 
      
 90 
     | 
    
         
            +
                The memory chunks are allocated by BaseAllocator, which is CrtAllocator by default.
         
     | 
| 
      
 91 
     | 
    
         
            +
             
     | 
| 
      
 92 
     | 
    
         
            +
                User may also supply a buffer as the first chunk.
         
     | 
| 
      
 93 
     | 
    
         
            +
             
     | 
| 
      
 94 
     | 
    
         
            +
                If the user-buffer is full then additional chunks are allocated by BaseAllocator.
         
     | 
| 
      
 95 
     | 
    
         
            +
             
     | 
| 
      
 96 
     | 
    
         
            +
                The user-buffer is not deallocated by this allocator.
         
     | 
| 
      
 97 
     | 
    
         
            +
             
     | 
| 
      
 98 
     | 
    
         
            +
                \tparam BaseAllocator the allocator type for allocating memory chunks. Default is CrtAllocator.
         
     | 
| 
      
 99 
     | 
    
         
            +
                \note implements Allocator concept
         
     | 
| 
      
 100 
     | 
    
         
            +
            */
         
     | 
| 
      
 101 
     | 
    
         
            +
            template <typename BaseAllocator = CrtAllocator>
         
     | 
| 
      
 102 
     | 
    
         
            +
            class MemoryPoolAllocator {
         
     | 
| 
      
 103 
     | 
    
         
            +
            public:
         
     | 
| 
      
 104 
     | 
    
         
            +
                static const bool kNeedFree = false;    //!< Tell users that no need to call Free() with this allocator. (concept Allocator)
         
     | 
| 
      
 105 
     | 
    
         
            +
             
     | 
| 
      
 106 
     | 
    
         
            +
                //! Constructor with chunkSize.
         
     | 
| 
      
 107 
     | 
    
         
            +
                /*! \param chunkSize The size of memory chunk. The default is kDefaultChunkSize.
         
     | 
| 
      
 108 
     | 
    
         
            +
                    \param baseAllocator The allocator for allocating memory chunks.
         
     | 
| 
      
 109 
     | 
    
         
            +
                */
         
     | 
| 
      
 110 
     | 
    
         
            +
                MemoryPoolAllocator(size_t chunkSize = kDefaultChunkCapacity, BaseAllocator* baseAllocator = 0) : 
         
     | 
| 
      
 111 
     | 
    
         
            +
                    chunkHead_(0), chunk_capacity_(chunkSize), userBuffer_(0), baseAllocator_(baseAllocator), ownBaseAllocator_(0)
         
     | 
| 
      
 112 
     | 
    
         
            +
                {
         
     | 
| 
      
 113 
     | 
    
         
            +
                }
         
     | 
| 
      
 114 
     | 
    
         
            +
             
     | 
| 
      
 115 
     | 
    
         
            +
                //! Constructor with user-supplied buffer.
         
     | 
| 
      
 116 
     | 
    
         
            +
                /*! The user buffer will be used firstly. When it is full, memory pool allocates new chunk with chunk size.
         
     | 
| 
      
 117 
     | 
    
         
            +
             
     | 
| 
      
 118 
     | 
    
         
            +
                    The user buffer will not be deallocated when this allocator is destructed.
         
     | 
| 
      
 119 
     | 
    
         
            +
             
     | 
| 
      
 120 
     | 
    
         
            +
                    \param buffer User supplied buffer.
         
     | 
| 
      
 121 
     | 
    
         
            +
                    \param size Size of the buffer in bytes. It must at least larger than sizeof(ChunkHeader).
         
     | 
| 
      
 122 
     | 
    
         
            +
                    \param chunkSize The size of memory chunk. The default is kDefaultChunkSize.
         
     | 
| 
      
 123 
     | 
    
         
            +
                    \param baseAllocator The allocator for allocating memory chunks.
         
     | 
| 
      
 124 
     | 
    
         
            +
                */
         
     | 
| 
      
 125 
     | 
    
         
            +
                MemoryPoolAllocator(void *buffer, size_t size, size_t chunkSize = kDefaultChunkCapacity, BaseAllocator* baseAllocator = 0) :
         
     | 
| 
      
 126 
     | 
    
         
            +
                    chunkHead_(0), chunk_capacity_(chunkSize), userBuffer_(buffer), baseAllocator_(baseAllocator), ownBaseAllocator_(0)
         
     | 
| 
      
 127 
     | 
    
         
            +
                {
         
     | 
| 
      
 128 
     | 
    
         
            +
                    RAPIDJSON_ASSERT(buffer != 0);
         
     | 
| 
      
 129 
     | 
    
         
            +
                    RAPIDJSON_ASSERT(size > sizeof(ChunkHeader));
         
     | 
| 
      
 130 
     | 
    
         
            +
                    chunkHead_ = reinterpret_cast<ChunkHeader*>(buffer);
         
     | 
| 
      
 131 
     | 
    
         
            +
                    chunkHead_->capacity = size - sizeof(ChunkHeader);
         
     | 
| 
      
 132 
     | 
    
         
            +
                    chunkHead_->size = 0;
         
     | 
| 
      
 133 
     | 
    
         
            +
                    chunkHead_->next = 0;
         
     | 
| 
      
 134 
     | 
    
         
            +
                }
         
     | 
| 
      
 135 
     | 
    
         
            +
             
     | 
| 
      
 136 
     | 
    
         
            +
                //! Destructor.
         
     | 
| 
      
 137 
     | 
    
         
            +
                /*! This deallocates all memory chunks, excluding the user-supplied buffer.
         
     | 
| 
      
 138 
     | 
    
         
            +
                */
         
     | 
| 
      
 139 
     | 
    
         
            +
                ~MemoryPoolAllocator() {
         
     | 
| 
      
 140 
     | 
    
         
            +
                    Clear();
         
     | 
| 
      
 141 
     | 
    
         
            +
                    RAPIDJSON_DELETE(ownBaseAllocator_);
         
     | 
| 
      
 142 
     | 
    
         
            +
                }
         
     | 
| 
      
 143 
     | 
    
         
            +
             
     | 
| 
      
 144 
     | 
    
         
            +
                //! Deallocates all memory chunks, excluding the user-supplied buffer.
         
     | 
| 
      
 145 
     | 
    
         
            +
                void Clear() {
         
     | 
| 
      
 146 
     | 
    
         
            +
                    while (chunkHead_ && chunkHead_ != userBuffer_) {
         
     | 
| 
      
 147 
     | 
    
         
            +
                        ChunkHeader* next = chunkHead_->next;
         
     | 
| 
      
 148 
     | 
    
         
            +
                        baseAllocator_->Free(chunkHead_);
         
     | 
| 
      
 149 
     | 
    
         
            +
                        chunkHead_ = next;
         
     | 
| 
      
 150 
     | 
    
         
            +
                    }
         
     | 
| 
      
 151 
     | 
    
         
            +
                    if (chunkHead_ && chunkHead_ == userBuffer_)
         
     | 
| 
      
 152 
     | 
    
         
            +
                        chunkHead_->size = 0; // Clear user buffer
         
     | 
| 
      
 153 
     | 
    
         
            +
                }
         
     | 
| 
      
 154 
     | 
    
         
            +
             
     | 
| 
      
 155 
     | 
    
         
            +
                //! Computes the total capacity of allocated memory chunks.
         
     | 
| 
      
 156 
     | 
    
         
            +
                /*! \return total capacity in bytes.
         
     | 
| 
      
 157 
     | 
    
         
            +
                */
         
     | 
| 
      
 158 
     | 
    
         
            +
                size_t Capacity() const {
         
     | 
| 
      
 159 
     | 
    
         
            +
                    size_t capacity = 0;
         
     | 
| 
      
 160 
     | 
    
         
            +
                    for (ChunkHeader* c = chunkHead_; c != 0; c = c->next)
         
     | 
| 
      
 161 
     | 
    
         
            +
                        capacity += c->capacity;
         
     | 
| 
      
 162 
     | 
    
         
            +
                    return capacity;
         
     | 
| 
      
 163 
     | 
    
         
            +
                }
         
     | 
| 
      
 164 
     | 
    
         
            +
             
     | 
| 
      
 165 
     | 
    
         
            +
                //! Computes the memory blocks allocated.
         
     | 
| 
      
 166 
     | 
    
         
            +
                /*! \return total used bytes.
         
     | 
| 
      
 167 
     | 
    
         
            +
                */
         
     | 
| 
      
 168 
     | 
    
         
            +
                size_t Size() const {
         
     | 
| 
      
 169 
     | 
    
         
            +
                    size_t size = 0;
         
     | 
| 
      
 170 
     | 
    
         
            +
                    for (ChunkHeader* c = chunkHead_; c != 0; c = c->next)
         
     | 
| 
      
 171 
     | 
    
         
            +
                        size += c->size;
         
     | 
| 
      
 172 
     | 
    
         
            +
                    return size;
         
     | 
| 
      
 173 
     | 
    
         
            +
                }
         
     | 
| 
      
 174 
     | 
    
         
            +
             
     | 
| 
      
 175 
     | 
    
         
            +
                //! Allocates a memory block. (concept Allocator)
         
     | 
| 
      
 176 
     | 
    
         
            +
                void* Malloc(size_t size) {
         
     | 
| 
      
 177 
     | 
    
         
            +
                    if (!size)
         
     | 
| 
      
 178 
     | 
    
         
            +
                        return NULL;
         
     | 
| 
      
 179 
     | 
    
         
            +
             
     | 
| 
      
 180 
     | 
    
         
            +
                    size = RAPIDJSON_ALIGN(size);
         
     | 
| 
      
 181 
     | 
    
         
            +
                    if (chunkHead_ == 0 || chunkHead_->size + size > chunkHead_->capacity)
         
     | 
| 
      
 182 
     | 
    
         
            +
                        if (!AddChunk(chunk_capacity_ > size ? chunk_capacity_ : size))
         
     | 
| 
      
 183 
     | 
    
         
            +
                            return NULL;
         
     | 
| 
      
 184 
     | 
    
         
            +
             
     | 
| 
      
 185 
     | 
    
         
            +
                    void *buffer = reinterpret_cast<char *>(chunkHead_) + RAPIDJSON_ALIGN(sizeof(ChunkHeader)) + chunkHead_->size;
         
     | 
| 
      
 186 
     | 
    
         
            +
                    chunkHead_->size += size;
         
     | 
| 
      
 187 
     | 
    
         
            +
                    return buffer;
         
     | 
| 
      
 188 
     | 
    
         
            +
                }
         
     | 
| 
      
 189 
     | 
    
         
            +
             
     | 
| 
      
 190 
     | 
    
         
            +
                //! Resizes a memory block (concept Allocator)
         
     | 
| 
      
 191 
     | 
    
         
            +
                void* Realloc(void* originalPtr, size_t originalSize, size_t newSize) {
         
     | 
| 
      
 192 
     | 
    
         
            +
                    if (originalPtr == 0)
         
     | 
| 
      
 193 
     | 
    
         
            +
                        return Malloc(newSize);
         
     | 
| 
      
 194 
     | 
    
         
            +
             
     | 
| 
      
 195 
     | 
    
         
            +
                    if (newSize == 0)
         
     | 
| 
      
 196 
     | 
    
         
            +
                        return NULL;
         
     | 
| 
      
 197 
     | 
    
         
            +
             
     | 
| 
      
 198 
     | 
    
         
            +
                    originalSize = RAPIDJSON_ALIGN(originalSize);
         
     | 
| 
      
 199 
     | 
    
         
            +
                    newSize = RAPIDJSON_ALIGN(newSize);
         
     | 
| 
      
 200 
     | 
    
         
            +
             
     | 
| 
      
 201 
     | 
    
         
            +
                    // Do not shrink if new size is smaller than original
         
     | 
| 
      
 202 
     | 
    
         
            +
                    if (originalSize >= newSize)
         
     | 
| 
      
 203 
     | 
    
         
            +
                        return originalPtr;
         
     | 
| 
      
 204 
     | 
    
         
            +
             
     | 
| 
      
 205 
     | 
    
         
            +
                    // Simply expand it if it is the last allocation and there is sufficient space
         
     | 
| 
      
 206 
     | 
    
         
            +
                    if (originalPtr == reinterpret_cast<char *>(chunkHead_) + RAPIDJSON_ALIGN(sizeof(ChunkHeader)) + chunkHead_->size - originalSize) {
         
     | 
| 
      
 207 
     | 
    
         
            +
                        size_t increment = static_cast<size_t>(newSize - originalSize);
         
     | 
| 
      
 208 
     | 
    
         
            +
                        if (chunkHead_->size + increment <= chunkHead_->capacity) {
         
     | 
| 
      
 209 
     | 
    
         
            +
                            chunkHead_->size += increment;
         
     | 
| 
      
 210 
     | 
    
         
            +
                            return originalPtr;
         
     | 
| 
      
 211 
     | 
    
         
            +
                        }
         
     | 
| 
      
 212 
     | 
    
         
            +
                    }
         
     | 
| 
      
 213 
     | 
    
         
            +
             
     | 
| 
      
 214 
     | 
    
         
            +
                    // Realloc process: allocate and copy memory, do not free original buffer.
         
     | 
| 
      
 215 
     | 
    
         
            +
                    if (void* newBuffer = Malloc(newSize)) {
         
     | 
| 
      
 216 
     | 
    
         
            +
                        if (originalSize)
         
     | 
| 
      
 217 
     | 
    
         
            +
                            std::memcpy(newBuffer, originalPtr, originalSize);
         
     | 
| 
      
 218 
     | 
    
         
            +
                        return newBuffer;
         
     | 
| 
      
 219 
     | 
    
         
            +
                    }
         
     | 
| 
      
 220 
     | 
    
         
            +
                    else
         
     | 
| 
      
 221 
     | 
    
         
            +
                        return NULL;
         
     | 
| 
      
 222 
     | 
    
         
            +
                }
         
     | 
| 
      
 223 
     | 
    
         
            +
             
     | 
| 
      
 224 
     | 
    
         
            +
                //! Frees a memory block (concept Allocator)
         
     | 
| 
      
 225 
     | 
    
         
            +
                static void Free(void *ptr) { (void)ptr; } // Do nothing
         
     | 
| 
      
 226 
     | 
    
         
            +
             
     | 
| 
      
 227 
     | 
    
         
            +
            private:
         
     | 
| 
      
 228 
     | 
    
         
            +
                //! Copy constructor is not permitted.
         
     | 
| 
      
 229 
     | 
    
         
            +
                MemoryPoolAllocator(const MemoryPoolAllocator& rhs) /* = delete */;
         
     | 
| 
      
 230 
     | 
    
         
            +
                //! Copy assignment operator is not permitted.
         
     | 
| 
      
 231 
     | 
    
         
            +
                MemoryPoolAllocator& operator=(const MemoryPoolAllocator& rhs) /* = delete */;
         
     | 
| 
      
 232 
     | 
    
         
            +
             
     | 
| 
      
 233 
     | 
    
         
            +
                //! Creates a new chunk.
         
     | 
| 
      
 234 
     | 
    
         
            +
                /*! \param capacity Capacity of the chunk in bytes.
         
     | 
| 
      
 235 
     | 
    
         
            +
                    \return true if success.
         
     | 
| 
      
 236 
     | 
    
         
            +
                */
         
     | 
| 
      
 237 
     | 
    
         
            +
                bool AddChunk(size_t capacity) {
         
     | 
| 
      
 238 
     | 
    
         
            +
                    if (!baseAllocator_)
         
     | 
| 
      
 239 
     | 
    
         
            +
                        ownBaseAllocator_ = baseAllocator_ = RAPIDJSON_NEW(BaseAllocator());
         
     | 
| 
      
 240 
     | 
    
         
            +
                    if (ChunkHeader* chunk = reinterpret_cast<ChunkHeader*>(baseAllocator_->Malloc(RAPIDJSON_ALIGN(sizeof(ChunkHeader)) + capacity))) {
         
     | 
| 
      
 241 
     | 
    
         
            +
                        chunk->capacity = capacity;
         
     | 
| 
      
 242 
     | 
    
         
            +
                        chunk->size = 0;
         
     | 
| 
      
 243 
     | 
    
         
            +
                        chunk->next = chunkHead_;
         
     | 
| 
      
 244 
     | 
    
         
            +
                        chunkHead_ =  chunk;
         
     | 
| 
      
 245 
     | 
    
         
            +
                        return true;
         
     | 
| 
      
 246 
     | 
    
         
            +
                    }
         
     | 
| 
      
 247 
     | 
    
         
            +
                    else
         
     | 
| 
      
 248 
     | 
    
         
            +
                        return false;
         
     | 
| 
      
 249 
     | 
    
         
            +
                }
         
     | 
| 
      
 250 
     | 
    
         
            +
             
     | 
| 
      
 251 
     | 
    
         
            +
                static const int kDefaultChunkCapacity = 64 * 1024; //!< Default chunk capacity.
         
     | 
| 
      
 252 
     | 
    
         
            +
             
     | 
| 
      
 253 
     | 
    
         
            +
                //! Chunk header for perpending to each chunk.
         
     | 
| 
      
 254 
     | 
    
         
            +
                /*! Chunks are stored as a singly linked list.
         
     | 
| 
      
 255 
     | 
    
         
            +
                */
         
     | 
| 
      
 256 
     | 
    
         
            +
                struct ChunkHeader {
         
     | 
| 
      
 257 
     | 
    
         
            +
                    size_t capacity;    //!< Capacity of the chunk in bytes (excluding the header itself).
         
     | 
| 
      
 258 
     | 
    
         
            +
                    size_t size;        //!< Current size of allocated memory in bytes.
         
     | 
| 
      
 259 
     | 
    
         
            +
                    ChunkHeader *next;  //!< Next chunk in the linked list.
         
     | 
| 
      
 260 
     | 
    
         
            +
                };
         
     | 
| 
      
 261 
     | 
    
         
            +
             
     | 
| 
      
 262 
     | 
    
         
            +
                ChunkHeader *chunkHead_;    //!< Head of the chunk linked-list. Only the head chunk serves allocation.
         
     | 
| 
      
 263 
     | 
    
         
            +
                size_t chunk_capacity_;     //!< The minimum capacity of chunk when they are allocated.
         
     | 
| 
      
 264 
     | 
    
         
            +
                void *userBuffer_;          //!< User supplied buffer.
         
     | 
| 
      
 265 
     | 
    
         
            +
                BaseAllocator* baseAllocator_;  //!< base allocator for allocating memory chunks.
         
     | 
| 
      
 266 
     | 
    
         
            +
                BaseAllocator* ownBaseAllocator_;   //!< base allocator created by this object.
         
     | 
| 
      
 267 
     | 
    
         
            +
            };
         
     | 
| 
      
 268 
     | 
    
         
            +
             
     | 
| 
      
 269 
     | 
    
         
            +
            RAPIDJSON_NAMESPACE_END
         
     | 
| 
      
 270 
     | 
    
         
            +
             
     | 
| 
      
 271 
     | 
    
         
            +
            #endif // RAPIDJSON_ENCODINGS_H_
         
     |