rroonga 6.0.2-x64-mingw32 → 6.0.4-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (620) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +1 -1
  3. data/doc/text/news.md +18 -1
  4. data/ext/groonga/rb-grn-column.c +1 -2
  5. data/ext/groonga/rb-grn-data-column.c +157 -0
  6. data/ext/groonga/rb-grn-exception.c +17 -0
  7. data/ext/groonga/rb-grn-fix-size-column.c +2 -2
  8. data/ext/groonga/rb-grn-object.c +29 -0
  9. data/ext/groonga/rb-grn-procedure-type.c +9 -1
  10. data/ext/groonga/rb-grn-table-sort-keys.c +85 -0
  11. data/ext/groonga/rb-grn-table.c +2 -57
  12. data/ext/groonga/rb-grn-variable-size-column.c +2 -2
  13. data/ext/groonga/rb-grn.h +17 -3
  14. data/lib/2.1/groonga.so +0 -0
  15. data/lib/2.2/groonga.so +0 -0
  16. data/lib/2.3/groonga.so +0 -0
  17. data/rroonga-build.rb +4 -6
  18. data/test/test-data-column.rb +53 -0
  19. data/test/test-procedure.rb +12 -0
  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/libgroonga-0.dll +0 -0
  24. data/vendor/local/bin/libmecab-2.dll +0 -0
  25. data/vendor/local/bin/libmsgpack-4.dll +0 -0
  26. data/vendor/local/bin/libmsgpackc-2.dll +0 -0
  27. data/vendor/local/bin/libonig-5.dll +0 -0
  28. data/vendor/local/bin/lz4.exe +0 -0
  29. data/vendor/local/bin/lz4c.exe +0 -0
  30. data/vendor/local/bin/lz4cat +0 -0
  31. data/vendor/local/bin/mecab.exe +0 -0
  32. data/vendor/local/bin/zlib1.dll +0 -0
  33. data/vendor/local/etc/groonga/httpd/groonga-httpd.conf +1 -1
  34. data/vendor/local/include/groonga/groonga.h +5 -0
  35. data/vendor/local/include/groonga/groonga/array.h +13 -0
  36. data/vendor/local/include/groonga/groonga/db.h +46 -0
  37. data/vendor/local/include/groonga/groonga/expr.h +1 -1
  38. data/vendor/local/include/groonga/groonga/groonga.h +14 -221
  39. data/vendor/local/include/groonga/groonga/hash.h +15 -0
  40. data/vendor/local/include/groonga/groonga/obj.h +1 -0
  41. data/vendor/local/include/groonga/groonga/operator.h +48 -0
  42. data/vendor/local/include/groonga/groonga/output.h +17 -1
  43. data/vendor/local/include/groonga/groonga/plugin.h +1 -4
  44. data/vendor/local/include/groonga/groonga/portability.h +7 -4
  45. data/vendor/local/include/groonga/groonga/scorer.h +3 -3
  46. data/vendor/local/include/groonga/groonga/table.h +216 -0
  47. data/vendor/local/include/groonga/groonga/time.h +47 -0
  48. data/vendor/local/include/groonga/groonga/window_function.h +67 -0
  49. data/vendor/local/lib/groonga/plugins/functions/number.a +0 -0
  50. data/vendor/local/lib/groonga/plugins/functions/number.dll +0 -0
  51. data/vendor/local/lib/groonga/plugins/functions/number.dll.a +0 -0
  52. data/vendor/local/lib/groonga/plugins/functions/number.la +41 -0
  53. data/vendor/local/lib/groonga/plugins/functions/string.a +0 -0
  54. data/vendor/local/lib/groonga/plugins/functions/string.dll +0 -0
  55. data/vendor/local/lib/groonga/plugins/functions/string.dll.a +0 -0
  56. data/vendor/local/lib/groonga/plugins/functions/time.a +0 -0
  57. data/vendor/local/lib/groonga/plugins/functions/time.dll +0 -0
  58. data/vendor/local/lib/groonga/plugins/functions/time.dll.a +0 -0
  59. data/vendor/local/lib/groonga/plugins/functions/time.la +41 -0
  60. data/vendor/local/lib/groonga/plugins/functions/vector.a +0 -0
  61. data/vendor/local/lib/groonga/plugins/functions/vector.dll +0 -0
  62. data/vendor/local/lib/groonga/plugins/functions/vector.dll.a +0 -0
  63. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
  64. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
  65. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
  66. data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
  67. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
  68. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
  69. data/vendor/local/lib/groonga/plugins/table/table.a +0 -0
  70. data/vendor/local/lib/groonga/plugins/table/table.dll +0 -0
  71. data/vendor/local/lib/groonga/plugins/table/table.dll.a +0 -0
  72. data/vendor/local/lib/groonga/plugins/token_filters/stop_word.a +0 -0
  73. data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll +0 -0
  74. data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll.a +0 -0
  75. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
  76. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
  77. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
  78. data/vendor/local/lib/groonga/scripts/ruby/command_line/grndb.rb +41 -10
  79. data/vendor/local/lib/groonga/scripts/ruby/context/rc.rb +2 -0
  80. data/vendor/local/lib/libgroonga.a +0 -0
  81. data/vendor/local/lib/libgroonga.dll.a +0 -0
  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/libmsgpack.a +0 -0
  89. data/vendor/local/lib/libmsgpack.dll.a +0 -0
  90. data/vendor/local/lib/libmsgpackc.a +0 -0
  91. data/vendor/local/lib/libmsgpackc.dll.a +0 -0
  92. data/vendor/local/lib/libonig.a +0 -0
  93. data/vendor/local/lib/libonig.dll.a +0 -0
  94. data/vendor/local/lib/libz.a +0 -0
  95. data/vendor/local/lib/libz.dll.a +0 -0
  96. data/vendor/local/lib/pkgconfig/groonga.pc +2 -2
  97. data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
  98. data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
  99. data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
  100. data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
  101. data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
  102. data/vendor/local/sbin/groonga-httpd.exe +0 -0
  103. data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
  104. data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +3 -3
  105. data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +3 -3
  106. data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +3 -3
  107. data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +3 -3
  108. data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +3 -3
  109. data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +3 -3
  110. data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +3 -3
  111. data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +9 -9
  112. data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +129 -0
  113. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/select.txt +92 -70
  114. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/number_classify.txt +20 -0
  115. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/record_number.txt +23 -0
  116. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/time_classify_day.txt +18 -0
  117. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/time_classify_hour.txt +18 -0
  118. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/time_classify_minute.txt +18 -0
  119. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/time_classify_month.txt +20 -0
  120. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/time_classify_second.txt +18 -0
  121. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/time_classify_week.txt +18 -0
  122. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/time_classify_year.txt +18 -0
  123. data/vendor/local/share/doc/groonga/en/html/_sources/reference/log.txt +2 -2
  124. data/vendor/local/share/doc/groonga/en/html/_static/doctools.js +25 -1
  125. data/vendor/local/share/doc/groonga/en/html/characteristic.html +5 -5
  126. data/vendor/local/share/doc/groonga/en/html/client.html +5 -5
  127. data/vendor/local/share/doc/groonga/en/html/community.html +5 -5
  128. data/vendor/local/share/doc/groonga/en/html/contribution.html +5 -5
  129. data/vendor/local/share/doc/groonga/en/html/contribution/development.html +5 -5
  130. data/vendor/local/share/doc/groonga/en/html/contribution/development/build.html +5 -5
  131. data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_autotools.html +5 -5
  132. data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_cmake.html +5 -5
  133. data/vendor/local/share/doc/groonga/en/html/contribution/development/build/windows_cmake.html +5 -5
  134. data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +5 -5
  135. data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +5 -5
  136. data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +5 -5
  137. data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +5 -5
  138. data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +5 -5
  139. data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +5 -5
  140. data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +5 -5
  141. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +5 -5
  142. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +5 -5
  143. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/introduction.html +5 -5
  144. data/vendor/local/share/doc/groonga/en/html/contribution/report.html +5 -5
  145. data/vendor/local/share/doc/groonga/en/html/development.html +5 -5
  146. data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +5 -5
  147. data/vendor/local/share/doc/groonga/en/html/genindex.html +5 -5
  148. data/vendor/local/share/doc/groonga/en/html/index.html +20 -11
  149. data/vendor/local/share/doc/groonga/en/html/install.html +5 -5
  150. data/vendor/local/share/doc/groonga/en/html/install/centos.html +8 -8
  151. data/vendor/local/share/doc/groonga/en/html/install/debian.html +8 -8
  152. data/vendor/local/share/doc/groonga/en/html/install/fedora.html +8 -8
  153. data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +8 -8
  154. data/vendor/local/share/doc/groonga/en/html/install/others.html +8 -8
  155. data/vendor/local/share/doc/groonga/en/html/install/solaris.html +8 -8
  156. data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +8 -8
  157. data/vendor/local/share/doc/groonga/en/html/install/windows.html +14 -14
  158. data/vendor/local/share/doc/groonga/en/html/limitations.html +5 -5
  159. data/vendor/local/share/doc/groonga/en/html/news.html +286 -148
  160. data/vendor/local/share/doc/groonga/en/html/news/0.x.html +5 -5
  161. data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +5 -5
  162. data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +5 -5
  163. data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +5 -5
  164. data/vendor/local/share/doc/groonga/en/html/news/1.3.x.html +5 -5
  165. data/vendor/local/share/doc/groonga/en/html/news/2.x.html +5 -5
  166. data/vendor/local/share/doc/groonga/en/html/news/3.x.html +5 -5
  167. data/vendor/local/share/doc/groonga/en/html/news/4.x.html +5 -5
  168. data/vendor/local/share/doc/groonga/en/html/news/senna.html +5 -5
  169. data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
  170. data/vendor/local/share/doc/groonga/en/html/reference.html +20 -11
  171. data/vendor/local/share/doc/groonga/en/html/reference/alias.html +5 -5
  172. data/vendor/local/share/doc/groonga/en/html/reference/api.html +5 -5
  173. data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +5 -5
  174. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +5 -5
  175. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +5 -5
  176. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +5 -5
  177. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_content_type.html +5 -5
  178. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +5 -5
  179. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +5 -5
  180. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +5 -5
  181. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +5 -5
  182. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +5 -5
  183. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +5 -5
  184. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +5 -5
  185. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +5 -5
  186. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +5 -5
  187. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +5 -5
  188. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +5 -5
  189. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +5 -5
  190. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +5 -5
  191. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +5 -5
  192. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +5 -5
  193. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_thread.html +5 -5
  194. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +5 -5
  195. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +5 -5
  196. data/vendor/local/share/doc/groonga/en/html/reference/api/overview.html +5 -5
  197. data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +5 -5
  198. data/vendor/local/share/doc/groonga/en/html/reference/cast.html +5 -5
  199. data/vendor/local/share/doc/groonga/en/html/reference/column.html +5 -5
  200. data/vendor/local/share/doc/groonga/en/html/reference/columns/index.html +5 -5
  201. data/vendor/local/share/doc/groonga/en/html/reference/columns/pseudo.html +5 -5
  202. data/vendor/local/share/doc/groonga/en/html/reference/columns/scalar.html +5 -5
  203. data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +5 -5
  204. data/vendor/local/share/doc/groonga/en/html/reference/command.html +5 -5
  205. data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +5 -5
  206. data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +5 -5
  207. data/vendor/local/share/doc/groonga/en/html/reference/command/pretty_print.html +5 -5
  208. data/vendor/local/share/doc/groonga/en/html/reference/command/request_id.html +5 -5
  209. data/vendor/local/share/doc/groonga/en/html/reference/command/request_timeout.html +5 -5
  210. data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +5 -5
  211. data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +5 -5
  212. data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +5 -5
  213. data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +5 -5
  214. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_copy.html +5 -5
  215. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +5 -5
  216. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +5 -5
  217. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +5 -5
  218. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +5 -5
  219. data/vendor/local/share/doc/groonga/en/html/reference/commands/config_delete.html +5 -5
  220. data/vendor/local/share/doc/groonga/en/html/reference/commands/config_get.html +5 -5
  221. data/vendor/local/share/doc/groonga/en/html/reference/commands/config_set.html +5 -5
  222. data/vendor/local/share/doc/groonga/en/html/reference/commands/database_unmap.html +5 -5
  223. data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +5 -5
  224. data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +5 -5
  225. data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +5 -5
  226. data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +5 -5
  227. data/vendor/local/share/doc/groonga/en/html/reference/commands/io_flush.html +5 -5
  228. data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +5 -5
  229. data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_acquire.html +5 -5
  230. data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_clear.html +5 -5
  231. data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_release.html +5 -5
  232. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +5 -5
  233. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +5 -5
  234. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +5 -5
  235. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_count.html +5 -5
  236. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_parameters.html +5 -5
  237. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_range_filter.html +5 -5
  238. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_select.html +9 -9
  239. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_shard_list.html +5 -5
  240. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_table_remove.html +5 -5
  241. data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +5 -5
  242. data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +5 -5
  243. data/vendor/local/share/doc/groonga/en/html/reference/commands/object_exist.html +5 -5
  244. data/vendor/local/share/doc/groonga/en/html/reference/commands/object_inspect.html +5 -5
  245. data/vendor/local/share/doc/groonga/en/html/reference/commands/object_remove.html +5 -5
  246. data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_register.html +5 -5
  247. data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_unregister.html +5 -5
  248. data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +5 -5
  249. data/vendor/local/share/doc/groonga/en/html/reference/commands/range_filter.html +5 -5
  250. data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +5 -5
  251. data/vendor/local/share/doc/groonga/en/html/reference/commands/reindex.html +5 -5
  252. data/vendor/local/share/doc/groonga/en/html/reference/commands/request_cancel.html +5 -5
  253. data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +5 -5
  254. data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +5 -5
  255. data/vendor/local/share/doc/groonga/en/html/reference/commands/schema.html +5 -5
  256. data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +115 -94
  257. data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +5 -5
  258. data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +5 -5
  259. data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +5 -5
  260. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +5 -5
  261. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +5 -5
  262. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +5 -5
  263. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_rename.html +5 -5
  264. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_tokenize.html +5 -5
  265. data/vendor/local/share/doc/groonga/en/html/reference/commands/thread_limit.html +5 -5
  266. data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +5 -5
  267. data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenizer_list.html +5 -5
  268. data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +5 -5
  269. data/vendor/local/share/doc/groonga/en/html/reference/configuration.html +5 -5
  270. data/vendor/local/share/doc/groonga/en/html/reference/executables.html +5 -5
  271. data/vendor/local/share/doc/groonga/en/html/reference/executables/grndb.html +5 -5
  272. data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +5 -5
  273. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +5 -5
  274. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +5 -5
  275. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +5 -5
  276. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
  277. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +5 -5
  278. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +5 -5
  279. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +5 -5
  280. data/vendor/local/share/doc/groonga/en/html/reference/function.html +20 -11
  281. data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +5 -5
  282. data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +5 -5
  283. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +5 -5
  284. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +5 -5
  285. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +5 -5
  286. data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +5 -5
  287. data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +5 -5
  288. data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +5 -5
  289. data/vendor/local/share/doc/groonga/en/html/reference/functions/in_values.html +5 -5
  290. data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +10 -10
  291. data/vendor/local/share/doc/groonga/en/html/reference/functions/number_classify.html +156 -0
  292. data/vendor/local/share/doc/groonga/en/html/reference/functions/prefix_rk_search.html +32 -32
  293. data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +41 -41
  294. data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +28 -28
  295. data/vendor/local/share/doc/groonga/en/html/reference/functions/record_number.html +158 -0
  296. data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +28 -28
  297. data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +32 -32
  298. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_day.html +155 -0
  299. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_hour.html +155 -0
  300. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_minute.html +155 -0
  301. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_month.html +155 -0
  302. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_second.html +155 -0
  303. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_week.html +155 -0
  304. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_year.html +155 -0
  305. data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_size.html +24 -24
  306. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +5 -5
  307. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +5 -5
  308. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +5 -5
  309. data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +5 -5
  310. data/vendor/local/share/doc/groonga/en/html/reference/log.html +7 -7
  311. data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +5 -5
  312. data/vendor/local/share/doc/groonga/en/html/reference/operations.html +9 -9
  313. data/vendor/local/share/doc/groonga/en/html/reference/operations/geolocation_search.html +5 -5
  314. data/vendor/local/share/doc/groonga/en/html/reference/operations/prefix_rk_search.html +5 -5
  315. data/vendor/local/share/doc/groonga/en/html/reference/output.html +5 -5
  316. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +5 -5
  317. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +5 -5
  318. data/vendor/local/share/doc/groonga/en/html/reference/regular_expression.html +5 -5
  319. data/vendor/local/share/doc/groonga/en/html/reference/scorer.html +5 -5
  320. data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_at_most.html +5 -5
  321. data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_idf.html +5 -5
  322. data/vendor/local/share/doc/groonga/en/html/reference/sharding.html +5 -5
  323. data/vendor/local/share/doc/groonga/en/html/reference/suggest.html +5 -5
  324. data/vendor/local/share/doc/groonga/en/html/reference/suggest/completion.html +5 -5
  325. data/vendor/local/share/doc/groonga/en/html/reference/suggest/correction.html +5 -5
  326. data/vendor/local/share/doc/groonga/en/html/reference/suggest/introduction.html +5 -5
  327. data/vendor/local/share/doc/groonga/en/html/reference/suggest/suggestion.html +5 -5
  328. data/vendor/local/share/doc/groonga/en/html/reference/tables.html +5 -5
  329. data/vendor/local/share/doc/groonga/en/html/reference/token_filters.html +5 -5
  330. data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +5 -5
  331. data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +5 -5
  332. data/vendor/local/share/doc/groonga/en/html/reference/types.html +5 -5
  333. data/vendor/local/share/doc/groonga/en/html/search.html +5 -5
  334. data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
  335. data/vendor/local/share/doc/groonga/en/html/server.html +5 -5
  336. data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +5 -5
  337. data/vendor/local/share/doc/groonga/en/html/server/http.html +5 -5
  338. data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +5 -5
  339. data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +5 -5
  340. data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +5 -5
  341. data/vendor/local/share/doc/groonga/en/html/server/memcached.html +5 -5
  342. data/vendor/local/share/doc/groonga/en/html/server/package.html +5 -5
  343. data/vendor/local/share/doc/groonga/en/html/spec.html +5 -5
  344. data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +5 -5
  345. data/vendor/local/share/doc/groonga/en/html/spec/search.html +5 -5
  346. data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +5 -5
  347. data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
  348. data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +5 -5
  349. data/vendor/local/share/doc/groonga/en/html/tutorial.html +5 -5
  350. data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +5 -5
  351. data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +5 -5
  352. data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +5 -5
  353. data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +5 -5
  354. data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +5 -5
  355. data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +5 -5
  356. data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +5 -5
  357. data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +5 -5
  358. data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +5 -5
  359. data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +5 -5
  360. data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +5 -5
  361. data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
  362. data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +3 -3
  363. data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +3 -3
  364. data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +3 -3
  365. data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +3 -3
  366. data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +3 -3
  367. data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +3 -3
  368. data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +3 -3
  369. data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +9 -9
  370. data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +129 -0
  371. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/select.txt +92 -70
  372. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/number_classify.txt +20 -0
  373. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/record_number.txt +23 -0
  374. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/time_classify_day.txt +18 -0
  375. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/time_classify_hour.txt +18 -0
  376. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/time_classify_minute.txt +18 -0
  377. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/time_classify_month.txt +20 -0
  378. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/time_classify_second.txt +18 -0
  379. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/time_classify_week.txt +18 -0
  380. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/time_classify_year.txt +18 -0
  381. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/log.txt +2 -2
  382. data/vendor/local/share/doc/groonga/ja/html/_static/doctools.js +25 -1
  383. data/vendor/local/share/doc/groonga/ja/html/characteristic.html +5 -5
  384. data/vendor/local/share/doc/groonga/ja/html/client.html +5 -5
  385. data/vendor/local/share/doc/groonga/ja/html/community.html +5 -5
  386. data/vendor/local/share/doc/groonga/ja/html/contribution.html +5 -5
  387. data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +5 -5
  388. data/vendor/local/share/doc/groonga/ja/html/contribution/development/build.html +5 -5
  389. data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_autotools.html +5 -5
  390. data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_cmake.html +5 -5
  391. data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/windows_cmake.html +5 -5
  392. data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +5 -5
  393. data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +5 -5
  394. data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +5 -5
  395. data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +5 -5
  396. data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +5 -5
  397. data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +5 -5
  398. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +5 -5
  399. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +5 -5
  400. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +5 -5
  401. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/introduction.html +5 -5
  402. data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +5 -5
  403. data/vendor/local/share/doc/groonga/ja/html/development.html +5 -5
  404. data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +5 -5
  405. data/vendor/local/share/doc/groonga/ja/html/genindex.html +5 -5
  406. data/vendor/local/share/doc/groonga/ja/html/index.html +23 -14
  407. data/vendor/local/share/doc/groonga/ja/html/install.html +5 -5
  408. data/vendor/local/share/doc/groonga/ja/html/install/centos.html +8 -8
  409. data/vendor/local/share/doc/groonga/ja/html/install/debian.html +8 -8
  410. data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +8 -8
  411. data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +8 -8
  412. data/vendor/local/share/doc/groonga/ja/html/install/others.html +8 -8
  413. data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +8 -8
  414. data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +8 -8
  415. data/vendor/local/share/doc/groonga/ja/html/install/windows.html +14 -14
  416. data/vendor/local/share/doc/groonga/ja/html/limitations.html +5 -5
  417. data/vendor/local/share/doc/groonga/ja/html/news.html +257 -150
  418. data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +5 -5
  419. data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +5 -5
  420. data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +5 -5
  421. data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +6 -6
  422. data/vendor/local/share/doc/groonga/ja/html/news/1.3.x.html +5 -5
  423. data/vendor/local/share/doc/groonga/ja/html/news/2.x.html +5 -5
  424. data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +5 -5
  425. data/vendor/local/share/doc/groonga/ja/html/news/4.x.html +5 -5
  426. data/vendor/local/share/doc/groonga/ja/html/news/senna.html +5 -5
  427. data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
  428. data/vendor/local/share/doc/groonga/ja/html/reference.html +23 -14
  429. data/vendor/local/share/doc/groonga/ja/html/reference/alias.html +5 -5
  430. data/vendor/local/share/doc/groonga/ja/html/reference/api.html +5 -5
  431. data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +5 -5
  432. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +5 -5
  433. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +5 -5
  434. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +5 -5
  435. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_content_type.html +5 -5
  436. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +5 -5
  437. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +5 -5
  438. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +5 -5
  439. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +6 -6
  440. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +5 -5
  441. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +5 -5
  442. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +5 -5
  443. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +5 -5
  444. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +5 -5
  445. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +5 -5
  446. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +5 -5
  447. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +5 -5
  448. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +5 -5
  449. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +5 -5
  450. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +5 -5
  451. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_thread.html +5 -5
  452. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +5 -5
  453. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +5 -5
  454. data/vendor/local/share/doc/groonga/ja/html/reference/api/overview.html +5 -5
  455. data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +5 -5
  456. data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +5 -5
  457. data/vendor/local/share/doc/groonga/ja/html/reference/column.html +5 -5
  458. data/vendor/local/share/doc/groonga/ja/html/reference/columns/index.html +5 -5
  459. data/vendor/local/share/doc/groonga/ja/html/reference/columns/pseudo.html +5 -5
  460. data/vendor/local/share/doc/groonga/ja/html/reference/columns/scalar.html +5 -5
  461. data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +5 -5
  462. data/vendor/local/share/doc/groonga/ja/html/reference/command.html +5 -5
  463. data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +5 -5
  464. data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +5 -5
  465. data/vendor/local/share/doc/groonga/ja/html/reference/command/pretty_print.html +5 -5
  466. data/vendor/local/share/doc/groonga/ja/html/reference/command/request_id.html +5 -5
  467. data/vendor/local/share/doc/groonga/ja/html/reference/command/request_timeout.html +5 -5
  468. data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +5 -5
  469. data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +5 -5
  470. data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +5 -5
  471. data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +5 -5
  472. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_copy.html +5 -5
  473. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +5 -5
  474. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +5 -5
  475. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +5 -5
  476. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +5 -5
  477. data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_delete.html +5 -5
  478. data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_get.html +5 -5
  479. data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_set.html +5 -5
  480. data/vendor/local/share/doc/groonga/ja/html/reference/commands/database_unmap.html +5 -5
  481. data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +5 -5
  482. data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +5 -5
  483. data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +5 -5
  484. data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +5 -5
  485. data/vendor/local/share/doc/groonga/ja/html/reference/commands/io_flush.html +5 -5
  486. data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +5 -5
  487. data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_acquire.html +5 -5
  488. data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_clear.html +5 -5
  489. data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_release.html +5 -5
  490. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +5 -5
  491. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +5 -5
  492. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +5 -5
  493. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_count.html +5 -5
  494. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_parameters.html +5 -5
  495. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_range_filter.html +5 -5
  496. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_select.html +7 -7
  497. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_shard_list.html +5 -5
  498. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_table_remove.html +5 -5
  499. data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +5 -5
  500. data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +5 -5
  501. data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_exist.html +5 -5
  502. data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_inspect.html +5 -5
  503. data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_remove.html +5 -5
  504. data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_register.html +5 -5
  505. data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_unregister.html +5 -5
  506. data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +5 -5
  507. data/vendor/local/share/doc/groonga/ja/html/reference/commands/range_filter.html +5 -5
  508. data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +5 -5
  509. data/vendor/local/share/doc/groonga/ja/html/reference/commands/reindex.html +5 -5
  510. data/vendor/local/share/doc/groonga/ja/html/reference/commands/request_cancel.html +5 -5
  511. data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +5 -5
  512. data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +5 -5
  513. data/vendor/local/share/doc/groonga/ja/html/reference/commands/schema.html +5 -5
  514. data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +108 -87
  515. data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +5 -5
  516. data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +5 -5
  517. data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +5 -5
  518. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +5 -5
  519. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +5 -5
  520. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +5 -5
  521. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_rename.html +5 -5
  522. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_tokenize.html +5 -5
  523. data/vendor/local/share/doc/groonga/ja/html/reference/commands/thread_limit.html +5 -5
  524. data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +5 -5
  525. data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +5 -5
  526. data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +5 -5
  527. data/vendor/local/share/doc/groonga/ja/html/reference/configuration.html +5 -5
  528. data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +5 -5
  529. data/vendor/local/share/doc/groonga/ja/html/reference/executables/grndb.html +5 -5
  530. data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +5 -5
  531. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +5 -5
  532. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +5 -5
  533. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +5 -5
  534. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
  535. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +6 -6
  536. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +5 -5
  537. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +5 -5
  538. data/vendor/local/share/doc/groonga/ja/html/reference/function.html +20 -11
  539. data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +5 -5
  540. data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +5 -5
  541. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +5 -5
  542. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +5 -5
  543. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +5 -5
  544. data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +5 -5
  545. data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +5 -5
  546. data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +5 -5
  547. data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_values.html +5 -5
  548. data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +10 -10
  549. data/vendor/local/share/doc/groonga/ja/html/reference/functions/number_classify.html +157 -0
  550. data/vendor/local/share/doc/groonga/ja/html/reference/functions/prefix_rk_search.html +32 -32
  551. data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +41 -41
  552. data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +28 -28
  553. data/vendor/local/share/doc/groonga/ja/html/reference/functions/record_number.html +159 -0
  554. data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +28 -28
  555. data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +32 -32
  556. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_day.html +156 -0
  557. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_hour.html +156 -0
  558. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_minute.html +156 -0
  559. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_month.html +156 -0
  560. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_second.html +156 -0
  561. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_week.html +156 -0
  562. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_year.html +156 -0
  563. data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_size.html +24 -24
  564. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +5 -5
  565. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +5 -5
  566. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +5 -5
  567. data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +5 -5
  568. data/vendor/local/share/doc/groonga/ja/html/reference/log.html +62 -55
  569. data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +5 -5
  570. data/vendor/local/share/doc/groonga/ja/html/reference/operations.html +9 -9
  571. data/vendor/local/share/doc/groonga/ja/html/reference/operations/geolocation_search.html +5 -5
  572. data/vendor/local/share/doc/groonga/ja/html/reference/operations/prefix_rk_search.html +5 -5
  573. data/vendor/local/share/doc/groonga/ja/html/reference/output.html +5 -5
  574. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +5 -5
  575. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +5 -5
  576. data/vendor/local/share/doc/groonga/ja/html/reference/regular_expression.html +5 -5
  577. data/vendor/local/share/doc/groonga/ja/html/reference/scorer.html +5 -5
  578. data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_at_most.html +5 -5
  579. data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_idf.html +5 -5
  580. data/vendor/local/share/doc/groonga/ja/html/reference/sharding.html +9 -9
  581. data/vendor/local/share/doc/groonga/ja/html/reference/suggest.html +5 -5
  582. data/vendor/local/share/doc/groonga/ja/html/reference/suggest/completion.html +5 -5
  583. data/vendor/local/share/doc/groonga/ja/html/reference/suggest/correction.html +5 -5
  584. data/vendor/local/share/doc/groonga/ja/html/reference/suggest/introduction.html +5 -5
  585. data/vendor/local/share/doc/groonga/ja/html/reference/suggest/suggestion.html +5 -5
  586. data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +5 -5
  587. data/vendor/local/share/doc/groonga/ja/html/reference/token_filters.html +5 -5
  588. data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +5 -5
  589. data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +9 -9
  590. data/vendor/local/share/doc/groonga/ja/html/reference/types.html +5 -5
  591. data/vendor/local/share/doc/groonga/ja/html/search.html +5 -5
  592. data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
  593. data/vendor/local/share/doc/groonga/ja/html/server.html +5 -5
  594. data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +5 -5
  595. data/vendor/local/share/doc/groonga/ja/html/server/http.html +5 -5
  596. data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +5 -5
  597. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +5 -5
  598. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +5 -5
  599. data/vendor/local/share/doc/groonga/ja/html/server/memcached.html +5 -5
  600. data/vendor/local/share/doc/groonga/ja/html/server/package.html +9 -9
  601. data/vendor/local/share/doc/groonga/ja/html/spec.html +5 -5
  602. data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +5 -5
  603. data/vendor/local/share/doc/groonga/ja/html/spec/search.html +5 -5
  604. data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +5 -5
  605. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
  606. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +5 -5
  607. data/vendor/local/share/doc/groonga/ja/html/tutorial.html +5 -5
  608. data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +5 -5
  609. data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +5 -5
  610. data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +5 -5
  611. data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +5 -5
  612. data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +5 -5
  613. data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +5 -5
  614. data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +5 -5
  615. data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +5 -5
  616. data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +5 -5
  617. data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +5 -5
  618. data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +5 -5
  619. data/vendor/local/share/groonga/mruby/LEGAL +4 -0
  620. metadata +55 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8481cfd25295fb47cb6f4b963f2a9dcfe6e38b63
