rroonga 4.0.7-x86-mingw32 → 4.0.8-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (559) hide show
  1. checksums.yaml +13 -5
  2. data/README.md +1 -1
  3. data/doc/text/news.textile +17 -1
  4. data/ext/groonga/extconf.rb +2 -1
  5. data/ext/groonga/rb-grn-column.c +31 -0
  6. data/ext/groonga/rb-grn-database.c +33 -1
  7. data/ext/groonga/rb-grn-table.c +1 -1
  8. data/ext/groonga/rb-grn.h +1 -1
  9. data/lib/1.9/groonga.so +0 -0
  10. data/lib/2.0/groonga.so +0 -0
  11. data/lib/2.1/groonga.so +0 -0
  12. data/lib/groonga/geo-point.rb +2 -1
  13. data/rroonga-build.rb +3 -3
  14. data/test/test-column.rb +68 -6
  15. data/test/test-command-select.rb +0 -3
  16. data/test/test-database.rb +28 -1
  17. data/test/test-expression-builder.rb +1 -1
  18. data/test/test-geo-point.rb +15 -0
  19. data/test/test-variable-size-column.rb +2 -2
  20. data/vendor/local/bin/grndb.exe +0 -0
  21. data/vendor/local/bin/groonga-benchmark.exe +0 -0
  22. data/vendor/local/bin/groonga.exe +0 -0
  23. data/vendor/local/bin/libgcc_s_sjlj-1.dll +0 -0
  24. data/vendor/local/bin/libgroonga-0.dll +0 -0
  25. data/vendor/local/bin/libmecab-1.dll +0 -0
  26. data/vendor/local/bin/libmsgpack-3.dll +0 -0
  27. data/vendor/local/bin/libmsgpackc-2.dll +0 -0
  28. data/vendor/local/bin/libonig-5.dll +0 -0
  29. data/vendor/local/bin/libstdc++-6.dll +0 -0
  30. data/vendor/local/bin/libwinpthread-1.dll +0 -0
  31. data/vendor/local/bin/lz4.exe +0 -0
  32. data/vendor/local/bin/lz4c.exe +0 -0
  33. data/vendor/local/bin/lz4cat +0 -0
  34. data/vendor/local/bin/mecab-config +2 -2
  35. data/vendor/local/bin/mecab.exe +0 -0
  36. data/vendor/local/bin/onig-config +1 -1
  37. data/vendor/local/bin/zlib1.dll +0 -0
  38. data/vendor/local/etc/groonga/httpd/groonga-httpd.conf +2 -2
  39. data/vendor/local/include/groonga/groonga.h +1 -0
  40. data/vendor/local/include/groonga/groonga/groonga.h +4 -1
  41. data/vendor/local/include/groonga/groonga/request_canceler.h +39 -0
  42. data/vendor/local/include/lz4.h +21 -29
  43. data/vendor/local/include/lz4frame.h +252 -0
  44. data/vendor/local/include/lz4hc.h +14 -63
  45. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
  46. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
  47. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
  48. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.la +3 -3
  49. data/vendor/local/lib/groonga/plugins/ruby/eval.a +0 -0
  50. data/vendor/local/lib/groonga/plugins/ruby/eval.dll +0 -0
  51. data/vendor/local/lib/groonga/plugins/ruby/eval.dll.a +0 -0
  52. data/vendor/local/lib/groonga/plugins/ruby/eval.la +3 -3
  53. data/vendor/local/lib/groonga/plugins/ruby/load.a +0 -0
  54. data/vendor/local/lib/groonga/plugins/ruby/load.dll +0 -0
  55. data/vendor/local/lib/groonga/plugins/ruby/load.dll.a +0 -0
  56. data/vendor/local/lib/groonga/plugins/ruby/load.la +3 -3
  57. data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
  58. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
  59. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
  60. data/vendor/local/lib/groonga/plugins/suggest/suggest.la +3 -3
  61. data/vendor/local/lib/groonga/plugins/table/table.a +0 -0
  62. data/vendor/local/lib/groonga/plugins/table/table.dll +0 -0
  63. data/vendor/local/lib/groonga/plugins/table/table.dll.a +0 -0
  64. data/vendor/local/lib/groonga/plugins/table/table.la +3 -3
  65. data/vendor/local/lib/groonga/plugins/token_filters/stop_word.a +0 -0
  66. data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll +0 -0
  67. data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll.a +0 -0
  68. data/vendor/local/lib/groonga/plugins/token_filters/stop_word.la +3 -3
  69. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
  70. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
  71. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
  72. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.la +3 -3
  73. data/vendor/local/lib/groonga/scripts/ruby/command/grndb.rb +169 -0
  74. data/vendor/local/lib/groonga/scripts/ruby/database.rb +19 -0
  75. data/vendor/local/lib/groonga/scripts/ruby/initialize/post.rb +4 -0
  76. data/vendor/local/lib/groonga/scripts/ruby/initialize/pre.rb +1 -0
  77. data/vendor/local/lib/groonga/scripts/ruby/require.rb +68 -0
  78. data/vendor/local/lib/groonga/scripts/ruby/table_cursor.rb +11 -0
  79. data/vendor/local/lib/libgroonga.a +0 -0
  80. data/vendor/local/lib/libgroonga.dll.a +0 -0
  81. data/vendor/local/lib/libgroonga.la +3 -3
  82. data/vendor/local/lib/liblz4.a +0 -0
  83. data/vendor/local/lib/liblz4.dll +0 -0
  84. data/vendor/local/lib/liblz4.dll.1 +0 -0
  85. data/vendor/local/lib/liblz4.dll.1.5.0 +0 -0
  86. data/vendor/local/lib/libmecab.a +0 -0
  87. data/vendor/local/lib/libmecab.dll.a +0 -0
  88. data/vendor/local/lib/libmecab.la +3 -3
  89. data/vendor/local/lib/libmsgpack.a +0 -0
  90. data/vendor/local/lib/libmsgpack.dll.a +0 -0
  91. data/vendor/local/lib/libmsgpack.la +3 -3
  92. data/vendor/local/lib/libmsgpackc.a +0 -0
  93. data/vendor/local/lib/libmsgpackc.dll.a +0 -0
  94. data/vendor/local/lib/libmsgpackc.la +3 -3
  95. data/vendor/local/lib/libonig.a +0 -0
  96. data/vendor/local/lib/libonig.dll.a +0 -0
  97. data/vendor/local/lib/libonig.la +2 -2
  98. data/vendor/local/lib/libz.a +0 -0
  99. data/vendor/local/lib/libz.dll.a +0 -0
  100. data/vendor/local/lib/pkgconfig/groonga.pc +3 -3
  101. data/vendor/local/lib/pkgconfig/liblz4.pc +6 -6
  102. data/vendor/local/lib/pkgconfig/msgpack.pc +1 -1
  103. data/vendor/local/lib/pkgconfig/oniguruma.pc +6 -6
  104. data/vendor/local/lib/pkgconfig/zlib.pc +3 -3
  105. data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
  106. data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
  107. data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
  108. data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
  109. data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
  110. data/vendor/local/sbin/groonga-httpd-restart +1 -1
  111. data/vendor/local/sbin/groonga-httpd.exe +0 -0
  112. data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
  113. data/vendor/local/share/doc/groonga/en/html/_sources/contribution/documentation/introduction.txt +9 -12
  114. data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +3 -3
  115. data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +10 -3
  116. data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +3 -3
  117. data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +3 -3
  118. data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +4 -4
  119. data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +3 -3
  120. data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +10 -3
  121. data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +9 -9
  122. data/vendor/local/share/doc/groonga/en/html/_sources/limitations.txt +1 -1
  123. data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +75 -1
  124. data/vendor/local/share/doc/groonga/en/html/_sources/reference/api/grn_column.txt +16 -0
  125. data/vendor/local/share/doc/groonga/en/html/_sources/reference/api/grn_db.txt +40 -0
  126. data/vendor/local/share/doc/groonga/en/html/_sources/reference/command.txt +1 -0
  127. data/vendor/local/share/doc/groonga/en/html/_sources/reference/command/request_id.txt +41 -0
  128. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/clearlock.txt +3 -0
  129. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/lock_clear.txt +91 -0
  130. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/request_cancel.txt +139 -0
  131. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/truncate.txt +39 -14
  132. data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/grndb.txt +84 -0
  133. data/vendor/local/share/doc/groonga/en/html/_sources/reference/normalizers.txt +2 -21
  134. data/vendor/local/share/doc/groonga/en/html/_sources/reference/token_filters.txt +16 -7
  135. data/vendor/local/share/doc/groonga/en/html/_sources/server/http/comparison.txt +1 -1
  136. data/vendor/local/share/doc/groonga/en/html/_static/basic.css +5 -67
  137. data/vendor/local/share/doc/groonga/en/html/_static/doctools.js +0 -25
  138. data/vendor/local/share/doc/groonga/en/html/_static/down-pressed.png +0 -0
  139. data/vendor/local/share/doc/groonga/en/html/_static/down.png +0 -0
  140. data/vendor/local/share/doc/groonga/en/html/_static/file.png +0 -0
  141. data/vendor/local/share/doc/groonga/en/html/_static/jquery.js +2 -4
  142. data/vendor/local/share/doc/groonga/en/html/_static/minus.png +0 -0
  143. data/vendor/local/share/doc/groonga/en/html/_static/plus.png +0 -0
  144. data/vendor/local/share/doc/groonga/en/html/_static/up-pressed.png +0 -0
  145. data/vendor/local/share/doc/groonga/en/html/_static/up.png +0 -0
  146. data/vendor/local/share/doc/groonga/en/html/_static/websupport.js +14 -14
  147. data/vendor/local/share/doc/groonga/en/html/characteristic.html +17 -19
  148. data/vendor/local/share/doc/groonga/en/html/client.html +17 -19
  149. data/vendor/local/share/doc/groonga/en/html/community.html +17 -19
  150. data/vendor/local/share/doc/groonga/en/html/contribution.html +18 -20
  151. data/vendor/local/share/doc/groonga/en/html/contribution/development.html +17 -19
  152. data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +17 -19
  153. data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +17 -19
  154. data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +17 -19
  155. data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +17 -19
  156. data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +17 -19
  157. data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +17 -19
  158. data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +17 -19
  159. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +17 -19
  160. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +17 -19
  161. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/introduction.html +33 -35
  162. data/vendor/local/share/doc/groonga/en/html/contribution/report.html +17 -19
  163. data/vendor/local/share/doc/groonga/en/html/development.html +17 -19
  164. data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +24 -26
  165. data/vendor/local/share/doc/groonga/en/html/genindex.html +22 -14
  166. data/vendor/local/share/doc/groonga/en/html/index.html +84 -82
  167. data/vendor/local/share/doc/groonga/en/html/install.html +31 -33
  168. data/vendor/local/share/doc/groonga/en/html/install/centos.html +28 -30
  169. data/vendor/local/share/doc/groonga/en/html/install/debian.html +29 -25
  170. data/vendor/local/share/doc/groonga/en/html/install/fedora.html +25 -27
  171. data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +22 -24
  172. data/vendor/local/share/doc/groonga/en/html/install/others.html +88 -90
  173. data/vendor/local/share/doc/groonga/en/html/install/solaris.html +22 -24
  174. data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +30 -26
  175. data/vendor/local/share/doc/groonga/en/html/install/windows.html +30 -32
  176. data/vendor/local/share/doc/groonga/en/html/limitations.html +18 -20
  177. data/vendor/local/share/doc/groonga/en/html/news.html +226 -147
  178. data/vendor/local/share/doc/groonga/en/html/news/0.x.html +17 -19
  179. data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +18 -20
  180. data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +17 -19
  181. data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +32 -34
  182. data/vendor/local/share/doc/groonga/en/html/news/1.3.x.html +27 -29
  183. data/vendor/local/share/doc/groonga/en/html/news/2.x.html +97 -99
  184. data/vendor/local/share/doc/groonga/en/html/news/3.x.html +69 -71
  185. data/vendor/local/share/doc/groonga/en/html/news/senna.html +17 -19
  186. data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
  187. data/vendor/local/share/doc/groonga/en/html/reference.html +83 -81
  188. data/vendor/local/share/doc/groonga/en/html/reference/api.html +37 -39
  189. data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +31 -33
  190. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +43 -45
  191. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +93 -65
  192. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +27 -29
  193. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_content_type.html +24 -26
  194. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +61 -63
  195. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +86 -33
  196. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +28 -30
  197. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +64 -66
  198. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +26 -28
  199. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +29 -31
  200. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +27 -29
  201. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +26 -28
  202. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +26 -28
  203. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +25 -27
  204. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +74 -76
  205. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +29 -31
  206. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +24 -26
  207. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +60 -62
  208. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +49 -51
  209. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +25 -27
  210. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +22 -24
  211. data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +40 -42
  212. data/vendor/local/share/doc/groonga/en/html/reference/cast.html +17 -19
  213. data/vendor/local/share/doc/groonga/en/html/reference/column.html +19 -21
  214. data/vendor/local/share/doc/groonga/en/html/reference/columns/pseudo.html +22 -24
  215. data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +59 -61
  216. data/vendor/local/share/doc/groonga/en/html/reference/command.html +54 -53
  217. data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +17 -19
  218. data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +58 -60
  219. data/vendor/local/share/doc/groonga/en/html/reference/command/request_id.html +173 -0
  220. data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +110 -112
  221. data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +57 -59
  222. data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +59 -61
  223. data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +44 -43
  224. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +55 -57
  225. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +90 -92
  226. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +40 -42
  227. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +59 -61
  228. data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +55 -57
  229. data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +40 -42
  230. data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +53 -55
  231. data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +38 -40
  232. data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +61 -63
  233. data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_clear.html +221 -0
  234. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +42 -44
  235. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +42 -44
  236. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +42 -44
  237. data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +81 -83
  238. data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +48 -50
  239. data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +37 -39
  240. data/vendor/local/share/doc/groonga/en/html/reference/commands/range_filter.html +37 -39
  241. data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +49 -51
  242. data/vendor/local/share/doc/groonga/en/html/reference/commands/request_cancel.html +276 -0
  243. data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +54 -56
  244. data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +53 -55
  245. data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +384 -386
  246. data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +37 -39
  247. data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +45 -47
  248. data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +81 -83
  249. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +146 -148
  250. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +49 -51
  251. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +39 -41
  252. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_tokenize.html +65 -67
  253. data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +101 -103
  254. data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenizer_list.html +45 -47
  255. data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +178 -54
  256. data/vendor/local/share/doc/groonga/en/html/reference/executables.html +31 -32
  257. data/vendor/local/share/doc/groonga/en/html/reference/executables/grndb.html +224 -0
  258. data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +43 -45
  259. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +64 -66
  260. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +111 -113
  261. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +37 -39
  262. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +43 -45
  263. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +80 -82
  264. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +56 -58
  265. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +81 -83
  266. data/vendor/local/share/doc/groonga/en/html/reference/function.html +18 -20
  267. data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +40 -42
  268. data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +19 -21
  269. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +79 -81
  270. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +30 -32
  271. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +20 -22
  272. data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +51 -53
  273. data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +39 -41
  274. data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +28 -30
  275. data/vendor/local/share/doc/groonga/en/html/reference/functions/in_values.html +17 -19
  276. data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +17 -19
  277. data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +46 -48
  278. data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +18 -20
  279. data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +42 -44
  280. data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +39 -41
  281. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +24 -26
  282. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +208 -210
  283. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +260 -262
  284. data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +19 -21
  285. data/vendor/local/share/doc/groonga/en/html/reference/log.html +20 -22
  286. data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +46 -65
  287. data/vendor/local/share/doc/groonga/en/html/reference/operations.html +17 -19
  288. data/vendor/local/share/doc/groonga/en/html/reference/operations/geolocation_search.html +17 -19
  289. data/vendor/local/share/doc/groonga/en/html/reference/output.html +36 -38
  290. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +17 -19
  291. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +55 -57
  292. data/vendor/local/share/doc/groonga/en/html/reference/suggest.html +17 -19
  293. data/vendor/local/share/doc/groonga/en/html/reference/suggest/completion.html +17 -19
  294. data/vendor/local/share/doc/groonga/en/html/reference/suggest/correction.html +17 -19
  295. data/vendor/local/share/doc/groonga/en/html/reference/suggest/introduction.html +17 -19
  296. data/vendor/local/share/doc/groonga/en/html/reference/suggest/suggestion.html +17 -19
  297. data/vendor/local/share/doc/groonga/en/html/reference/tables.html +52 -54
  298. data/vendor/local/share/doc/groonga/en/html/reference/token_filters.html +58 -58
  299. data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +17 -19
  300. data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +27 -29
  301. data/vendor/local/share/doc/groonga/en/html/reference/types.html +38 -40
  302. data/vendor/local/share/doc/groonga/en/html/search.html +11 -11
  303. data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
  304. data/vendor/local/share/doc/groonga/en/html/server.html +17 -19
  305. data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +17 -19
  306. data/vendor/local/share/doc/groonga/en/html/server/http.html +17 -19
  307. data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +32 -34
  308. data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +17 -19
  309. data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +17 -19
  310. data/vendor/local/share/doc/groonga/en/html/server/package.html +31 -33
  311. data/vendor/local/share/doc/groonga/en/html/spec.html +17 -19
  312. data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +125 -127
  313. data/vendor/local/share/doc/groonga/en/html/spec/search.html +17 -19
  314. data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +17 -19
  315. data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +17 -19
  316. data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +18 -20
  317. data/vendor/local/share/doc/groonga/en/html/tutorial.html +18 -20
  318. data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +17 -19
  319. data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +31 -33
  320. data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +20 -22
  321. data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +17 -19
  322. data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +17 -19
  323. data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +21 -23
  324. data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +50 -52
  325. data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +17 -19
  326. data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +18 -20
  327. data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +20 -22
  328. data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +33 -35
  329. data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
  330. data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/documentation/introduction.txt +9 -12
  331. data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +3 -3
  332. data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +10 -3
  333. data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +3 -3
  334. data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +3 -3
  335. data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +4 -4
  336. data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +3 -3
  337. data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +10 -3
  338. data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +9 -9
  339. data/vendor/local/share/doc/groonga/ja/html/_sources/limitations.txt +1 -1
  340. data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +75 -1
  341. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api/grn_column.txt +16 -0
  342. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api/grn_db.txt +40 -0
  343. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/command.txt +1 -0
  344. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/command/request_id.txt +41 -0
  345. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/clearlock.txt +3 -0
  346. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/lock_clear.txt +91 -0
  347. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/request_cancel.txt +139 -0
  348. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/truncate.txt +39 -14
  349. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/grndb.txt +84 -0
  350. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/normalizers.txt +2 -21
  351. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/token_filters.txt +16 -7
  352. data/vendor/local/share/doc/groonga/ja/html/_sources/server/http/comparison.txt +1 -1
  353. data/vendor/local/share/doc/groonga/ja/html/_static/basic.css +5 -67
  354. data/vendor/local/share/doc/groonga/ja/html/_static/doctools.js +0 -25
  355. data/vendor/local/share/doc/groonga/ja/html/_static/down-pressed.png +0 -0
  356. data/vendor/local/share/doc/groonga/ja/html/_static/down.png +0 -0
  357. data/vendor/local/share/doc/groonga/ja/html/_static/file.png +0 -0
  358. data/vendor/local/share/doc/groonga/ja/html/_static/jquery.js +2 -4
  359. data/vendor/local/share/doc/groonga/ja/html/_static/minus.png +0 -0
  360. data/vendor/local/share/doc/groonga/ja/html/_static/plus.png +0 -0
  361. data/vendor/local/share/doc/groonga/ja/html/_static/up-pressed.png +0 -0
  362. data/vendor/local/share/doc/groonga/ja/html/_static/up.png +0 -0
  363. data/vendor/local/share/doc/groonga/ja/html/_static/websupport.js +14 -14
  364. data/vendor/local/share/doc/groonga/ja/html/characteristic.html +17 -19
  365. data/vendor/local/share/doc/groonga/ja/html/client.html +17 -19
  366. data/vendor/local/share/doc/groonga/ja/html/community.html +17 -19
  367. data/vendor/local/share/doc/groonga/ja/html/contribution.html +19 -21
  368. data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +17 -19
  369. data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +17 -19
  370. data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +17 -19
  371. data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +17 -19
  372. data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +20 -22
  373. data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +17 -19
  374. data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +17 -19
  375. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +17 -19
  376. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +17 -19
  377. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +18 -20
  378. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/introduction.html +35 -37
  379. data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +17 -19
  380. data/vendor/local/share/doc/groonga/ja/html/development.html +17 -19
  381. data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +20 -22
  382. data/vendor/local/share/doc/groonga/ja/html/genindex.html +26 -18
  383. data/vendor/local/share/doc/groonga/ja/html/index.html +84 -82
  384. data/vendor/local/share/doc/groonga/ja/html/install.html +31 -33
  385. data/vendor/local/share/doc/groonga/ja/html/install/centos.html +37 -39
  386. data/vendor/local/share/doc/groonga/ja/html/install/debian.html +31 -27
  387. data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +28 -30
  388. data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +22 -24
  389. data/vendor/local/share/doc/groonga/ja/html/install/others.html +79 -81
  390. data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +21 -23
  391. data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +32 -28
  392. data/vendor/local/share/doc/groonga/ja/html/install/windows.html +29 -31
  393. data/vendor/local/share/doc/groonga/ja/html/limitations.html +19 -21
  394. data/vendor/local/share/doc/groonga/ja/html/news.html +226 -136
  395. data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +17 -19
  396. data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +18 -20
  397. data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +17 -19
  398. data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +33 -35
  399. data/vendor/local/share/doc/groonga/ja/html/news/1.3.x.html +27 -29
  400. data/vendor/local/share/doc/groonga/ja/html/news/2.x.html +91 -93
  401. data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +59 -61
  402. data/vendor/local/share/doc/groonga/ja/html/news/senna.html +17 -19
  403. data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
  404. data/vendor/local/share/doc/groonga/ja/html/reference.html +83 -81
  405. data/vendor/local/share/doc/groonga/ja/html/reference/api.html +37 -39
  406. data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +31 -33
  407. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +38 -40
  408. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +87 -59
  409. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +27 -29
  410. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_content_type.html +24 -26
  411. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +55 -57
  412. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +85 -32
  413. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +28 -30
  414. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +50 -52
  415. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +26 -28
  416. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +29 -31
  417. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +27 -29
  418. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +26 -28
  419. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +26 -28
  420. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +25 -27
  421. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +75 -77
  422. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +29 -31
  423. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +24 -26
  424. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +60 -62
  425. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +49 -51
  426. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +25 -27
  427. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +22 -24
  428. data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +40 -42
  429. data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +17 -19
  430. data/vendor/local/share/doc/groonga/ja/html/reference/column.html +19 -21
  431. data/vendor/local/share/doc/groonga/ja/html/reference/columns/pseudo.html +22 -24
  432. data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +49 -51
  433. data/vendor/local/share/doc/groonga/ja/html/reference/command.html +54 -53
  434. data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +17 -19
  435. data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +48 -50
  436. data/vendor/local/share/doc/groonga/ja/html/reference/command/request_id.html +174 -0
  437. data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +109 -111
  438. data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +54 -56
  439. data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +59 -61
  440. data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +44 -43
  441. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +55 -57
  442. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +82 -84
  443. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +40 -42
  444. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +56 -58
  445. data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +55 -57
  446. data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +40 -42
  447. data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +52 -54
  448. data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +38 -40
  449. data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +54 -56
  450. data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_clear.html +224 -0
  451. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +42 -44
  452. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +42 -44
  453. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +42 -44
  454. data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +76 -78
  455. data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +48 -50
  456. data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +37 -39
  457. data/vendor/local/share/doc/groonga/ja/html/reference/commands/range_filter.html +37 -39
  458. data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +46 -48
  459. data/vendor/local/share/doc/groonga/ja/html/reference/commands/request_cancel.html +278 -0
  460. data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +54 -56
  461. data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +53 -55
  462. data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +255 -257
  463. data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +37 -39
  464. data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +43 -45
  465. data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +79 -81
  466. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +122 -124
  467. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +49 -51
  468. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +39 -41
  469. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_tokenize.html +60 -62
  470. data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +86 -88
  471. data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +45 -47
  472. data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +178 -54
  473. data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +31 -32
  474. data/vendor/local/share/doc/groonga/ja/html/reference/executables/grndb.html +222 -0
  475. data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +43 -45
  476. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +64 -66
  477. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +99 -101
  478. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +37 -39
  479. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +43 -45
  480. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +80 -82
  481. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +56 -58
  482. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +81 -83
  483. data/vendor/local/share/doc/groonga/ja/html/reference/function.html +18 -20
  484. data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +40 -42
  485. data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +19 -21
  486. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +67 -69
  487. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +30 -32
  488. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +20 -22
  489. data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +41 -43
  490. data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +30 -32
  491. data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +28 -30
  492. data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_values.html +17 -19
  493. data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +17 -19
  494. data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +39 -41
  495. data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +18 -20
  496. data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +28 -30
  497. data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +31 -33
  498. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +21 -23
  499. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +115 -117
  500. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +180 -182
  501. data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +18 -20
  502. data/vendor/local/share/doc/groonga/ja/html/reference/log.html +20 -22
  503. data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +37 -54
  504. data/vendor/local/share/doc/groonga/ja/html/reference/operations.html +17 -19
  505. data/vendor/local/share/doc/groonga/ja/html/reference/operations/geolocation_search.html +17 -19
  506. data/vendor/local/share/doc/groonga/ja/html/reference/output.html +32 -34
  507. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +17 -19
  508. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +34 -36
  509. data/vendor/local/share/doc/groonga/ja/html/reference/suggest.html +17 -19
  510. data/vendor/local/share/doc/groonga/ja/html/reference/suggest/completion.html +17 -19
  511. data/vendor/local/share/doc/groonga/ja/html/reference/suggest/correction.html +17 -19
  512. data/vendor/local/share/doc/groonga/ja/html/reference/suggest/introduction.html +17 -19
  513. data/vendor/local/share/doc/groonga/ja/html/reference/suggest/suggestion.html +17 -19
  514. data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +42 -44
  515. data/vendor/local/share/doc/groonga/ja/html/reference/token_filters.html +55 -55
  516. data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +17 -19
  517. data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +27 -29
  518. data/vendor/local/share/doc/groonga/ja/html/reference/types.html +36 -38
  519. data/vendor/local/share/doc/groonga/ja/html/search.html +11 -11
  520. data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
  521. data/vendor/local/share/doc/groonga/ja/html/server.html +17 -19
  522. data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +17 -19
  523. data/vendor/local/share/doc/groonga/ja/html/server/http.html +17 -19
  524. data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +26 -28
  525. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +17 -19
  526. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +17 -19
  527. data/vendor/local/share/doc/groonga/ja/html/server/package.html +32 -34
  528. data/vendor/local/share/doc/groonga/ja/html/spec.html +17 -19
  529. data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +124 -126
  530. data/vendor/local/share/doc/groonga/ja/html/spec/search.html +17 -19
  531. data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +17 -19
  532. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +17 -19
  533. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +18 -20
  534. data/vendor/local/share/doc/groonga/ja/html/tutorial.html +18 -20
  535. data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +18 -20
  536. data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +30 -32
  537. data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +17 -19
  538. data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +18 -20
  539. data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +17 -19
  540. data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +24 -26
  541. data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +47 -49
  542. data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +18 -20
  543. data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +18 -20
  544. data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +20 -22
  545. data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +31 -33
  546. data/vendor/local/share/groonga/html/admin/index.html +1 -1
  547. data/vendor/local/share/groonga/html/admin/index.ja.html +1 -1
  548. data/vendor/local/share/license/mruby/AUTHORS +11 -0
  549. data/vendor/local/share/license/mruby/README.md +32 -20
  550. data/vendor/local/share/man/ja/man1/groonga.1 +952 -259
  551. data/vendor/local/share/man/man1/groonga.1 +930 -239
  552. metadata +103 -80
  553. data/vendor/local/bin/lz4 +0 -0
  554. data/vendor/local/bin/lz4c +0 -0
  555. data/vendor/local/lib/liblz4.dll.1.4.0 +0 -0
  556. data/vendor/local/share/doc/groonga/en/html/_static/jquery-1.11.1.js +0 -10308
  557. data/vendor/local/share/doc/groonga/en/html/_static/underscore-1.3.1.js +0 -999
  558. data/vendor/local/share/doc/groonga/ja/html/_static/jquery-1.11.1.js +0 -10308
  559. data/vendor/local/share/doc/groonga/ja/html/_static/underscore-1.3.1.js +0 -999
