rroonga 5.0.4-x86-mingw32 → 5.0.5-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
 - data/README.md +2 -2
 - data/example/measure-data-column-disk-usage.rb +124 -0
 - data/example/measure-index-column-disk-usage.rb +81 -0
 - data/example/measure-table-disk-usage.rb +100 -0
 - data/ext/groonga/rb-grn-database.c +31 -0
 - data/ext/groonga/rb-grn-double-array-trie.c +1 -8
 - data/ext/groonga/rb-grn-logger.c +45 -0
 - data/ext/groonga/rb-grn-object.c +29 -1
 - data/ext/groonga/rb-grn-patricia-trie.c +1 -8
 - data/ext/groonga/rb-grn-table-cursor.c +8 -3
 - data/ext/groonga/rb-grn-table.c +10 -5
 - data/ext/groonga/rb-grn-thread.c +160 -0
 - data/ext/groonga/rb-grn-windows-event-logger.c +79 -0
 - data/ext/groonga/rb-grn.h +3 -1
 - data/ext/groonga/rb-groonga.c +3 -1
 - data/lib/1.9/groonga.so +0 -0
 - data/lib/2.0/groonga.so +0 -0
 - data/lib/2.1/groonga.so +0 -0
 - data/lib/2.2/groonga.so +0 -0
 - data/lib/groonga/dumper.rb +6 -1
 - data/rroonga-build.rb +4 -4
 - data/test/groonga-test-utils.rb +5 -1
 - data/test/test-database.rb +11 -0
 - data/test/test-logger.rb +6 -0
 - data/test/test-operator.rb +6 -6
 - data/test/test-procedure.rb +15 -0
 - data/test/test-table-dumper.rb +170 -1
 - data/test/test-thread.rb +42 -0
 - data/test/test-windows-event-logger.rb +28 -0
 - data/vendor/local/bin/grndb.exe +0 -0
 - data/vendor/local/bin/groonga-benchmark.exe +0 -0
 - data/vendor/local/bin/groonga.exe +0 -0
 - data/vendor/local/bin/libgcc_s_sjlj-1.dll +0 -0
 - data/vendor/local/bin/libgroonga-0.dll +0 -0
 - data/vendor/local/bin/libmecab-1.dll +0 -0
 - data/vendor/local/bin/libmsgpack-4.dll +0 -0
 - data/vendor/local/bin/libmsgpackc-2.dll +0 -0
 - data/vendor/local/bin/libonig-5.dll +0 -0
 - data/vendor/local/bin/libstdc++-6.dll +0 -0
 - data/vendor/local/bin/libwinpthread-1.dll +0 -0
 - data/vendor/local/bin/lz4.exe +0 -0
 - data/vendor/local/bin/lz4c.exe +0 -0
 - data/vendor/local/bin/lz4cat +0 -0
 - data/vendor/local/bin/mecab-config +2 -2
 - data/vendor/local/bin/mecab.exe +0 -0
 - data/vendor/local/bin/onig-config +1 -1
 - data/vendor/local/bin/zlib1.dll +0 -0
 - data/vendor/local/etc/groonga/httpd/groonga-httpd.conf +2 -2
 - data/vendor/local/etc/groonga/windows_event_log/provider.man +38 -0
 - data/vendor/local/include/groonga/groonga.h +2 -0
 - data/vendor/local/include/groonga/groonga/command.h +2 -0
 - data/vendor/local/include/groonga/groonga/groonga.h +5 -0
 - data/vendor/local/include/groonga/groonga/obj.h +1 -0
 - data/vendor/local/include/groonga/groonga/portability.h +16 -0
 - data/vendor/local/include/groonga/groonga/thread.h +42 -0
 - data/vendor/local/include/groonga/groonga/windows_event_logger.h +33 -0
 - data/vendor/local/lib/groonga/plugins/functions/vector.a +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/vector.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/vector.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/vector.la +2 -2
 - data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
 - data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/query_expanders/tsv.la +2 -2
 - data/vendor/local/lib/groonga/plugins/ruby/eval.a +0 -0
 - data/vendor/local/lib/groonga/plugins/ruby/eval.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/ruby/eval.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/ruby/eval.la +2 -2
 - data/vendor/local/lib/groonga/plugins/ruby/load.a +0 -0
 - data/vendor/local/lib/groonga/plugins/ruby/load.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/ruby/load.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/ruby/load.la +2 -2
 - data/vendor/local/lib/groonga/plugins/sharding.rb +5 -0
 - data/vendor/local/lib/groonga/plugins/sharding/logical_count.rb +43 -6
 - data/vendor/local/lib/groonga/plugins/sharding/logical_enumerator.rb +32 -25
 - data/vendor/local/lib/groonga/plugins/sharding/logical_parameters.rb +44 -0
 - data/vendor/local/lib/groonga/plugins/sharding/logical_range_filter.rb +217 -49
 - data/vendor/local/lib/groonga/plugins/sharding/logical_select.rb +507 -45
 - data/vendor/local/lib/groonga/plugins/sharding/logical_shard_list.rb +28 -0
 - data/vendor/local/lib/groonga/plugins/sharding/logical_table_remove.rb +11 -6
 - data/vendor/local/lib/groonga/plugins/sharding/parameters.rb +10 -0
 - data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
 - data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/suggest/suggest.la +2 -2
 - data/vendor/local/lib/groonga/plugins/table/table.a +0 -0
 - data/vendor/local/lib/groonga/plugins/table/table.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/table/table.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/table/table.la +2 -2
 - data/vendor/local/lib/groonga/plugins/token_filters/stop_word.a +0 -0
 - data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/token_filters/stop_word.la +2 -2
 - data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
 - data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/tokenizers/mecab.la +2 -2
 - data/vendor/local/lib/groonga/scripts/ruby/command.rb +31 -1
 - data/vendor/local/lib/groonga/scripts/ruby/context.rb +18 -2
 - data/vendor/local/lib/groonga/scripts/ruby/database.rb +12 -4
 - data/vendor/local/lib/groonga/scripts/ruby/expression_size_estimator.rb +31 -28
 - data/vendor/local/lib/groonga/scripts/ruby/initialize/post.rb +1 -0
 - data/vendor/local/lib/groonga/scripts/ruby/logger/level.rb +4 -2
 - data/vendor/local/lib/groonga/scripts/ruby/query_logger.rb +9 -0
 - data/vendor/local/lib/groonga/scripts/ruby/query_logger/flag.rb +39 -0
 - data/vendor/local/lib/groonga/scripts/ruby/record.rb +12 -0
 - data/vendor/local/lib/groonga/scripts/ruby/table.rb +35 -1
 - data/vendor/local/lib/libgroonga.a +0 -0
 - data/vendor/local/lib/libgroonga.dll.a +0 -0
 - data/vendor/local/lib/libgroonga.la +2 -2
 - data/vendor/local/lib/liblz4.dll +0 -0
 - data/vendor/local/lib/liblz4.dll.1 +0 -0
 - data/vendor/local/lib/liblz4.dll.1.5.0 +0 -0
 - data/vendor/local/lib/libmecab.a +0 -0
 - data/vendor/local/lib/libmecab.dll.a +0 -0
 - data/vendor/local/lib/libmecab.la +2 -2
 - data/vendor/local/lib/libmsgpack.a +0 -0
 - data/vendor/local/lib/libmsgpack.dll.a +0 -0
 - data/vendor/local/lib/libmsgpack.la +2 -2
 - data/vendor/local/lib/libmsgpackc.a +0 -0
 - data/vendor/local/lib/libmsgpackc.dll.a +0 -0
 - data/vendor/local/lib/libmsgpackc.la +2 -2
 - data/vendor/local/lib/libonig.a +0 -0
 - data/vendor/local/lib/libonig.dll.a +0 -0
 - data/vendor/local/lib/libonig.la +2 -2
 - data/vendor/local/lib/libz.a +0 -0
 - data/vendor/local/lib/libz.dll.a +0 -0
 - data/vendor/local/lib/pkgconfig/groonga.pc +3 -3
 - data/vendor/local/lib/pkgconfig/liblz4.pc +5 -5
 - data/vendor/local/lib/pkgconfig/msgpack.pc +1 -1
 - data/vendor/local/lib/pkgconfig/oniguruma.pc +6 -6
 - data/vendor/local/lib/pkgconfig/zlib.pc +3 -3
 - data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
 - data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
 - data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
 - data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
 - data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
 - data/vendor/local/sbin/groonga-httpd-restart +1 -1
 - data/vendor/local/sbin/groonga-httpd.exe +0 -0
 - data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development.txt +3 -2
 - data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/build.txt +19 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/build/unix_autotools.txt +101 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/build/unix_cmake.txt +94 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/build/windows_cmake.txt +93 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/release.txt +16 -7
 - data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/repository.txt +7 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/test.txt +4 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +3 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +4 -4
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +3 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +3 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +4 -4
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +3 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +3 -4
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +9 -9
 - data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +319 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference.txt +1 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/api/grn_ctx.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/api/grn_db.txt +23 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/api/grn_thread.txt +122 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/cache_limit.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/column_copy.txt +381 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/column_list.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/column_rename.txt +3 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/database_unmap.txt +85 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/io_flush.txt +218 -9
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/lock_clear.txt +1 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/log_level.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_count.txt +3 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_parameters.txt +138 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_range_filter.txt +97 -10
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_select.txt +745 -23
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_shard_list.txt +107 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_table_remove.txt +3 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/normalize.txt +2 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/normalizer_list.txt +1 -2
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/object_exist.txt +90 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/plugin_register.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/plugin_unregister.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/register.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/request_cancel.txt +1 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/ruby_eval.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/ruby_load.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/select.txt +240 -56
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_create.txt +33 -7
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_rename.txt +90 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_tokenize.txt +2 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/thread_limit.txt +110 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/tokenize.txt +2 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/tokenizer_list.txt +1 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/truncate.txt +1 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-httpd.txt +3 -4
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/highlight_full.txt +0 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/highlight_html.txt +0 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/query.txt +2 -2
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/snippet_html.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/grn_expr/query_syntax.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/grn_expr/script_syntax.txt +34 -14
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/indexing.txt +2 -2
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/query_expanders/tsv.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/regular_expression.txt +3 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/scoring_note.txt +2 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/sharding.txt +108 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/tokenizers.txt +0 -21
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/tuning.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/spec/search.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/troubleshooting/different_results_with_the_same_keyword.txt +4 -4
 - data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/introduction.txt +24 -18
 - data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/match_columns.txt +19 -19
 - data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/micro_blog.txt +9 -9
 - data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/query_expansion.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_static/basic.css +68 -6
 - data/vendor/local/share/doc/groonga/en/html/_static/doctools.js +27 -2
 - data/vendor/local/share/doc/groonga/en/html/_static/down-pressed.png +0 -0
 - data/vendor/local/share/doc/groonga/en/html/_static/down.png +0 -0
 - data/vendor/local/share/doc/groonga/en/html/_static/file.png +0 -0
 - data/vendor/local/share/doc/groonga/en/html/_static/jquery-1.11.1.js +10308 -0
 - data/vendor/local/share/doc/groonga/en/html/_static/jquery.js +4 -9404
 - data/vendor/local/share/doc/groonga/en/html/_static/minus.png +0 -0
 - data/vendor/local/share/doc/groonga/en/html/_static/plus.png +0 -0
 - data/vendor/local/share/doc/groonga/en/html/_static/searchtools.js +2 -2
 - data/vendor/local/share/doc/groonga/en/html/_static/underscore-1.3.1.js +999 -0
 - data/vendor/local/share/doc/groonga/en/html/_static/underscore.js +31 -1415
 - data/vendor/local/share/doc/groonga/en/html/_static/up-pressed.png +0 -0
 - data/vendor/local/share/doc/groonga/en/html/_static/up.png +0 -0
 - data/vendor/local/share/doc/groonga/en/html/_static/websupport.js +15 -15
 - data/vendor/local/share/doc/groonga/en/html/characteristic.html +19 -17
 - data/vendor/local/share/doc/groonga/en/html/client.html +19 -17
 - data/vendor/local/share/doc/groonga/en/html/community.html +19 -17
 - data/vendor/local/share/doc/groonga/en/html/contribution.html +78 -70
 - data/vendor/local/share/doc/groonga/en/html/contribution/development.html +30 -27
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/build.html +146 -0
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_autotools.html +237 -0
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_cmake.html +227 -0
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/build/windows_cmake.html +231 -0
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +37 -35
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +54 -52
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +80 -78
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +135 -122
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +38 -34
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +58 -54
 - data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +21 -19
 - data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +27 -25
 - data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +23 -21
 - data/vendor/local/share/doc/groonga/en/html/contribution/documentation/introduction.html +30 -28
 - data/vendor/local/share/doc/groonga/en/html/contribution/report.html +21 -19
 - data/vendor/local/share/doc/groonga/en/html/development.html +19 -17
 - data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +30 -28
 - data/vendor/local/share/doc/groonga/en/html/genindex.html +48 -20
 - data/vendor/local/share/doc/groonga/en/html/index.html +123 -105
 - data/vendor/local/share/doc/groonga/en/html/install.html +33 -31
 - data/vendor/local/share/doc/groonga/en/html/install/centos.html +32 -30
 - data/vendor/local/share/doc/groonga/en/html/install/debian.html +31 -29
 - data/vendor/local/share/doc/groonga/en/html/install/fedora.html +29 -27
 - data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +26 -24
 - data/vendor/local/share/doc/groonga/en/html/install/others.html +92 -90
 - data/vendor/local/share/doc/groonga/en/html/install/solaris.html +26 -24
 - data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +29 -28
 - data/vendor/local/share/doc/groonga/en/html/install/windows.html +34 -32
 - data/vendor/local/share/doc/groonga/en/html/limitations.html +19 -17
 - data/vendor/local/share/doc/groonga/en/html/news.html +509 -142
 - data/vendor/local/share/doc/groonga/en/html/news/0.x.html +19 -17
 - data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +20 -18
 - data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +19 -17
 - data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +34 -32
 - data/vendor/local/share/doc/groonga/en/html/news/1.3.x.html +29 -27
 - data/vendor/local/share/doc/groonga/en/html/news/2.x.html +110 -108
 - data/vendor/local/share/doc/groonga/en/html/news/3.x.html +73 -71
 - data/vendor/local/share/doc/groonga/en/html/news/4.x.html +111 -109
 - data/vendor/local/share/doc/groonga/en/html/news/senna.html +19 -17
 - data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
 - data/vendor/local/share/doc/groonga/en/html/reference.html +111 -94
 - data/vendor/local/share/doc/groonga/en/html/reference/api.html +55 -52
 - data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +51 -49
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +63 -61
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +84 -82
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +46 -44
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_content_type.html +41 -39
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +89 -87
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +88 -50
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +48 -46
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +83 -81
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +46 -44
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +48 -46
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +46 -44
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +45 -43
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +45 -43
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +44 -42
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +93 -91
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +48 -46
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +43 -41
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +79 -77
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +69 -67
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_thread.html +296 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +45 -43
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +38 -36
 - data/vendor/local/share/doc/groonga/en/html/reference/api/overview.html +51 -49
 - data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +60 -58
 - data/vendor/local/share/doc/groonga/en/html/reference/cast.html +19 -17
 - data/vendor/local/share/doc/groonga/en/html/reference/column.html +21 -19
 - data/vendor/local/share/doc/groonga/en/html/reference/columns/index.html +23 -21
 - data/vendor/local/share/doc/groonga/en/html/reference/columns/pseudo.html +28 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/columns/scalar.html +23 -21
 - data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +72 -70
 - data/vendor/local/share/doc/groonga/en/html/reference/command.html +70 -61
 - data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +23 -21
 - data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +59 -57
 - data/vendor/local/share/doc/groonga/en/html/reference/command/request_id.html +28 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +100 -98
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +44 -42
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +49 -47
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +33 -31
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_copy.html +796 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +62 -60
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +96 -94
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +46 -44
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +67 -64
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/database_unmap.html +236 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +62 -60
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +46 -44
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +59 -57
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +63 -61
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/io_flush.html +281 -54
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +66 -64
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_clear.html +53 -52
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +48 -46
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +48 -46
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +48 -46
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_count.html +78 -75
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_parameters.html +283 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_range_filter.html +160 -85
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_select.html +2071 -83
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_shard_list.html +287 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_table_remove.html +71 -68
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +86 -84
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +52 -50
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/object_exist.html +227 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_register.html +57 -55
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_unregister.html +53 -51
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +43 -41
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/range_filter.html +43 -41
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +56 -54
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/request_cancel.html +75 -74
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +59 -57
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +59 -57
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +898 -647
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +43 -41
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +50 -48
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +87 -85
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +175 -152
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +55 -53
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +46 -44
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_rename.html +327 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_tokenize.html +77 -75
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/thread_limit.html +241 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +108 -106
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenizer_list.html +56 -51
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +56 -55
 - data/vendor/local/share/doc/groonga/en/html/reference/executables.html +24 -22
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/grndb.html +41 -39
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +28 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +33 -31
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +83 -81
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +29 -27
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +23 -21
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +48 -46
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +40 -38
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +84 -82
 - data/vendor/local/share/doc/groonga/en/html/reference/function.html +22 -20
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +47 -45
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +25 -23
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +85 -83
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +36 -34
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +26 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +66 -64
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +54 -52
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +35 -33
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/in_values.html +34 -32
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +23 -21
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +55 -53
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +24 -22
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +49 -47
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +45 -43
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_size.html +33 -31
 - data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +29 -27
 - data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +244 -242
 - data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +327 -325
 - data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +35 -29
 - data/vendor/local/share/doc/groonga/en/html/reference/log.html +43 -41
 - data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +49 -47
 - data/vendor/local/share/doc/groonga/en/html/reference/operations.html +21 -19
 - data/vendor/local/share/doc/groonga/en/html/reference/operations/geolocation_search.html +23 -21
 - data/vendor/local/share/doc/groonga/en/html/reference/output.html +36 -34
 - data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +21 -19
 - data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +62 -60
 - data/vendor/local/share/doc/groonga/en/html/reference/regular_expression.html +107 -103
 - data/vendor/local/share/doc/groonga/en/html/reference/scorer.html +50 -40
 - data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_at_most.html +27 -25
 - data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_idf.html +41 -31
 - data/vendor/local/share/doc/groonga/en/html/reference/scoring_note.html +19 -17
 - data/vendor/local/share/doc/groonga/en/html/reference/sharding.html +241 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest.html +21 -19
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest/completion.html +30 -28
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest/correction.html +23 -21
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest/introduction.html +23 -21
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest/suggestion.html +23 -21
 - data/vendor/local/share/doc/groonga/en/html/reference/tables.html +56 -54
 - data/vendor/local/share/doc/groonga/en/html/reference/token_filters.html +41 -39
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +341 -289
 - data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +68 -66
 - data/vendor/local/share/doc/groonga/en/html/reference/types.html +43 -41
 - data/vendor/local/share/doc/groonga/en/html/search.html +11 -11
 - data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
 - data/vendor/local/share/doc/groonga/en/html/server.html +19 -17
 - data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +22 -20
 - data/vendor/local/share/doc/groonga/en/html/server/http.html +21 -19
 - data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +37 -35
 - data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +23 -21
 - data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +23 -21
 - data/vendor/local/share/doc/groonga/en/html/server/memcached.html +21 -19
 - data/vendor/local/share/doc/groonga/en/html/server/package.html +39 -37
 - data/vendor/local/share/doc/groonga/en/html/spec.html +23 -21
 - data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +129 -127
 - data/vendor/local/share/doc/groonga/en/html/spec/search.html +22 -20
 - data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +19 -17
 - data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +25 -23
 - data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +22 -20
 - data/vendor/local/share/doc/groonga/en/html/tutorial.html +20 -18
 - data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +29 -23
 - data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +35 -33
 - data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +25 -23
 - data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +46 -39
 - data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +21 -19
 - data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +65 -63
 - data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +55 -53
 - data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +25 -23
 - data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +22 -20
 - data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +25 -23
 - data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +37 -35
 - data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development.txt +3 -2
 - data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/build.txt +19 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/build/unix_autotools.txt +101 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/build/unix_cmake.txt +94 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/build/windows_cmake.txt +93 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/release.txt +16 -7
 - data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/repository.txt +7 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/test.txt +4 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +4 -4
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +4 -4
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +3 -4
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +9 -9
 - data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +319 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference.txt +1 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api/grn_ctx.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api/grn_db.txt +23 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api/grn_thread.txt +122 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/cache_limit.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/column_copy.txt +381 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/column_list.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/column_rename.txt +3 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/database_unmap.txt +85 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/io_flush.txt +218 -9
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/lock_clear.txt +1 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/log_level.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_count.txt +3 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_parameters.txt +138 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_range_filter.txt +97 -10
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_select.txt +745 -23
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_shard_list.txt +107 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_table_remove.txt +3 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/normalize.txt +2 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/normalizer_list.txt +1 -2
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/object_exist.txt +90 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/plugin_register.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/plugin_unregister.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/register.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/request_cancel.txt +1 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/ruby_eval.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/ruby_load.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/select.txt +240 -56
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_create.txt +33 -7
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_rename.txt +90 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_tokenize.txt +2 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/thread_limit.txt +110 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/tokenize.txt +2 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/tokenizer_list.txt +1 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/truncate.txt +1 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-httpd.txt +3 -4
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/highlight_full.txt +0 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/highlight_html.txt +0 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/query.txt +2 -2
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/snippet_html.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/grn_expr/query_syntax.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/grn_expr/script_syntax.txt +34 -14
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/indexing.txt +2 -2
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/query_expanders/tsv.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/regular_expression.txt +3 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/scoring_note.txt +2 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/sharding.txt +108 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/tokenizers.txt +0 -21
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/tuning.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/spec/search.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/troubleshooting/different_results_with_the_same_keyword.txt +4 -4
 - data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/introduction.txt +24 -18
 - data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/match_columns.txt +19 -19
 - data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/micro_blog.txt +9 -9
 - data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/query_expansion.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_static/basic.css +68 -6
 - data/vendor/local/share/doc/groonga/ja/html/_static/doctools.js +27 -2
 - data/vendor/local/share/doc/groonga/ja/html/_static/down-pressed.png +0 -0
 - data/vendor/local/share/doc/groonga/ja/html/_static/down.png +0 -0
 - data/vendor/local/share/doc/groonga/ja/html/_static/file.png +0 -0
 - data/vendor/local/share/doc/groonga/ja/html/_static/jquery-1.11.1.js +10308 -0
 - data/vendor/local/share/doc/groonga/ja/html/_static/jquery.js +4 -9404
 - data/vendor/local/share/doc/groonga/ja/html/_static/minus.png +0 -0
 - data/vendor/local/share/doc/groonga/ja/html/_static/plus.png +0 -0
 - data/vendor/local/share/doc/groonga/ja/html/_static/searchtools.js +2 -2
 - data/vendor/local/share/doc/groonga/ja/html/_static/underscore-1.3.1.js +999 -0
 - data/vendor/local/share/doc/groonga/ja/html/_static/underscore.js +31 -1415
 - data/vendor/local/share/doc/groonga/ja/html/_static/up-pressed.png +0 -0
 - data/vendor/local/share/doc/groonga/ja/html/_static/up.png +0 -0
 - data/vendor/local/share/doc/groonga/ja/html/_static/websupport.js +15 -15
 - data/vendor/local/share/doc/groonga/ja/html/characteristic.html +19 -17
 - data/vendor/local/share/doc/groonga/ja/html/client.html +19 -17
 - data/vendor/local/share/doc/groonga/ja/html/community.html +19 -17
 - data/vendor/local/share/doc/groonga/ja/html/contribution.html +77 -69
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +30 -27
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/build.html +144 -0
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_autotools.html +226 -0
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_cmake.html +215 -0
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/windows_cmake.html +229 -0
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +36 -34
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +53 -51
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +79 -77
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +134 -121
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +29 -27
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +57 -53
 - data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +21 -19
 - data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +23 -21
 - data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +23 -21
 - data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/introduction.html +30 -28
 - data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +21 -19
 - data/vendor/local/share/doc/groonga/ja/html/development.html +19 -17
 - data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +25 -23
 - data/vendor/local/share/doc/groonga/ja/html/genindex.html +48 -20
 - data/vendor/local/share/doc/groonga/ja/html/index.html +122 -104
 - data/vendor/local/share/doc/groonga/ja/html/install.html +33 -31
 - data/vendor/local/share/doc/groonga/ja/html/install/centos.html +35 -33
 - data/vendor/local/share/doc/groonga/ja/html/install/debian.html +33 -31
 - data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +30 -28
 - data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +26 -24
 - data/vendor/local/share/doc/groonga/ja/html/install/others.html +83 -81
 - data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +25 -23
 - data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +30 -29
 - data/vendor/local/share/doc/groonga/ja/html/install/windows.html +33 -31
 - data/vendor/local/share/doc/groonga/ja/html/limitations.html +19 -17
 - data/vendor/local/share/doc/groonga/ja/html/news.html +460 -126
 - data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +19 -17
 - data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +20 -18
 - data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +19 -17
 - data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +34 -32
 - data/vendor/local/share/doc/groonga/ja/html/news/1.3.x.html +29 -27
 - data/vendor/local/share/doc/groonga/ja/html/news/2.x.html +102 -100
 - data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +66 -64
 - data/vendor/local/share/doc/groonga/ja/html/news/4.x.html +91 -89
 - data/vendor/local/share/doc/groonga/ja/html/news/senna.html +19 -17
 - data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference.html +111 -94
 - data/vendor/local/share/doc/groonga/ja/html/reference/api.html +55 -52
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +51 -49
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +58 -56
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +84 -82
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +46 -44
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_content_type.html +41 -39
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +85 -83
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +88 -50
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +48 -46
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +78 -76
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +46 -44
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +48 -46
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +46 -44
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +45 -43
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +45 -43
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +44 -42
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +93 -91
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +48 -46
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +43 -41
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +79 -77
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +69 -67
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_thread.html +286 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +45 -43
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +38 -36
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/overview.html +48 -46
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +60 -58
 - data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +19 -17
 - data/vendor/local/share/doc/groonga/ja/html/reference/column.html +21 -19
 - data/vendor/local/share/doc/groonga/ja/html/reference/columns/index.html +23 -21
 - data/vendor/local/share/doc/groonga/ja/html/reference/columns/pseudo.html +28 -26
 - data/vendor/local/share/doc/groonga/ja/html/reference/columns/scalar.html +23 -21
 - data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +61 -59
 - data/vendor/local/share/doc/groonga/ja/html/reference/command.html +70 -61
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +23 -21
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +49 -47
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/request_id.html +28 -26
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +99 -97
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +41 -39
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +49 -47
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +33 -31
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_copy.html +781 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +62 -60
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +88 -86
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +46 -44
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +66 -63
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/database_unmap.html +229 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +62 -60
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +46 -44
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +58 -56
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +63 -61
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/io_flush.html +266 -54
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +59 -57
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_clear.html +53 -52
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +48 -46
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +48 -46
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +48 -46
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_count.html +78 -75
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_parameters.html +276 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_range_filter.html +158 -85
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_select.html +2008 -80
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_shard_list.html +285 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_table_remove.html +71 -68
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +82 -79
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +52 -50
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_exist.html +220 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_register.html +53 -51
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_unregister.html +51 -49
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +43 -41
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/range_filter.html +43 -41
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +52 -50
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/request_cancel.html +68 -67
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +59 -57
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +59 -57
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +680 -448
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +43 -41
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +48 -46
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +84 -82
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +146 -126
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +55 -53
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +46 -44
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_rename.html +322 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_tokenize.html +73 -70
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/thread_limit.html +229 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +94 -91
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +56 -51
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +56 -55
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +24 -22
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/grndb.html +39 -37
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +28 -26
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +33 -31
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +73 -72
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +29 -27
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +23 -21
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +48 -46
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +40 -38
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +84 -82
 - data/vendor/local/share/doc/groonga/ja/html/reference/function.html +22 -20
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +46 -44
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +25 -23
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +69 -67
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +36 -34
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +26 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +56 -54
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +45 -43
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +34 -32
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_values.html +35 -33
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +23 -21
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +48 -46
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +24 -22
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +35 -33
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +37 -35
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_size.html +33 -31
 - data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +26 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +143 -141
 - data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +236 -234
 - data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +34 -28
 - data/vendor/local/share/doc/groonga/ja/html/reference/log.html +43 -41
 - data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +39 -37
 - data/vendor/local/share/doc/groonga/ja/html/reference/operations.html +21 -19
 - data/vendor/local/share/doc/groonga/ja/html/reference/operations/geolocation_search.html +23 -21
 - data/vendor/local/share/doc/groonga/ja/html/reference/output.html +32 -30
 - data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +21 -19
 - data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +42 -39
 - data/vendor/local/share/doc/groonga/ja/html/reference/regular_expression.html +91 -88
 - data/vendor/local/share/doc/groonga/ja/html/reference/scorer.html +50 -40
 - data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_at_most.html +27 -25
 - data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_idf.html +41 -31
 - data/vendor/local/share/doc/groonga/ja/html/reference/scoring_note.html +19 -17
 - data/vendor/local/share/doc/groonga/ja/html/reference/sharding.html +223 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest.html +21 -19
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest/completion.html +27 -25
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest/correction.html +23 -21
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest/introduction.html +23 -21
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest/suggestion.html +23 -21
 - data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +46 -44
 - data/vendor/local/share/doc/groonga/ja/html/reference/token_filters.html +38 -36
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +303 -243
 - data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +62 -60
 - data/vendor/local/share/doc/groonga/ja/html/reference/types.html +42 -40
 - data/vendor/local/share/doc/groonga/ja/html/search.html +11 -11
 - data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/server.html +19 -17
 - data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +21 -19
 - data/vendor/local/share/doc/groonga/ja/html/server/http.html +21 -19
 - data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +31 -29
 - data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +23 -21
 - data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +23 -21
 - data/vendor/local/share/doc/groonga/ja/html/server/memcached.html +21 -19
 - data/vendor/local/share/doc/groonga/ja/html/server/package.html +38 -36
 - data/vendor/local/share/doc/groonga/ja/html/spec.html +23 -21
 - data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +128 -126
 - data/vendor/local/share/doc/groonga/ja/html/spec/search.html +22 -20
 - data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +19 -17
 - data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +25 -23
 - data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +22 -20
 - data/vendor/local/share/doc/groonga/ja/html/tutorial.html +20 -18
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +29 -23
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +34 -32
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +22 -20
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +46 -39
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +21 -19
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +66 -64
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +52 -50
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +25 -23
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +22 -20
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +25 -23
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +35 -33
 - data/vendor/local/share/license/groonga/README.md +6 -0
 - data/vendor/local/share/license/mruby/AUTHORS +1 -0
 - data/vendor/local/share/license/mruby/MITL +1 -1
 - data/vendor/local/share/license/mruby/README.md +6 -5
 - data/vendor/local/share/license/msgpack/README +219 -0
 - data/vendor/local/share/man/ja/man1/groonga.1 +23512 -15126
 - data/vendor/local/share/man/man1/groonga.1 +26542 -17745
 - metadata +77 -3
 - data/vendor/local/share/license/msgpack/AUTHORS +0 -0
 