4
- data.tar.gz: 781043b0f0e7d313cfb77c65a0bce2d76d202fc0
3
+ metadata.gz: 2781651e9799537024a1e83c3f45f5244adc119f
4
+ data.tar.gz: fc42a29984041ead28e497370b44fedbac341a55
5
5
  SHA512:
6
- metadata.gz: 22a114ef30cdb07b244c7092794e47430f9c49c91c7a9a0f882d49941ff53c1d06a60ee54a0c250ab87b4ea194c2b12f45d18d5217ebd670d2e8bd39b1edfa63
7
- data.tar.gz: b27ad9d22771e42295b8b60022e993eabc04a9e2745ff83ec69f33e81725438ce4b52d0c564a21dcb029b5e072f56be7db010228e14726f2e2ecc7529437934a
6
+ metadata.gz: f5eec9fc6dc6f3330ec63d947973d807c7bfb679eab60599a01f4453c6e451d3d24d7c13e6ea08cdfae5739cd764b61ff65c4b214808294d66d97efec42454e7
7
+ data.tar.gz: 9278c30f7db23ae2228400609c013a878519aeb7205eebe93bc9e36ed7b995a594b4a9628b70dbabb93142fb5ea383cb3598dee8da755230ab76860088c734f2
data/Rakefile CHANGED
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8; mode: ruby -*-
2
2
  #