@@ -105,24 +105,27 @@ They just use the externally allocated memory for state instead of allocating th
105
105
  /**************************************
106
106
  Experimental Streaming Functions
107
107
  **************************************/
108
- #define LZ4_STREAMHCSIZE_U32 65548
109
- #define LZ4_STREAMHCSIZE (LZ4_STREAMHCSIZE_U32 * sizeof(unsigned int))
110
- typedef struct { unsigned int table[LZ4_STREAMHCSIZE_U32]; } LZ4_streamHC_t;
111
-
108
+ #define LZ4_STREAMHCSIZE_U64 32774
109
+ #define LZ4_STREAMHCSIZE (LZ4_STREAMHCSIZE_U64 * sizeof(unsigned long long))
110
+ typedef struct { unsigned long long table[LZ4_STREAMHCSIZE_U64]; } LZ4_streamHC_t;
112
111
  /*
112
+ LZ4_streamHC_t
113
113
  This structure allows static allocation of LZ4 HC streaming state.
114
114
  State must then be initialized using LZ4_resetStreamHC() before first use.
115
115
 
116
- If you prefer dynamic allocation, please refer to functions below.
116
+ Static allocation should only be used with statically linked library.
117
+ If you want to use LZ4 as a DLL, please use construction functions below, which are more future-proof.
117
118
  */