| 
         @@ -43,6 +43,8 @@ GRN_PLUGIN_EXPORT grn_obj *grn_command_input_get(grn_ctx *ctx, 
     | 
|
| 
       43 
43 
     | 
    
         
             
            GRN_PLUGIN_EXPORT grn_obj *grn_command_input_at(grn_ctx *ctx,
         
     | 
| 
       44 
44 
     | 
    
         
             
                                                            grn_command_input *input,
         
     | 
| 
       45 
45 
     | 
    
         
             
                                                            unsigned int offset);
         
     | 
| 
      
 46 
     | 
    
         
            +
            GRN_PLUGIN_EXPORT grn_obj *grn_command_input_get_arguments(grn_ctx *ctx,
         
     | 
| 
      
 47 
     | 
    
         
            +
                                                                       grn_command_input *input);
         
     | 
| 
       46 
48 
     | 
    
         | 
| 
       47 
49 
     | 
    
         
             
            typedef void grn_command_run_func(grn_ctx *ctx,
         
     | 
| 
       48 
50 
     | 
    
         
             
                                              grn_obj *command,
         
     | 
| 
         @@ -20,6 +20,7 @@ 
     | 
|
| 
       20 
20 
     | 
    
         | 
| 
       21 
21 
     | 
    
         
             
            #include <stdarg.h>
         
     | 
| 
       22 
22 
     | 
    
         
             
            #include <sys/types.h>
         
     | 
| 
      
 23 
     | 
    
         
            +
            #include <stdint.h>
         
     | 
| 
       23 
24 
     | 
    
         | 
| 
       24 
25 
     | 
    
         
             
            #ifdef  __cplusplus
         
     | 
| 
       25 
26 
     | 
    
         
             
            extern "C" {
         
     | 
| 
         @@ -161,6 +162,9 @@ typedef enum { 
     | 
|
| 
       161 
162 
     | 
    
         
             
              GRN_LOG_DUMP
         
     | 
| 
       162 
163 
     | 
    
         
             
            } grn_log_level;
         
     | 
| 
       163 
164 
     | 
    
         | 
| 
      
 165 
     | 
    
         
            +
            GRN_API const char *grn_log_level_to_string(grn_log_level level);
         
     | 
| 
      
 166 
     | 
    
         
            +
            GRN_API grn_bool grn_log_level_parse(const char *string, grn_log_level *level);
         
     | 
| 
      
 167 
     | 
    
         
            +
             
     | 
| 
       164 
168 
     | 
    
         
             
            /* query log flags */
         
     | 
| 
       165 
169 
     | 
    
         
             
            #define GRN_QUERY_LOG_NONE        (0x00)
         
     | 
| 
       166 
170 
     | 
    
         
             
            #define GRN_QUERY_LOG_COMMAND     (0x01<<0)
         
     | 
| 
         @@ -430,6 +434,7 @@ GRN_API grn_obj *grn_db_create(grn_ctx *ctx, const char *path, grn_db_create_opt 
     | 
|
| 
       430 
434 
     | 
    
         
             
            GRN_API grn_obj *grn_db_open(grn_ctx *ctx, const char *path);
         
     | 
| 
       431 
435 
     | 
    
         
             
            GRN_API void grn_db_touch(grn_ctx *ctx, grn_obj *db);
         
     | 
| 
       432 
436 
     | 
    
         
             
            GRN_API grn_rc grn_db_recover(grn_ctx *ctx, grn_obj *db);
         
     | 
| 
      
 437 
     | 
    
         
            +
            GRN_API grn_rc grn_db_unmap(grn_ctx *ctx, grn_obj *db);
         
     | 
| 
       433 
438 
     | 
    
         | 
| 
       434 
439 
     | 
    
         
             
            GRN_API grn_rc grn_ctx_use(grn_ctx *ctx, grn_obj *db);
         
     | 
| 
       435 
440 
     | 
    
         
             
            GRN_API grn_obj *grn_ctx_db(grn_ctx *ctx);
         
     | 
| 
         @@ -28,6 +28,7 @@ GRN_API grn_bool grn_obj_is_table(grn_ctx *ctx, grn_obj *obj); 
     | 
|
| 
       28 
28 
     | 
    
         
             
            GRN_API grn_bool grn_obj_is_proc(grn_ctx *ctx, grn_obj *obj);
         
     | 
| 
       29 
29 
     | 
    
         
             
            GRN_API grn_bool grn_obj_is_function_proc(grn_ctx *ctx, grn_obj *obj);
         
     | 
| 
       30 
30 
     | 
    
         
             
            GRN_API grn_bool grn_obj_is_selector_proc(grn_ctx *ctx, grn_obj *obj);
         
     | 
| 
      
 31 
     | 
    
         
            +
            GRN_API grn_bool grn_obj_is_selector_only_proc(grn_ctx *ctx, grn_obj *obj);
         
     | 
| 
       31 
32 
     | 
    
         
             
            GRN_API grn_bool grn_obj_is_scorer_proc(grn_ctx *ctx, grn_obj *obj);
         
     | 
| 
       32 
33 
     | 
    
         | 
| 
       33 
34 
     | 
    
         
             
            #ifdef __cplusplus
         
     | 
| 
         @@ -117,6 +117,22 @@ 
     | 
|
| 
       117 
117 
     | 
    
         
             
              strcat((dest), (src))
         
     | 
| 
       118 
118 
     | 
    
         
             
            #endif /* WIN32 */
         
     | 
| 
       119 
119 
     | 
    
         | 
| 
      
 120 
     | 
    
         
            +
            #ifdef WIN32
         
     | 
| 
      
 121 
     | 
    
         
            +
            # define grn_strcasecmp(string1, string2)       \
         
     | 
| 
      
 122 
     | 
    
         
            +
              _stricmp((string1), (string2))
         
     | 
| 
      
 123 
     | 
    
         
            +
            #else /* WIN32 */
         
     | 
| 
      
 124 
     | 
    
         
            +
            # define grn_strcasecmp(string1, string2)       \
         
     | 
| 
      
 125 
     | 
    
         
            +
              strcasecmp((string1), (string2))
         
     | 
| 
      
 126 
     | 
    
         
            +
            #endif /* WIN32 */
         
     | 
| 
      
 127 
     | 
    
         
            +
             
     | 
| 
      
 128 
     | 
    
         
            +
            #ifdef WIN32
         
     | 
| 
      
 129 
     | 
    
         
            +
            # define grn_strncasecmp(string1, string2, n)   \
         
     | 
| 
      
 130 
     | 
    
         
            +
              _strnicmp((string1), (string2), (n))
         
     | 
| 
      
 131 
     | 
    
         
            +
            #else /* WIN32 */
         
     | 
| 
      
 132 
     | 
    
         
            +
            # define grn_strncasecmp(string1, string2, n)   \
         
     | 
| 
      
 133 
     | 
    
         
            +
              strncasecmp((string1), (string2), (n))
         
     | 
| 
      
 134 
     | 
    
         
            +
            #endif /* WIN32 */
         
     | 
| 
      
 135 
     | 
    
         
            +
             
     | 
| 
       120 
136 
     | 
    
         
             
            #ifdef WIN32
         
     | 
| 
       121 
137 
     | 
    
         
             
            # define grn_snprintf(dest, dest_size, n, format, ...)          \
         
     | 
| 
       122 
138 
     | 
    
         
             
              _snprintf_s((dest), (dest_size), (n) - 1, (format), __VA_ARGS__)
         
     | 
| 
         @@ -0,0 +1,42 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            /* -*- c-basic-offset: 2 -*- */
         
     | 
| 
      
 2 
     | 
    
         
            +
            /*
         
     | 
| 
      
 3 
     | 
    
         
            +
              Copyright(C) 2015 Brazil
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
              This library is free software; you can redistribute it and/or
         
     | 
| 
      
 6 
     | 
    
         
            +
              modify it under the terms of the GNU Lesser General Public
         
     | 
| 
      
 7 
     | 
    
         
            +
              License as published by the Free Software Foundation; either
         
     | 
| 
      
 8 
     | 
    
         
            +
              version 2.1 of the License, or (at your option) any later version.
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
              This library is distributed in the hope that it will be useful,
         
     | 
| 
      
 11 
     | 
    
         
            +
              but WITHOUT ANY WARRANTY; without even the implied warranty of
         
     | 
| 
      
 12 
     | 
    
         
            +
              MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
         
     | 
| 
      
 13 
     | 
    
         
            +
              Lesser General Public License for more details.
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
      
 15 
     | 
    
         
            +
              You should have received a copy of the GNU Lesser General Public
         
     | 
| 
      
 16 
     | 
    
         
            +
              License along with this library; if not, write to the Free Software
         
     | 
| 
      
 17 
     | 
    
         
            +
              Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
         
     | 
| 
      
 18 
     | 
    
         
            +
            */
         
     | 
| 
      
 19 
     | 
    
         
            +
             
     | 
| 
      
 20 
     | 
    
         
            +
            #ifndef GROONGA_THREAD_H
         
     | 
| 
      
 21 
     | 
    
         
            +
            #define GROONGA_THREAD_H
         
     | 
| 
      
 22 
     | 
    
         
            +
             
     | 
| 
      
 23 
     | 
    
         
            +
            #ifdef  __cplusplus
         
     | 
| 
      
 24 
     | 
    
         
            +
            extern "C" {
         
     | 
| 
      
 25 
     | 
    
         
            +
            #endif
         
     | 
| 
      
 26 
     | 
    
         
            +
             
     | 
| 
      
 27 
     | 
    
         
            +
            GRN_API uint32_t grn_thread_get_limit(void);
         
     | 
| 
      
 28 
     | 
    
         
            +
            GRN_API void grn_thread_set_limit(uint32_t new_limit);
         
     | 
| 
      
 29 
     | 
    
         
            +
             
     | 
| 
      
 30 
     | 
    
         
            +
             
     | 
| 
      
 31 
     | 
    
         
            +
            typedef uint32_t (*grn_thread_get_limit_func)(void *data);
         
     | 
| 
      
 32 
     | 
    
         
            +
            GRN_API void grn_thread_set_get_limit_func(grn_thread_get_limit_func func,
         
     | 
| 
      
 33 
     | 
    
         
            +
                                                       void *data);
         
     | 
| 
      
 34 
     | 
    
         
            +
            typedef void (*grn_thread_set_limit_func)(uint32_t new_limit, void *data);
         
     | 
| 
      
 35 
     | 
    
         
            +
            GRN_API void grn_thread_set_set_limit_func(grn_thread_set_limit_func func,
         
     | 
| 
      
 36 
     | 
    
         
            +
                                                       void *data);
         
     | 
| 
      
 37 
     | 
    
         
            +
             
     | 
| 
      
 38 
     | 
    
         
            +
            #ifdef __cplusplus
         
     | 
| 
      
 39 
     | 
    
         
            +
            }
         
     | 
| 
      
 40 
     | 
    
         
            +
            #endif
         
     | 
| 
      
 41 
     | 
    
         
            +
             
     | 
| 
      
 42 
     | 
    
         
            +
            #endif /* GROONGA_THREAD_H */
         
     | 
| 
         @@ -0,0 +1,33 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            /*
         
     | 
| 
      
 2 
     | 
    
         
            +
              Copyright(C) 2015 Brazil
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
              This library is free software; you can redistribute it and/or
         
     | 
| 
      
 5 
     | 
    
         
            +
              modify it under the terms of the GNU Lesser General Public
         
     | 
| 
      
 6 
     | 
    
         
            +
              License as published by the Free Software Foundation; either
         
     | 
| 
      
 7 
     | 
    
         
            +
              version 2.1 of the License, or (at your option) any later version.
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
              This library is distributed in the hope that it will be useful,
         
     | 
| 
      
 10 
     | 
    
         
            +
              but WITHOUT ANY WARRANTY; without even the implied warranty of
         
     | 
| 
      
 11 
     | 
    
         
            +
              MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
         
     | 
| 
      
 12 
     | 
    
         
            +
              Lesser General Public License for more details.
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
      
 14 
     | 
    
         
            +
              You should have received a copy of the GNU Lesser General Public
         
     | 
| 
      
 15 
     | 
    
         
            +
              License along with this library; if not, write to the Free Software
         
     | 
| 
      
 16 
     | 
    
         
            +
              Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
         
     | 
| 
      
 17 
     | 
    
         
            +
            */
         
     | 
| 
      
 18 
     | 
    
         
            +
             
     | 
| 
      
 19 
     | 
    
         
            +
            #ifndef GROONGA_WINDOWS_EVENT_LOGGER_H
         
     | 
| 
      
 20 
     | 
    
         
            +
            #define GROONGA_WINDOWS_EVENT_LOGGER_H
         
     | 
| 
      
 21 
     | 
    
         
            +
             
     | 
| 
      
 22 
     | 
    
         
            +
            #ifdef  __cplusplus
         
     | 
| 
      
 23 
     | 
    
         
            +
            extern "C" {
         
     | 
| 
      
 24 
     | 
    
         
            +
            #endif
         
     | 
| 
      
 25 
     | 
    
         
            +
             
     | 
| 
      
 26 
     | 
    
         
            +
            GRN_API grn_rc grn_windows_event_logger_set(grn_ctx *ctx,
         
     | 
| 
      
 27 
     | 
    
         
            +
                                                        const char *event_source_name);
         
     | 
| 
      
 28 
     | 
    
         
            +
             
     | 
| 
      
 29 
     | 
    
         
            +
            #ifdef __cplusplus
         
     | 
| 
      
 30 
     | 
    
         
            +
            }
         
     | 
| 
      
 31 
     | 
    
         
            +
            #endif
         
     | 
| 
      
 32 
     | 
    
         
            +
             
     | 
| 
      
 33 
     | 
    
         
            +
            #endif /* GROONGA_WINDOWS_EVENT_LOGGER_H */
         
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         @@ -17,7 +17,7 @@ old_library='vector.a' 
     | 
|
| 
       17 
17 
     | 
    
         
             
            inherited_linker_flags=''
         
     | 
| 
       18 
18 
     | 
    
         | 
| 
       19 
19 
     | 
    
         
             
            # Libraries that this one depends upon.
         
     | 
| 
       20 
     | 
    
         
            -
            dependency_libs=' -L/home/ 
     | 
| 
      
 20 
     | 
    
         
            +
            dependency_libs=' -L/home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib /home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib/libgroonga.la /home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib/libmsgpack.la /home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib/libonig.la -lpthread -llz4 -lz -lws2_32'
         
     | 
| 
       21 
21 
     | 
    
         | 
| 
       22 
22 
     | 
    
         
             
            # Names of additional weak libraries provided by this library
         
     | 
| 
       23 
23 
     | 
    
         
             
            weak_library_names=''
         
     | 
| 
         @@ -38,4 +38,4 @@ dlopen='' 
     | 
|
| 
       38 
38 
     | 
    
         
             
            dlpreopen=''
         
     | 
| 
       39 
39 
     | 
    
         | 
| 
       40 
40 
     | 
    
         
             
            # Directory that this library needs to be installed in:
         
     | 
| 
       41 
     | 
    
         
            -
            libdir='/home/ 
     | 
| 
      
 41 
     | 
    
         
            +
            libdir='/home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib/groonga/plugins/functions'
         
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         @@ -17,7 +17,7 @@ old_library='tsv.a' 
     | 
|
| 
       17 
17 
     | 
    
         
             
            inherited_linker_flags=''
         
     | 
| 
       18 
18 
     | 
    
         | 
| 
       19 
19 
     | 
    
         
             
            # Libraries that this one depends upon.
         
     | 
| 
       20 
     | 
    
         
            -
            dependency_libs=' -L/home/ 
     | 
| 
      
 20 
     | 
    
         
            +
            dependency_libs=' -L/home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib /home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib/libgroonga.la /home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib/libmsgpack.la /home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib/libonig.la -lpthread -llz4 -lz -lws2_32'
         
     | 
| 
       21 
21 
     | 
    
         | 
| 
       22 
22 
     | 
    
         
             
            # Names of additional weak libraries provided by this library
         
     | 
| 
       23 
23 
     | 
    
         
             
            weak_library_names=''
         
     | 
| 
         @@ -38,4 +38,4 @@ dlopen='' 
     | 
|
| 
       38 
38 
     | 
    
         
             
            dlpreopen=''
         
     | 
| 
       39 
39 
     | 
    
         | 
| 
       40 
40 
     | 
    
         
             
            # Directory that this library needs to be installed in:
         
     | 
| 
       41 
     | 
    
         
            -
            libdir='/home/ 
     | 
| 
      
 41 
     | 
    
         
            +
            libdir='/home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib/groonga/plugins/query_expanders'
         
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         @@ -17,7 +17,7 @@ old_library='eval.a' 
     | 
|
| 
       17 
17 
     | 
    
         
             
            inherited_linker_flags=''
         
     | 
| 
       18 
18 
     | 
    
         | 
| 
       19 
19 
     | 
    
         
             
            # Libraries that this one depends upon.
         
     | 
| 
       20 
     | 
    
         
            -
            dependency_libs=' -L/home/ 
     | 
| 
      
 20 
     | 
    
         
            +
            dependency_libs=' -L/home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib /home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib/libgroonga.la /home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib/libonig.la -lpthread -llz4 -lz -lws2_32 /home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib/libmsgpack.la'
         
     | 
| 
       21 
21 
     | 
    
         | 
| 
       22 
22 
     | 
    
         
             
            # Names of additional weak libraries provided by this library
         
     | 
| 
       23 
23 
     | 
    
         
             
            weak_library_names=''
         
     | 
| 
         @@ -38,4 +38,4 @@ dlopen='' 
     | 
|
| 
       38 
38 
     | 
    
         
             
            dlpreopen=''
         
     | 
| 
       39 
39 
     | 
    
         | 
| 
       40 
40 
     | 
    
         
             
            # Directory that this library needs to be installed in:
         
     | 
| 
       41 
     | 
    
         
            -
            libdir='/home/ 
     | 
| 
      
 41 
     | 
    
         
            +
            libdir='/home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib/groonga/plugins/ruby'
         
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         @@ -17,7 +17,7 @@ old_library='load.a' 
     | 
|
| 
       17 
17 
     | 
    
         
             
            inherited_linker_flags=''
         
     | 
| 
       18 
18 
     | 
    
         | 
| 
       19 
19 
     | 
    
         
             
            # Libraries that this one depends upon.
         
     | 
| 
       20 
     | 
    
         
            -
            dependency_libs=' -L/home/ 
     | 
| 
      
 20 
     | 
    
         
            +
            dependency_libs=' -L/home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib /home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib/libgroonga.la /home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib/libonig.la -lpthread -llz4 -lz -lws2_32 /home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib/libmsgpack.la'
         
     | 
| 
       21 
21 
     | 
    
         | 
| 
       22 
22 
     | 
    
         
             
            # Names of additional weak libraries provided by this library
         
     | 
| 
       23 
23 
     | 
    
         
             
            weak_library_names=''
         
     | 
| 
         @@ -38,4 +38,4 @@ dlopen='' 
     | 
|
| 
       38 
38 
     | 
    
         
             
            dlpreopen=''
         
     | 
| 
       39 
39 
     | 
    
         | 
| 
       40 
40 
     | 
    
         
             
            # Directory that this library needs to be installed in:
         
     | 
| 
       41 
     | 
    
         
            -
            libdir='/home/ 
     | 
| 
      
 41 
     | 
    
         
            +
            libdir='/home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib/groonga/plugins/ruby'
         
     | 
| 
         @@ -1,6 +1,11 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            require "sharding/parameters"
         
     | 
| 
       1 
2 
     | 
    
         
             
            require "sharding/range_expression_builder"
         
     | 
| 
       2 
3 
     | 
    
         
             
            require "sharding/logical_enumerator"
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
            require "sharding/logical_parameters"
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
       3 
7 
     | 
    
         
             
            require "sharding/logical_count"
         
     | 
| 
       4 
8 
     | 
    
         
             
            require "sharding/logical_range_filter"
         
     | 
| 
       5 
9 
     | 
    
         
             
            require "sharding/logical_select"
         
     | 
| 
      
 10 
     | 
    
         
            +
            require "sharding/logical_shard_list"
         
     | 
| 
       6 
11 
     | 
    
         
             
            require "sharding/logical_table_remove"
         
     | 
| 
         @@ -17,25 +17,59 @@ module Groonga 
     | 
|
| 
       17 
17 
     | 
    
         
             
                    filter = input[:filter]
         
     | 
| 
       18 
18 
     | 
    
         | 
| 
       19 
19 
     | 
    
         
             
                    total = 0
         
     | 
| 
       20 
     | 
    
         
            -
                    enumerator.each do | 
     | 
| 
       21 
     | 
    
         
            -
                      total += count_n_records( 
     | 
| 
       22 
     | 
    
         
            -
                                               shard_key, shard_range,
         
     | 
| 
      
 20 
     | 
    
         
            +
                    enumerator.each do |shard, shard_range|
         
     | 
| 
      
 21 
     | 
    
         
            +
                      total += count_n_records(filter, shard, shard_range,
         
     | 
| 
       23 
22 
     | 
    
         
             
                                               enumerator.target_range)
         
     | 
| 
       24 
23 
     | 
    
         
             
                    end
         
     | 
| 
       25 
24 
     | 
    
         
             
                    writer.write(total)
         
     | 
| 
       26 
25 
     | 
    
         
             
                  end
         
     | 
| 
       27 
26 
     | 
    
         | 
| 
       28 
27 
     | 
    
         
             
                  private
         
     | 
| 
       29 
     | 
    
         
            -
                  def  
     | 
| 
       30 
     | 
    
         
            -
             
     | 
| 
       31 
     | 
    
         
            -
             
     | 
| 
      
 28 
     | 
    
         
            +
                  def cache_key(input)
         
     | 
| 
      
 29 
     | 
    
         
            +
                    key = "logical_count\0"
         
     | 
| 
      
 30 
     | 
    
         
            +
                    key << "#{input[:logical_table]}\0"
         
     | 
| 
      
 31 
     | 
    
         
            +
                    key << "#{input[:shard_key]}\0"
         
     | 
| 
      
 32 
     | 
    
         
            +
                    key << "#{input[:min]}\0"
         
     | 
| 
      
 33 
     | 
    
         
            +
                    key << "#{input[:min_border]}\0"
         
     | 
| 
      
 34 
     | 
    
         
            +
                    key << "#{input[:max]}\0"
         
     | 
| 
      
 35 
     | 
    
         
            +
                    key << "#{input[:max_border]}\0"
         
     | 
| 
      
 36 
     | 
    
         
            +
                    key << "#{input[:filter]}\0"
         
     | 
| 
      
 37 
     | 
    
         
            +
                    key
         
     | 
| 
      
 38 
     | 
    
         
            +
                  end
         
     | 
| 
      
 39 
     | 
    
         
            +
             
     | 
| 
      
 40 
     | 
    
         
            +
                  def log_use_range_index(use, table_name, line, method)
         
     | 
| 
      
 41 
     | 
    
         
            +
                    message = "[logical_count]"
         
     | 
| 
      
 42 
     | 
    
         
            +
                    if use
         
     | 
| 
      
 43 
     | 
    
         
            +
                      message << "[range-index]"
         
     | 
| 
      
 44 
     | 
    
         
            +
                    else
         
     | 
| 
      
 45 
     | 
    
         
            +
                      message << "[select]"
         
     | 
| 
      
 46 
     | 
    
         
            +
                    end
         
     | 
| 
      
 47 
     | 
    
         
            +
                    message << " <#{table_name}>"
         
     | 
| 
      
 48 
     | 
    
         
            +
                    Context.instance.logger.log(Logger::Level::DEBUG,
         
     | 
| 
      
 49 
     | 
    
         
            +
                                                __FILE__,
         
     | 
| 
      
 50 
     | 
    
         
            +
                                                line,
         
     | 
| 
      
 51 
     | 
    
         
            +
                                                method.to_s,
         
     | 
| 
      
 52 
     | 
    
         
            +
                                                message)
         
     | 
| 
      
 53 
     | 
    
         
            +
                  end
         
     | 
| 
      
 54 
     | 
    
         
            +
             
     | 
| 
      
 55 
     | 
    
         
            +
                  def count_n_records(filter, shard, shard_range, target_range)
         
     | 
| 
       32 
56 
     | 
    
         
             
                    cover_type = target_range.cover_type(shard_range)
         
     | 
| 
       33 
57 
     | 
    
         
             
                    return 0 if cover_type == :none
         
     | 
| 
       34 
58 
     | 
    
         | 
| 
      
 59 
     | 
    
         
            +
                    shard_key = shard.key
         
     | 
| 
      
 60 
     | 
    
         
            +
                    if shard_key.nil?
         
     | 
| 
      
 61 
     | 
    
         
            +
                      message = "[logical_count] shard_key doesn't exist: " +
         
     | 
| 
      
 62 
     | 
    
         
            +
                                "<#{shard.key_name}>"
         
     | 
| 
      
 63 
     | 
    
         
            +
                      raise InvalidArgument, message
         
     | 
| 
      
 64 
     | 
    
         
            +
                    end
         
     | 
| 
      
 65 
     | 
    
         
            +
                    table = shard.table
         
     | 
| 
      
 66 
     | 
    
         
            +
                    table_name = shard.table_name
         
     | 
| 
      
 67 
     | 
    
         
            +
             
     | 
| 
       35 
68 
     | 
    
         
             
                    expression_builder = RangeExpressionBuilder.new(shard_key,
         
     | 
| 
       36 
69 
     | 
    
         
             
                                                                    target_range,
         
     | 
| 
       37 
70 
     | 
    
         
             
                                                                    filter)
         
     | 
| 
       38 
71 
     | 
    
         
             
                    if cover_type == :all
         
     | 
| 
      
 72 
     | 
    
         
            +
                      log_use_range_index(false, table_name, __LINE__, __method__)
         
     | 
| 
       39 
73 
     | 
    
         
             
                      if filter.nil?
         
     | 
| 
       40 
74 
     | 
    
         
             
                        return table.size
         
     | 
| 
       41 
75 
     | 
    
         
             
                      else
         
     | 
| 
         @@ -53,6 +87,9 @@ module Groonga 
     | 
|
| 
       53 
87 
     | 
    
         
             
                      end
         
     | 
| 
       54 
88 
     | 
    
         
             
                    end
         
     | 
| 
       55 
89 
     | 
    
         | 
| 
      
 90 
     | 
    
         
            +
                    use_range_index = (!range_index.nil?)
         
     | 
| 
      
 91 
     | 
    
         
            +
                    log_use_range_index(use_range_index, table_name, __LINE__, __method__)
         
     | 
| 
      
 92 
     | 
    
         
            +
             
     | 
| 
       56 
93 
     | 
    
         
             
                    case cover_type
         
     | 
| 
       57 
94 
     | 
    
         
             
                    when :partial_min
         
     | 
| 
       58 
95 
     | 
    
         
             
                      if range_index
         
     | 
| 
         @@ -1,12 +1,15 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            module Groonga
         
     | 
| 
       2 
2 
     | 
    
         
             
              module Sharding
         
     | 
| 
       3 
3 
     | 
    
         
             
                class LogicalEnumerator
         
     | 
| 
      
 4 
     | 
    
         
            +
                  include Enumerable
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
       4 
6 
     | 
    
         
             
                  attr_reader :target_range
         
     | 
| 
       5 
7 
     | 
    
         
             
                  attr_reader :logical_table
         
     | 
| 
       6 
8 
     | 
    
         
             
                  attr_reader :shard_key_name
         
     | 
| 
       7 
     | 
    
         
            -
                  def initialize(command_name, input)
         
     | 
| 
      
 9 
     | 
    
         
            +
                  def initialize(command_name, input, options={})
         
     | 
| 
       8 
10 
     | 
    
         
             
                    @command_name = command_name
         
     | 
| 
       9 
11 
     | 
    
         
             
                    @input = input
         
     | 
| 
      
 12 
     | 
    
         
            +
                    @options = options
         
     | 
| 
       10 
13 
     | 
    
         
             
                    initialize_parameters
         
     | 
| 
       11 
14 
     | 
    
         
             
                  end
         
     | 
| 
       12 
15 
     | 
    
         | 
| 
         @@ -22,7 +25,6 @@ module Groonga 
     | 
|
| 
       22 
25 
     | 
    
         
             
                  def each_internal(order)
         
     | 
| 
       23 
26 
     | 
    
         
             
                    context = Context.instance
         
     | 
| 
       24 
27 
     | 
    
         
             
                    each_shard_with_around(order) do |prev_shard, current_shard, next_shard|
         
     | 
| 
       25 
     | 
    
         
            -
                      table = current_shard.table
         
     | 
| 
       26 
28 
     | 
    
         
             
                      shard_range_data = current_shard.range_data
         
     | 
| 
       27 
29 
     | 
    
         
             
                      shard_range = nil
         
     | 
| 
       28 
30 
     | 
    
         | 
| 
         @@ -52,16 +54,7 @@ module Groonga 
     | 
|
| 
       52 
54 
     | 
    
         
             
                                                        shard_range_data.day)
         
     | 
| 
       53 
55 
     | 
    
         
             
                      end
         
     | 
| 
       54 
56 
     | 
    
         | 
| 
       55 
     | 
    
         
            -
                       
     | 
| 
       56 
     | 
    
         
            -
                      shard_key = context[physical_shard_key_name]
         
     | 
| 
       57 
     | 
    
         
            -
                      if shard_key.nil?
         
     | 
| 
       58 
     | 
    
         
            -
                        message =
         
     | 
| 
       59 
     | 
    
         
            -
                          "[#{@command_name}] shard_key doesn't exist: " +
         
     | 
| 
       60 
     | 
    
         
            -
                          "<#{physical_shard_key_name}>"
         
     | 
| 
       61 
     | 
    
         
            -
                        raise InvalidArgument, message
         
     | 
| 
       62 
     | 
    
         
            -
                      end
         
     | 
| 
       63 
     | 
    
         
            -
             
     | 
| 
       64 
     | 
    
         
            -
                      yield(table, shard_key, shard_range)
         
     | 
| 
      
 57 
     | 
    
         
            +
                      yield(current_shard, shard_range)
         
     | 
| 
       65 
58 
     | 
    
         
             
                    end
         
     | 
| 
       66 
59 
     | 
    
         
             
                  end
         
     | 
| 
       67 
60 
     | 
    
         | 
| 
         @@ -70,10 +63,10 @@ module Groonga 
     | 
|
| 
       70 
63 
     | 
    
         
             
                    prefix = "#{@logical_table}_"
         
     | 
| 
       71 
64 
     | 
    
         | 
| 
       72 
65 
     | 
    
         
             
                    shards = [nil]
         
     | 
| 
       73 
     | 
    
         
            -
                    context.database. 
     | 
| 
       74 
     | 
    
         
            -
             
     | 
| 
       75 
     | 
    
         
            -
             
     | 
| 
       76 
     | 
    
         
            -
                      shard_range_raw =  
     | 
| 
      
 66 
     | 
    
         
            +
                    context.database.each_name(:prefix => prefix,
         
     | 
| 
      
 67 
     | 
    
         
            +
                                               :order_by => :key,
         
     | 
| 
      
 68 
     | 
    
         
            +
                                               :order => order) do |name|
         
     | 
| 
      
 69 
     | 
    
         
            +
                      shard_range_raw = name[prefix.size..-1]
         
     | 
| 
       77 
70 
     | 
    
         | 
| 
       78 
71 
     | 
    
         
             
                      case shard_range_raw
         
     | 
| 
       79 
72 
     | 
    
         
             
                      when /\A(\d{4})(\d{2})\z/
         
     | 
| 
         @@ -84,7 +77,7 @@ module Groonga 
     | 
|
| 
       84 
77 
     | 
    
         
             
                        next
         
     | 
| 
       85 
78 
     | 
    
         
             
                      end
         
     | 
| 
       86 
79 
     | 
    
         | 
| 
       87 
     | 
    
         
            -
                      shards << Shard.new( 
     | 
| 
      
 80 
     | 
    
         
            +
                      shards << Shard.new(name, @shard_key_name, shard_range_data)
         
     | 
| 
       88 
81 
     | 
    
         
             
                      next if shards.size < 3
         
     | 
| 
       89 
82 
     | 
    
         
             
                      yield(*shards)
         
     | 
| 
       90 
83 
     | 
    
         
             
                      shards.shift
         
     | 
| 
         @@ -104,7 +97,11 @@ module Groonga 
     | 
|
| 
       104 
97 
     | 
    
         | 
| 
       105 
98 
     | 
    
         
             
                    @shard_key_name = @input[:shard_key]
         
     | 
| 
       106 
99 
     | 
    
         
             
                    if @shard_key_name.nil?
         
     | 
| 
       107 
     | 
    
         
            -
                       
     | 
| 
      
 100 
     | 
    
         
            +
                      require_shard_key = @options[:require_shard_key]
         
     | 
| 
      
 101 
     | 
    
         
            +
                      require_shard_key = true if require_shard_key.nil?
         
     | 
| 
      
 102 
     | 
    
         
            +
                      if require_shard_key
         
     | 
| 
      
 103 
     | 
    
         
            +
                        raise InvalidArgument, "[#{@command_name}] shard_key is missing"
         
     | 
| 
      
 104 
     | 
    
         
            +
                      end
         
     | 
| 
       108 
105 
     | 
    
         
             
                    end
         
     | 
| 
       109 
106 
     | 
    
         | 
| 
       110 
107 
     | 
    
         
             
                    @target_range = TargetRange.new(@command_name, @input)
         
     | 
| 
         @@ -119,11 +116,24 @@ module Groonga 
     | 
|
| 
       119 
116 
     | 
    
         
             
                  end
         
     | 
| 
       120 
117 
     | 
    
         | 
| 
       121 
118 
     | 
    
         
             
                  class Shard
         
     | 
| 
       122 
     | 
    
         
            -
                    attr_reader : 
     | 
| 
       123 
     | 
    
         
            -
                    def initialize( 
     | 
| 
       124 
     | 
    
         
            -
                      @ 
     | 
| 
      
 119 
     | 
    
         
            +
                    attr_reader :table_name, :key_name, :range_data
         
     | 
| 
      
 120 
     | 
    
         
            +
                    def initialize(table_name, key_name, range_data)
         
     | 
| 
      
 121 
     | 
    
         
            +
                      @table_name = table_name
         
     | 
| 
      
 122 
     | 
    
         
            +
                      @key_name = key_name
         
     | 
| 
       125 
123 
     | 
    
         
             
                      @range_data = range_data
         
     | 
| 
       126 
124 
     | 
    
         
             
                    end
         
     | 
| 
      
 125 
     | 
    
         
            +
             
     | 
| 
      
 126 
     | 
    
         
            +
                    def table
         
     | 
| 
      
 127 
     | 
    
         
            +
                      @table ||= Context.instance[@table_name]
         
     | 
| 
      
 128 
     | 
    
         
            +
                    end
         
     | 
| 
      
 129 
     | 
    
         
            +
             
     | 
| 
      
 130 
     | 
    
         
            +
                    def full_key_name
         
     | 
| 
      
 131 
     | 
    
         
            +
                      "#{@table_name}.#{@key_name}"
         
     | 
| 
      
 132 
     | 
    
         
            +
                    end
         
     | 
| 
      
 133 
     | 
    
         
            +
             
     | 
| 
      
 134 
     | 
    
         
            +
                    def key
         
     | 
| 
      
 135 
     | 
    
         
            +
                      @key ||= Context.instance[full_key_name]
         
     | 
| 
      
 136 
     | 
    
         
            +
                    end
         
     | 
| 
       127 
137 
     | 
    
         
             
                  end
         
     | 
| 
       128 
138 
     | 
    
         | 
| 
       129 
139 
     | 
    
         
             
                  class ShardRangeData
         
     | 
| 
         @@ -270,10 +280,7 @@ module Groonga 
     | 
|
| 
       270 
280 
     | 
    
         | 
| 
       271 
281 
     | 
    
         
             
                      return true if @min_border == :exclude
         
     | 
| 
       272 
282 
     | 
    
         | 
| 
       273 
     | 
    
         
            -
                       
     | 
| 
       274 
     | 
    
         
            -
                           @min.min  == 0 and
         
     | 
| 
       275 
     | 
    
         
            -
                           @min.sec  == 0 and
         
     | 
| 
       276 
     | 
    
         
            -
                           @min.usec == 0)
         
     | 
| 
      
 283 
     | 
    
         
            +
                      shard_range.min_time != @min
         
     | 
| 
       277 
284 
     | 
    
         
             
                    end
         
     | 
| 
       278 
285 
     | 
    
         | 
| 
       279 
286 
     | 
    
         
             
                    def in_max?(shard_range)
         
     |