3
- # Copyright (C) 2009-2015 Kouhei Sutou <kou@clear-code.com>
3
+ # Copyright (C) 2009-2016 Kouhei Sutou <kou@clear-code.com>
4
4
  #
5
5
  # This library is free software; you can redistribute it and/or
6
6
  # modify it under the terms of the GNU Lesser General Public
data/doc/text/news.md CHANGED
@@ -1,6 +1,23 @@
1
1
  # NEWS
2
2
 
3
- ## 6.0.2 2016-05-18 {#version-6-0-2}
3
+ ## 6.0.4: 2016-06-14 {#version-6-0-4}
4
+
5
+ ### Improvements
6
+
7
+ * Supported Groonga 6.0.4. Groonga 6.0.3 or older aren't supported.
8
+
9
+ * {Groonga::WindowFunctionError}: Added a new error class.
10
+
11
+ * {Groonga::ProcedureType::WINDOW_FUNCTION}: Added a new procedure
12
+ type for window function.
13
+
14
+ * {Groonga::Object#window_function_procedure?}: Added a new
15
+ predicate for window function.
16
+
17
+ * {Groonga::DataColumn#apply_window_function}: Added a new
18
+ method to apply a window function.
19
+
20
+ ## 6.0.2: 2016-05-18 {#version-6-0-2}
4
21
 
5
22
  ### Improvements
6
23
 
@@ -846,7 +846,6 @@ rb_grn_init_column (VALUE mGrn)
846
846
 
847
847
  rb_define_method(rb_cGrnColumn, "rename", rb_grn_column_rename, 1);
848
848
 
849
- rb_grn_init_fix_size_column(mGrn);
850
- rb_grn_init_variable_size_column(mGrn);
849
+ rb_grn_init_data_column(mGrn);
851
850
  rb_grn_init_index_column(mGrn);
852
851
  }
@@ -0,0 +1,157 @@
1
+ /* -*- coding: utf-8; mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
+ /* vim: set sts=4 sw=4 ts=8 noet: */
3
+ /*
4
+ Copyright (C) 2016 Kouhei Sutou <kou@clear-code.com>
5
+
6
+ This library is free software; you can redistribute it and/or
7
+ modify it under the terms of the GNU Lesser General Public
8
+ License version 2.1 as published by the Free Software Foundation.
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
+ #include "rb-grn.h"
21
+
22
+ #define SELF(object) ((RbGrnColumn *)DATA_PTR(object))
23
+
24
+ VALUE rb_cGrnDataColumn;
25
+
26
+ /*
27
+ * Document-class: Groonga::DataColumn < Groonga::Column
28
+ *
29
+ * The superclass for data columns such as {Groonga::FixSizeColumn}
30
+ * and {Groonga::VariableSizeColumn}.
31
+ */
32
+
33
+ /*
34
+ * Applies the window function to records in the table of the
35
+ * column. Results are stored into the column.
36
+ *
37
+ * @example Set the nth record.
38
+ *
39
+ * Groonga::Schema.define do |schema|
40
+ * schema.create_table("Comments") do |table|
41
+ * # The column for storing window function result.
42
+ * table.uint32("nth")
43
+ * end
44
+ * end
45
+ * comments = Groonga["Comments"]
46
+ * nth = Groonga["Comments.nth"]
47
+ *
48
+ * 5.times do
49
+ * comments.add
50
+ * end
51
+ *
52
+ * options = {
53
+ * # Sort by _id in descending order.
54
+ * :sort_keys => [["_id", "desc"]],
55
+ * }
56
+ * nth.apply_window_function(options) do |record|
57
+ * # record_number() returns Nth record in the sorted order.
58
+ * record.call("record_number")
59
+ * end
60
+ *
61
+ * comments.each do |comment|
62
+ * p [comment.id, comment.nth]
63
+ * # -> [1, 5]
64
+ * # -> [2, 4]
65
+ * # -> [3, 3]
66
+ * # -> [4, 2]
67
+ * # -> [5, 1]
68
+ * end
69
+ *
70
+ * @overload apply_window_function(options={}) {|record| }
71
+ * @param options [::Hash] The name and value pairs.
72
+ * @option options [::Array<String>] :sort_keys
73
+ *
74
+ * @yield [record]
75
+ * It yields an object that builds expression. The block must
76
+ * build an expression that calls a window function.
77
+ * @yieldparam [Groonga::RecordExpressionBuilder] record
78
+ * The expression builder to create a window function call.
79
+ * @yieldreturn [Groonga::ExpressionBuilder]
80
+ * It must be an expression that calls a window function.
81
+ *
82
+ * @since 6.0.4
83
+ */
84
+ static VALUE
85
+ rb_grn_data_column_apply_window_function (int argc, VALUE *argv, VALUE self)
86
+ {
87
+ grn_rc rc;
88
+ grn_ctx *context;
89
+ grn_obj *column;
90
+ grn_obj *table;
91
+ VALUE rb_table;
92
+ grn_window_definition definition;
93
+ grn_obj *window_function_call = NULL;
94
+ VALUE rb_options;
95
+ VALUE rb_sort_keys;
96
+ VALUE rb_builder;
97
+ VALUE rb_window_function_call;
98
+
99
+ rb_grn_column_deconstruct(SELF(self), &column, &context,
100
+ NULL, &table,
101
+ NULL, NULL, NULL);
102
+ rb_table = GRNOBJECT2RVAL(Qnil, context, table, GRN_FALSE);
103
+
104
+ memset(&definition, 0, sizeof(grn_window_definition));
105
+
106
+ rb_scan_args(argc, argv, "01", &rb_options);
107
+ rb_grn_scan_options(rb_options,
108
+ "sort_keys", &rb_sort_keys,
109
+ NULL);
110
+
111
+ if (!NIL_P(rb_sort_keys)) {
112
+ VALUE rb_table;
113
+
114
+ if (!RVAL2CBOOL(rb_obj_is_kind_of(rb_sort_keys, rb_cArray)))
115
+ rb_raise(rb_eArgError, ":sort_keys should be an array of key: <%s>",
116
+ rb_grn_inspect(rb_sort_keys));
117
+
118
+ definition.n_sort_keys = RARRAY_LEN(rb_sort_keys);
119
+ definition.sort_keys = ALLOCA_N(grn_table_sort_key,
120
+ definition.n_sort_keys);
121
+ rb_table = GRNOBJECT2RVAL(Qnil, context, table, GRN_FALSE);
122
+ rb_grn_table_sort_keys_fill(context,
123
+ definition.sort_keys,
124
+ definition.n_sort_keys,
125
+ rb_sort_keys,
126
+ rb_table);
127
+ }
128
+
129
+ rb_builder = rb_grn_record_expression_builder_new(rb_table, Qnil);
130
+ rb_window_function_call =
131
+ rb_grn_record_expression_builder_build(rb_builder);
132
+ rb_grn_object_deconstruct(RB_GRN_OBJECT(DATA_PTR(rb_window_function_call)),
133
+ &window_function_call, NULL,
134
+ NULL, NULL, NULL, NULL);
135
+
136
+ rc = grn_table_apply_window_function(context,
137
+ table,
138
+ column,
139
+ &definition,
140
+ window_function_call);
141
+ rb_grn_context_check(context, self);
142
+ rb_grn_rc_check(rc, self);
143
+
144
+ return self;
145
+ }
146
+
147
+ void
148
+ rb_grn_init_data_column (VALUE mGrn)
149
+ {
150
+ rb_cGrnDataColumn = rb_define_class_under(mGrn, "DataColumn", rb_cGrnColumn);
151
+
152
+ rb_define_method(rb_cGrnDataColumn, "apply_window_function",
153
+ rb_grn_data_column_apply_window_function, -1);
154
+
155
+ rb_grn_init_fix_size_column(mGrn);
156
+ rb_grn_init_variable_size_column(mGrn);
157
+ }
@@ -101,6 +101,7 @@ static VALUE eGrnCommandError;
101
101
  static VALUE eGrnPluginError;
102
102
  static VALUE eGrnScorerError;
103
103
  static VALUE eGrnCancel;
104
+ static VALUE eGrnWindowFunctionError;
104
105
 
105
106
  VALUE
106
107
  rb_grn_rc_to_exception (grn_rc rc)
@@ -345,6 +346,9 @@ rb_grn_rc_to_exception (grn_rc rc)
345
346
  case GRN_CANCEL:
346
347
  exception = eGrnCancel;
347
348
  break;
349
+ case GRN_WINDOW_FUNCTION_ERROR:
350
+ exception = eGrnWindowFunctionError;
351
+ break;
348
352
  }