118
119
 
120
+
119
121
  LZ4_streamHC_t* LZ4_createStreamHC(void);
120
122
  int LZ4_freeStreamHC (LZ4_streamHC_t* LZ4_streamHCPtr);
121
-
122
123
  /*
123
124
  These functions create and release memory for LZ4 HC streaming state.
124
125
  Newly created states are already initialized.
125
126
  Existing state space can be re-used anytime using LZ4_resetStreamHC().
127
+ If you use LZ4 as a DLL, please use these functions instead of direct struct allocation,
128
+ to avoid size mismatch between different versions.
126
129
  */
127
130
 
128
131
  void LZ4_resetStreamHC (LZ4_streamHC_t* LZ4_streamHCPtr, int compressionLevel);
@@ -152,70 +155,18 @@ using LZ4_saveDictHC().
152
155
 
153
156
 
154
157
  /**************************************
155
- Deprecated Streaming Functions
156
- **************************************/
157
- /* Note : these streaming functions still follows the older model */
158
+ * Deprecated Streaming Functions
159
+ * ************************************/
160
+ /* Note : these streaming functions follows the older model, and should no longer be used */
158
161
  void* LZ4_createHC (const char* inputBuffer);
159
- //int LZ4_compressHC_continue (void* LZ4HC_Data, const char* source, char* dest, int inputSize);
160
- //int LZ4_compressHC_limitedOutput_continue (void* LZ4HC_Data, const char* source, char* dest, int inputSize, int maxOutputSize);
161
162
  char* LZ4_slideInputBufferHC (void* LZ4HC_Data);
162
163
  int LZ4_freeHC (void* LZ4HC_Data);
163
164
 
164
165
  int LZ4_compressHC2_continue (void* LZ4HC_Data, const char* source, char* dest, int inputSize, int compressionLevel);
165
166
  int LZ4_compressHC2_limitedOutput_continue (void* LZ4HC_Data, const char* source, char* dest, int inputSize, int maxOutputSize, int compressionLevel);
166
167
 
167
- /*
168
- These functions allow the compression of dependent blocks, where each block benefits from prior 64 KB within preceding blocks.
169
- In order to achieve this, it is necessary to start creating the LZ4HC Data Structure, thanks to the function :
170
-
171
- void* LZ4_createHC (const char* inputBuffer);
172
- The result of the function is the (void*) pointer on the LZ4HC Data Structure.
173
- This pointer will be needed in all other functions.
174
- If the pointer returned is NULL, then the allocation has failed, and compression must be aborted.
175
- The only parameter 'const char* inputBuffer' must, obviously, point at the beginning of input buffer.
176
- The input buffer must be already allocated, and size at least 192KB.
177
- 'inputBuffer' will also be the 'const char* source' of the first block.
178
-
179
- All blocks are expected to lay next to each other within the input buffer, starting from 'inputBuffer'.
180
- To compress each block, use either LZ4_compressHC_continue() or LZ4_compressHC_limitedOutput_continue().
181
- Their behavior are identical to LZ4_compressHC() or LZ4_compressHC_limitedOutput(),
182
- but require the LZ4HC Data Structure as their first argument, and check that each block starts right after the previous one.
183
- If next block does not begin immediately after the previous one, the compression will fail (return 0).
184
-
185
- When it's no longer possible to lay the next block after the previous one (not enough space left into input buffer), a call to :
186
- char* LZ4_slideInputBufferHC(void* LZ4HC_Data);
187
- must be performed. It will typically copy the latest 64KB of input at the beginning of input buffer.
188
- Note that, for this function to work properly, minimum size of an input buffer must be 192KB.
189
- ==> The memory position where the next input data block must start is provided as the result of the function.
190
-
191
- Compression can then resume, using LZ4_compressHC_continue() or LZ4_compressHC_limitedOutput_continue(), as usual.
192
-
193
- When compression is completed, a call to LZ4_freeHC() will release the memory used by the LZ4HC Data Structure.
194
- */
195
-
196
- int LZ4_sizeofStreamStateHC(void);
197
- int LZ4_resetStreamStateHC(void* state, const char* inputBuffer);
198
-
199
- /*
200
- These functions achieve the same result as :
201
- void* LZ4_createHC (const char* inputBuffer);
202
-
203
- They are provided here to allow the user program to allocate memory using its own routines.
204
-
205
- To know how much space must be allocated, use LZ4_sizeofStreamStateHC();
206
- Note also that space must be aligned for pointers (32 or 64 bits).
207
-
208
- Once space is allocated, you must initialize it using : LZ4_resetStreamStateHC(void* state, const char* inputBuffer);
209
- void* state is a pointer to the space allocated.
210
- It must be aligned for pointers (32 or 64 bits), and be large enough.
211
- The parameter 'const char* inputBuffer' must, obviously, point at the beginning of input buffer.
212
- The input buffer must be already allocated, and size at least 192KB.
213
- 'inputBuffer' will also be the 'const char* source' of the first block.
214
-
215
- The same space can be re-used multiple times, just by initializing it each time with LZ4_resetStreamState().
216
- return value of LZ4_resetStreamStateHC() must be 0 is OK.
217
- Any other value means there was an error (typically, state is not aligned for pointers (32 or 64 bits)).
218
- */
168
+ int LZ4_sizeofStreamStateHC(void);
169
+ int LZ4_resetStreamStateHC(void* state, const char* inputBuffer);
219
170
 