349
353
 
350
354
  if (NIL_P(exception))
@@ -596,6 +600,9 @@ rb_grn_rc_to_message (grn_rc rc)
596
600
  case GRN_CANCEL:
597
601
  message = "cancel";
598
602
  break;
603
+ case GRN_WINDOW_FUNCTION_ERROR:
604
+ message = "window function error";
605
+ break;
599
606
  }
600
607
 
601
608
  if (!message)
@@ -1295,4 +1302,14 @@ rb_grn_init_exception (VALUE mGrn)
1295
1302
  */
1296
1303
  eGrnCancel =
1297
1304
  rb_define_class_under(mGrn, "Cancel", rb_eGrnError);
1305
+
1306
+ /*
1307
+ * Document-class: Groonga::WindowFunctionError
1308
+ *
1309
+ * It is used when window function causes an error.
1310
+ *
1311
+ * @since 6.0.4
1312
+ */
1313
+ eGrnWindowFunctionError =
1314
+ rb_define_class_under(mGrn, "WindowFunctionError", rb_eGrnError);
1298
1315
  }
@@ -1,6 +1,6 @@
1
1
  /* -*- coding: utf-8; mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
2
  /*
3
- Copyright (C) 2009-2010 Kouhei Sutou <kou@clear-code.com>
3
+ Copyright (C) 2009-2016 Kouhei Sutou <kou@clear-code.com>
4
4
  Copyright (C) 2016 Masafumi Yokoyama <yokoyama@clear-code.com>
5
5
 
6
6
  This library is free software; you can redistribute it and/or
@@ -227,7 +227,7 @@ void
227
227
  rb_grn_init_fix_size_column (VALUE mGrn)
228
228
  {
229
229
  rb_cGrnFixSizeColumn =
230
- rb_define_class_under(mGrn, "FixSizeColumn", rb_cGrnColumn);
230
+ rb_define_class_under(mGrn, "FixSizeColumn", rb_cGrnDataColumn);
231
231
 
232
232
  rb_define_method(rb_cGrnFixSizeColumn, "[]",
233
233
  rb_grn_fix_size_column_array_reference, 1);
@@ -1678,6 +1678,33 @@ rb_grn_object_scorer_procedure_p (VALUE self)
1678
1678
  return CBOOL2RVAL(scorer_procedure_p);
1679
1679
  }
1680
1680
 
1681
+ /*
1682
+ * Checks whether the object is windows function procedure or not.
1683
+ *
1684
+ * @overload window_function_procedure?
1685
+ * @return [Boolean] `true` if the object is window function procedure,
1686
+ * `false` otherwise.
1687
+ *
1688
+ * @since 6.0.4
1689
+ */
1690
+ static VALUE
1691
+ rb_grn_object_window_function_procedure_p (VALUE self)
1692
+ {
1693
+ grn_ctx *context;
1694
+ grn_obj *object;
1695
+ grn_bool window_function_procedure_p = GRN_FALSE;
1696
+
1697
+ rb_grn_object_deconstruct(SELF(self), &object, &context,
1698
+ NULL, NULL, NULL, NULL);
1699
+
1700
+ if (context && object) {
1701
+ window_function_procedure_p =
1702
+ grn_obj_is_window_function_proc(context, object);
1703
+ }
1704
+
1705
+ return CBOOL2RVAL(window_function_procedure_p);
1706
+ }
1707
+
1681
1708
  /*
1682
1709
  * Checks whether the object is accessor or not.
1683
1710
  *
@@ -1785,6 +1812,8 @@ rb_grn_init_object (VALUE mGrn)
1785
1812
  rb_grn_object_selector_only_procedure_p, 0);
1786
1813
  rb_define_method(rb_cGrnObject, "scorer_procedure?",
1787
1814
  rb_grn_object_scorer_procedure_p, 0);
1815
+ rb_define_method(rb_cGrnObject, "window_function_procedure?",
1816
+ rb_grn_object_window_function_procedure_p, 0);
1788
1817
  rb_define_method(rb_cGrnObject, "accessor?",
1789
1818
  rb_grn_object_accessor_p, 0);
1790
1819
  rb_define_method(rb_cGrnObject, "key_accessor?",
@@ -1,6 +1,6 @@
1
1
  /* -*- coding: utf-8; mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
2
  /*
3
- Copyright (C) 2014 Kouhei Sutou <kou@clear-code.com>
3
+ Copyright (C) 2014-2016 Kouhei Sutou <kou@clear-code.com>
4
4
 
5
5
  This library is free software; you can redistribute it and/or
6
6
  modify it under the terms of the GNU Lesser General Public
@@ -41,4 +41,12 @@ rb_grn_init_procedure_type (VALUE mGrn)
41
41
  "TOKEN_FILTER", INT2NUM(GRN_PROC_TOKEN_FILTER));
42
42
  rb_define_const(rb_mGrnProcedureType,
43
43
  "SCORER", INT2NUM(GRN_PROC_SCORER));
44
+
45
+ /*
46
+ * It's a type for window function.
47
+ *
48
+ * @since 6.0.4
49
+ */
50
+ rb_define_const(rb_mGrnProcedureType,
51
+ "WINDOW_FUNCTION", INT2NUM(GRN_PROC_WINDOW_FUNCTION));
44
52
  }