220
171
 
221
172
  #if defined (__cplusplus)
@@ -1,5 +1,5 @@
1
1
  # tsv.la - a libtool library file
2
- # Generated by libtool (GNU libtool) 2.4.2 Debian-2.4.2-1.7ubuntu1
2
+ # Generated by libtool (GNU libtool) 2.4.2 Debian-2.4.2-1.10
3
3
  #
4
4
  # Please DO NOT delete this file!
5
5
  # It is necessary for linking the library.
@@ -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/kenhys/work/groonga/groonga.clean/packages/windows/dist-x86/lib /home/kenhys/work/groonga/groonga.clean/packages/windows/dist-x86/lib/libgroonga.la /home/kenhys/work/groonga/groonga.clean/packages/windows/dist-x86/lib/libmsgpack.la /home/kenhys/work/groonga/groonga.clean/packages/windows/dist-x86/lib/libonig.la -llz4 -lz -lws2_32'
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 -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/kenhys/work/groonga/groonga.clean/packages/windows/dist-x86/lib/groonga/plugins/query_expanders'
41
+ libdir='/home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib/groonga/plugins/query_expanders'
@@ -1,5 +1,5 @@
1
1
  # eval.la - a libtool library file
2
- # Generated by libtool (GNU libtool) 2.4.2 Debian-2.4.2-1.7ubuntu1
2
+ # Generated by libtool (GNU libtool) 2.4.2 Debian-2.4.2-1.10
3
3
  #
4
4
  # Please DO NOT delete this file!
5
5
  # It is necessary for linking the library.
@@ -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/kenhys/work/groonga/groonga.clean/packages/windows/dist-x86/lib /home/kenhys/work/groonga/groonga.clean/packages/windows/dist-x86/lib/libgroonga.la /home/kenhys/work/groonga/groonga.clean/packages/windows/dist-x86/lib/libonig.la -llz4 -lz -lws2_32 /home/kenhys/work/groonga/groonga.clean/packages/windows/dist-x86/lib/libmsgpack.la'
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 -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/kenhys/work/groonga/groonga.clean/packages/windows/dist-x86/lib/groonga/plugins/ruby'
41
+ libdir='/home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib/groonga/plugins/ruby'
@@ -1,5 +1,5 @@
1
1
  # load.la - a libtool library file
2
- # Generated by libtool (GNU libtool) 2.4.2 Debian-2.4.2-1.7ubuntu1
2
+ # Generated by libtool (GNU libtool) 2.4.2 Debian-2.4.2-1.10
3
3
  #
4
4
  # Please DO NOT delete this file!
5
5
  # It is necessary for linking the library.
@@ -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/kenhys/work/groonga/groonga.clean/packages/windows/dist-x86/lib /home/kenhys/work/groonga/groonga.clean/packages/windows/dist-x86/lib/libgroonga.la /home/kenhys/work/groonga/groonga.clean/packages/windows/dist-x86/lib/libonig.la -llz4 -lz -lws2_32 /home/kenhys/work/groonga/groonga.clean/packages/windows/dist-x86/lib/libmsgpack.la'
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 -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/kenhys/work/groonga/groonga.clean/packages/windows/dist-x86/lib/groonga/plugins/ruby'
41
+ libdir='/home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib/groonga/plugins/ruby'
@@ -1,5 +1,5 @@
1
1
  # suggest.la - a libtool library file