@@ -0,0 +1,85 @@
1
+ /* -*- coding: utf-8; mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
+ /*
3
+ Copyright (C) 2009-2016 Kouhei Sutou <kou@clear-code.com>
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 version 2.1 as published by the Free Software Foundation.
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
+ #include "rb-grn.h"
20
+
21
+ void
22
+ rb_grn_table_sort_keys_fill (grn_ctx *context,
23
+ grn_table_sort_key *sort_keys,
24
+ size_t n_sort_keys,
25
+ VALUE rb_sort_keys,
26
+ VALUE rb_table)
27
+ {
28
+ int i;
29
+
30
+ for (i = 0; i < n_sort_keys; i++) {
31
+ VALUE rb_sort_key;
32
+ VALUE rb_sort_options;
33
+ VALUE rb_key;
34
+ VALUE rb_resolved_key;
35
+ VALUE rb_order;
36
+
37
+ rb_sort_key = RARRAY_PTR(rb_sort_keys)[i];
38
+ if (RVAL2CBOOL(rb_obj_is_kind_of(rb_sort_key, rb_cHash))) {
39
+ rb_sort_options = rb_sort_key;
40
+ } else if (RVAL2CBOOL(rb_obj_is_kind_of(rb_sort_key, rb_cArray))) {
41
+ rb_sort_options = rb_hash_new();
42
+ rb_hash_aset(rb_sort_options,
43
+ RB_GRN_INTERN("key"),
44
+ rb_ary_entry(rb_sort_key, 0));
45
+ rb_hash_aset(rb_sort_options,
46
+ RB_GRN_INTERN("order"),
47
+ rb_ary_entry(rb_sort_key, 1));
48
+ } else {
49
+ rb_sort_options = rb_hash_new();
50
+ rb_hash_aset(rb_sort_options,
51
+ RB_GRN_INTERN("key"),
52
+ rb_sort_key);
53
+ }
54
+ rb_grn_scan_options(rb_sort_options,
55
+ "key", &rb_key,
56
+ "order", &rb_order,
57
+ NULL);
58
+ if (RVAL2CBOOL(rb_obj_is_kind_of(rb_key, rb_cString))) {
59
+ rb_resolved_key = rb_grn_table_get_column(rb_table, rb_key);
60
+ } else {
61
+ rb_resolved_key = rb_key;
62
+ }
63
+ sort_keys[i].key = RVAL2GRNOBJECT(rb_resolved_key, &context);
64
+ if (!sort_keys[i].key) {
65
+ rb_raise(rb_eGrnNoSuchColumn,
66
+ "no such column: <%s>: <%s>",
67
+ rb_grn_inspect(rb_key),
68
+ rb_grn_inspect(rb_table));
69
+ }
70
+ if (NIL_P(rb_order) ||
71
+ rb_grn_equal_option(rb_order, "asc") ||
72
+ rb_grn_equal_option(rb_order, "ascending")) {
73
+ sort_keys[i].flags = GRN_TABLE_SORT_ASC;
74
+ } else if (rb_grn_equal_option(rb_order, "desc") ||
75
+ rb_grn_equal_option(rb_order, "descending")) {
76
+ sort_keys[i].flags = GRN_TABLE_SORT_DESC;
77
+ } else {
78
+ rb_raise(rb_eArgError,
79
+ "order should be one of "
80
+ "[nil, :desc, :descending, :asc, :ascending]: %s",
81
+ rb_grn_inspect(rb_order));
82
+ }
83
+ }
84
+
85
+ }
@@ -19,12 +19,6 @@
19
19
 
20
20
  #include "rb-grn.h"
21
21
 
22
- grn_obj *grn_table_open(grn_ctx *ctx,
23
- const char *name, unsigned name_size, const char *path);
24
- grn_obj *grn_column_open(grn_ctx *ctx, grn_obj *table,
25
- const char *name, unsigned name_size,
26
- const char *path, grn_obj *type);
27
-
28
22
  #define SELF(object) ((RbGrnTable *)DATA_PTR(object))
29
23
 
30
24
  VALUE rb_cGrnTable;
@@ -1218,11 +1212,10 @@ rb_grn_table_sort (int argc, VALUE *argv, VALUE self)
1218
1212
  grn_obj *table;
1219
1213
  grn_obj *result;
1220
1214
  grn_table_sort_key *keys;
1221
- int i, n_keys;
1215
+ int n_keys;
1222
1216
  int offset = 0, limit = -1;
1223
1217
  VALUE rb_keys, options;
1224
1218
  VALUE rb_offset, rb_limit;
1225
- VALUE *rb_sort_keys;
1226
1219
  VALUE exception;
1227
1220
 
1228
1221
  rb_grn_table_deconstruct(SELF(self), &table, &context,
@@ -1237,56 +1230,8 @@ rb_grn_table_sort (int argc, VALUE *argv, VALUE self)
1237
1230
  rb_grn_inspect(rb_keys));
1238
1231
 
1239
1232
  n_keys = RARRAY_LEN(rb_keys);
1240
- rb_sort_keys = RARRAY_PTR(rb_keys);
1241
1233
  keys = ALLOCA_N(grn_table_sort_key, n_keys);
1242
- for (i = 0; i < n_keys; i++) {
1243
- VALUE rb_sort_options, rb_key, rb_resolved_key, rb_order;
1244
-
1245
- if (RVAL2CBOOL(rb_obj_is_kind_of(rb_sort_keys[i], rb_cHash))) {
1246
- rb_sort_options = rb_sort_keys[i];
1247
- } else if (RVAL2CBOOL(rb_obj_is_kind_of(rb_sort_keys[i], rb_cArray))) {
1248
- rb_sort_options = rb_hash_new();
1249
- rb_hash_aset(rb_sort_options,
1250
- RB_GRN_INTERN("key"),
1251
- rb_ary_entry(rb_sort_keys[i], 0));
1252
- rb_hash_aset(rb_sort_options,
1253
- RB_GRN_INTERN("order"),
1254
- rb_ary_entry(rb_sort_keys[i], 1));
1255
- } else {
1256
- rb_sort_options = rb_hash_new();
1257
- rb_hash_aset(rb_sort_options,
1258
- RB_GRN_INTERN("key"),
1259
- rb_sort_keys[i]);
1260
- }
1261
- rb_grn_scan_options(rb_sort_options,
1262
- "key", &rb_key,
1263
- "order", &rb_order,
1264
- NULL);
1265
- if (RVAL2CBOOL(rb_obj_is_kind_of(rb_key, rb_cString))) {
1266
- rb_resolved_key = rb_grn_table_get_column(self, rb_key);
1267
- } else {
1268
- rb_resolved_key = rb_key;
1269
- }
1270
- keys[i].key = RVAL2GRNOBJECT(rb_resolved_key, &context);
1271
- if (!keys[i].key) {
1272
- rb_raise(rb_eGrnNoSuchColumn,
1273
- "no such column: <%s>: <%s>",
1274
- rb_grn_inspect(rb_key), rb_grn_inspect(self));
1275
- }
1276
- if (NIL_P(rb_order) ||
1277
- rb_grn_equal_option(rb_order, "asc") ||
1278
- rb_grn_equal_option(rb_order, "ascending")) {
1279
- keys[i].flags = GRN_TABLE_SORT_ASC;
1280
- } else if (rb_grn_equal_option(rb_order, "desc") ||
1281
- rb_grn_equal_option(rb_order, "descending")) {
1282
- keys[i].flags = GRN_TABLE_SORT_DESC;
1283
- } else {
1284
- rb_raise(rb_eArgError,
1285
- "order should be one of "
1286
- "[nil, :desc, :descending, :asc, :ascending]: %s",
1287
- rb_grn_inspect(rb_order));
1288
- }
1289
- }
1234
+ rb_grn_table_sort_keys_fill(context, keys, n_keys, rb_keys, self);
1290
1235
 
1291
1236
  rb_grn_scan_options(options,
1292
1237
  "offset", &rb_offset,