2
- # Generated by libtool (GNU libtool) 2.4.2 Debian-2.4.2-1.7ubuntu1
2
+ # Generated by libtool (GNU libtool) 2.4.2 Debian-2.4.2-1.10
3
3
  #
4
4
  # Please DO NOT delete this file!
5
5
  # It is necessary for linking the library.
@@ -17,7 +17,7 @@ old_library='suggest.a'
17
17
  inherited_linker_flags=''
18
18
 
19
19
  # Libraries that this one depends upon.
20
- dependency_libs=' -L/home/kenhys/work/groonga/groonga.clean/packages/windows/dist-x86/lib /home/kenhys/work/groonga/groonga.clean/packages/windows/dist-x86/lib/libgroonga.la /home/kenhys/work/groonga/groonga.clean/packages/windows/dist-x86/lib/libonig.la -llz4 -lz -lws2_32 /home/kenhys/work/groonga/groonga.clean/packages/windows/dist-x86/lib/libmsgpack.la'
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 -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/kenhys/work/groonga/groonga.clean/packages/windows/dist-x86/lib/groonga/plugins/suggest'
41
+ libdir='/home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib/groonga/plugins/suggest'
@@ -1,5 +1,5 @@
1
1
  # table.la - a libtool library file
2
- # Generated by libtool (GNU libtool) 2.4.2 Debian-2.4.2-1.7ubuntu1
2
+ # Generated by libtool (GNU libtool) 2.4.2 Debian-2.4.2-1.10
3
3
  #
4
4
  # Please DO NOT delete this file!
5
5
  # It is necessary for linking the library.
@@ -17,7 +17,7 @@ old_library='table.a'
17
17
  inherited_linker_flags=''
18
18
 
19
19
  # Libraries that this one depends upon.
20
- dependency_libs=' -L/home/kenhys/work/groonga/groonga.clean/packages/windows/dist-x86/lib /home/kenhys/work/groonga/groonga.clean/packages/windows/dist-x86/lib/libgroonga.la /home/kenhys/work/groonga/groonga.clean/packages/windows/dist-x86/lib/libonig.la -llz4 -lz -lws2_32 /home/kenhys/work/groonga/groonga.clean/packages/windows/dist-x86/lib/libmsgpack.la'
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 -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/kenhys/work/groonga/groonga.clean/packages/windows/dist-x86/lib/groonga/plugins/table'
41
+ libdir='/home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib/groonga/plugins/table'
@@ -1,5 +1,5 @@
1
1
  # stop_word.la - a libtool library file
2
- # Generated by libtool (GNU libtool) 2.4.2 Debian-2.4.2-1.7ubuntu1
2
+ # Generated by libtool (GNU libtool) 2.4.2 Debian-2.4.2-1.10
3
3
  #
4
4
  # Please DO NOT delete this file!
5
5
  # It is necessary for linking the library.
@@ -17,7 +17,7 @@ old_library='stop_word.a'
17
17
  inherited_linker_flags=''
18
18
 
19
19
  # Libraries that this one depends upon.
20
- dependency_libs=' -L/home/kenhys/work/groonga/groonga.clean/packages/windows/dist-x86/lib /home/kenhys/work/groonga/groonga.clean/packages/windows/dist-x86/lib/libgroonga.la /home/kenhys/work/groonga/groonga.clean/packages/windows/dist-x86/lib/libmsgpack.la /home/kenhys/work/groonga/groonga.clean/packages/windows/dist-x86/lib/libonig.la -llz4 -lz -lws2_32'
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 -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/kenhys/work/groonga/groonga.clean/packages/windows/dist-x86/lib/groonga/plugins/token_filters'
41
+ libdir='/home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib/groonga/plugins/token_filters'
@@ -1,5 +1,5 @@
1
1
  # mecab.la - a libtool library file
2
- # Generated by libtool (GNU libtool) 2.4.2 Debian-2.4.2-1.7ubuntu1
2
+ # Generated by libtool (GNU libtool) 2.4.2 Debian-2.4.2-1.10
3
3
  #
4
4
  # Please DO NOT delete this file!
5
5
  # It is necessary for linking the library.
@@ -17,7 +17,7 @@ old_library='mecab.a'
17
17
  inherited_linker_flags=''
18
18
 
19
19
  # Libraries that this one depends upon.
20
- dependency_libs=' -L/home/kenhys/work/groonga/groonga.clean/packages/windows/dist-x86/lib /home/kenhys/work/groonga/groonga.clean/packages/windows/dist-x86/lib/libmecab.la /home/kenhys/work/groonga/groonga.clean/packages/windows/dist-x86/lib/libgroonga.la /home/kenhys/work/groonga/groonga.clean/packages/windows/dist-x86/lib/libmsgpack.la /home/kenhys/work/groonga/groonga.clean/packages/windows/dist-x86/lib/libonig.la -llz4 -lz -lws2_32'
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/libmecab.la -lpthread /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 -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/kenhys/work/groonga/groonga.clean/packages/windows/dist-x86/lib/groonga/plugins/tokenizers'
41
+ libdir='/home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib/groonga/plugins/tokenizers'
@@ -0,0 +1,169 @@
1
+ module Groonga
2
+ module Command
3
+ class Grndb
4
+ def initialize(argv)
5
+ @command, *@arguments = argv
6
+ @succeeded = true
7
+ @executed = false
8
+ @database_path = nil
9
+ end
10
+
11
+ def run
12
+ slop = create_slop
13
+ rest = nil
14
+ begin
15
+ rest = slop.parse(@arguments)
16
+ rescue Slop::Error
17
+ $stderr.puts($!.message)
18
+ return false
19
+ end
20
+
21
+ if slop.help?
22
+ $stdout.puts(slop.help)
23
+ return true
24
+ end
25
+
26
+ unless @executed
27
+ if rest.empty?
28
+ $stderr.puts("No command is specified.")
29
+ else
30
+ $stderr.puts("Unknown command: <#{rest.first}>")
31
+ end
32
+ return false
33
+ end
34
+
35
+ @succeeded
36
+ end
37
+
38
+ private
39
+ def create_slop
40
+ slop = Slop.new
41
+ command_name = File.basename(@command)
42
+ slop.banner = "Usage: #{command_name} COMMAND [OPTIONS] DB_PATH"
43
+ slop_enable_help(slop)
44
+
45
+ slop.command "check" do |command|
46
+ command.description "Check database"
47
+ slop_enable_help(command)
48
+
49
+ command.run do |options, arguments|
50
+ run_command(options, arguments) do |database, new_arguments|
51
+ check(database, options, new_arguments)
52
+ end
53
+ end
54
+ end
55
+
56
+ slop.command "recover" do |command|
57
+ command.description "Recover database"
58
+ slop_enable_help(command)
59
+
60
+ command.run do |options, arguments|
61
+ run_command(options, arguments) do |database, new_arguments|
62
+ recover(database, options, new_arguments)
63
+ end
64
+ end
65
+ end
66
+
67
+ slop
68
+ end
69
+
70
+ def slop_enable_help(slop)
71
+ slop.on("-h", "--help", "Display this help message.", :tail => true)
72
+ end
73
+
74
+ def open_database(arguments)
75
+ if arguments.empty?
76
+ $stderr.puts("Database path is missing")
77
+ @succeesed = false
78
+ return
79
+ end
80
+
81
+ database = nil
82
+ @database_path, *rest_arguments = arguments
83
+ begin
84
+ database = Database.open(@database_path)
85
+ rescue Error => error
86
+ $stderr.puts("Failed to open database: <#{@database_path}>")
87
+ $stderr.puts(error.message)
88
+ @succeeded = false
89
+ return
90
+ end
91
+
92
+ begin
93
+ yield(database, rest_arguments)
94
+ ensure
95
+ database.close
96
+ end
97
+ end
98
+
99
+ def run_command(options, arguments)
100
+ @executed = true
101
+
102
+ if options.help?
103
+ $stdout.puts(options.help)
104
+ return
105
+ end
106
+
107
+ open_database(arguments) do |database|
108
+ yield(database)
109
+ end
110
+ end
111
+
112
+ def recover(database, options, arguments)
113
+ begin
114
+ database.recover
115
+ rescue Error => error
116
+ $stderr.puts("Failed to recover database: <#{@database_path}>")
117
+ $stderr.puts(error.message)
118
+ @succeeded = false
119
+ end
120
+ end
121
+
122
+ def check(database, options, arguments)
123
+ if database.locked?
124
+ message =
125
+ "Database is locked. " +
126
+ "It may be broken. " +
127
+ "Re-create the database."
128
+ $stdout.puts(message)
129
+ @succeeded = false
130
+ end
131
+
132
+ database.each do |object|
133
+ case object
134
+ when IndexColumn
135
+ next unless object.locked?
136
+ message =
137
+ "[#{object.name}] Index column is locked. " +
138
+ "It may be broken. " +
139
+ "Re-create index by '#{@command} recover #{@database_path}'."
140
+ $stdout.puts(message)
141
+ @succeeded = false
142
+ when Column
143
+ next unless object.locked?
144
+ name = object.name
145
+ message =
146
+ "[#{name}] Data column is locked. " +
147
+ "It may be broken. " +
148
+ "(1) Truncate the column (truncate #{name}) or " +
149
+ "clear lock of the column (lock_clear #{name}) " +
150
+ "and (2) load data again."
151
+ $stdout.puts(message)
152
+ @succeeded = false
153
+ when Table
154
+ next unless object.locked?
155
+ name = object.name
156
+ message =
157
+ "[#{name}] Table is locked. " +
158
+ "It may be broken. " +
159
+ "(1) Truncate the table (truncate #{name}) or " +
160
+ "clear lock of the table (lock_clear #{name}) " +
161
+ "and (2) load data again."
162
+ $stdout.puts(message)
163
+ @succeeded = false
164
+ end
165
+ end
166
+ end
167
+ end
168
+ end
169
+ end