rroonga 6.1.3-x86-mingw32 → 7.0.2-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (745) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +1 -0
  3. data/doc/text/news.md +28 -0
  4. data/ext/groonga/rb-grn-column.c +53 -32
  5. data/ext/groonga/rb-grn-context.c +1 -1
  6. data/ext/groonga/rb-grn-data-column.c +103 -0
  7. data/ext/groonga/rb-grn-default-cache.c +104 -0
  8. data/ext/groonga/rb-grn-index-column.c +93 -15
  9. data/ext/groonga/rb-grn-inverted-index-cursor.c +269 -0
  10. data/ext/groonga/rb-grn-object.c +1 -1
  11. data/ext/groonga/rb-grn-plugin.c +1 -1
  12. data/ext/groonga/rb-grn-table-cursor.c +1 -1
  13. data/ext/groonga/rb-grn-table-key-support.c +6 -0
  14. data/ext/groonga/rb-grn-table.c +0 -3
  15. data/ext/groonga/rb-grn-utils.c +35 -7
  16. data/ext/groonga/rb-grn.h +13 -4
  17. data/ext/groonga/rb-groonga.c +2 -0
  18. data/lib/2.1/groonga.so +0 -0
  19. data/lib/2.2/groonga.so +0 -0
  20. data/lib/2.3/groonga.so +0 -0
  21. data/rroonga-build.rb +7 -7
  22. data/rroonga.gemspec +2 -1
  23. data/test/test-data-column.rb +71 -2
  24. data/test/test-default-cache.rb +43 -0
  25. data/test/test-double-array-trie.rb +7 -0
  26. data/test/test-fix-size-column.rb +12 -0
  27. data/test/test-hash.rb +7 -0
  28. data/test/test-index-column.rb +12 -0
  29. data/test/test-index-cursor.rb +93 -28
  30. data/test/test-patricia-trie.rb +7 -0
  31. data/test/test-variable-size-column.rb +19 -0
  32. data/vendor/local/bin/grndb.exe +0 -0
  33. data/vendor/local/bin/groonga-benchmark.exe +0 -0
  34. data/vendor/local/bin/groonga-suggest-create-dataset.exe +0 -0
  35. data/vendor/local/bin/groonga.exe +0 -0
  36. data/vendor/local/bin/libgroonga-0.dll +0 -0
  37. data/vendor/local/bin/libmecab-2.dll +0 -0
  38. data/vendor/local/bin/libmsgpackc.dll +0 -0
  39. data/vendor/local/bin/libonigmo-6.dll +0 -0
  40. data/vendor/local/bin/libpcre-1.dll +0 -0
  41. data/vendor/local/bin/libpcrecpp-0.dll +0 -0
  42. data/vendor/local/bin/libpcreposix-0.dll +0 -0
  43. data/vendor/local/bin/lz4.exe +0 -0
  44. data/vendor/local/bin/lz4c.exe +0 -0
  45. data/vendor/local/bin/lz4cat +0 -0
  46. data/vendor/local/bin/mecab-config +2 -2
  47. data/vendor/local/bin/mecab.exe +0 -0
  48. data/vendor/local/bin/onigmo-config +2 -2
  49. data/vendor/local/bin/pcre-config +1 -1
  50. data/vendor/local/bin/pcregrep.exe +0 -0
  51. data/vendor/local/bin/pcretest.exe +0 -0
  52. data/vendor/local/bin/zlib1.dll +0 -0
  53. data/vendor/local/etc/groonga/httpd/groonga-httpd.conf +16 -3
  54. data/vendor/local/include/groonga/groonga.h +2 -1
  55. data/vendor/local/include/groonga/groonga/cache.h +49 -0
  56. data/vendor/local/include/groonga/groonga/column.h +1 -1
  57. data/vendor/local/include/groonga/groonga/groonga.h +26 -16
  58. data/vendor/local/include/groonga/groonga/ii.h +7 -1
  59. data/vendor/local/include/groonga/groonga/obj.h +8 -1
  60. data/vendor/local/include/groonga/groonga/plugin.h +6 -1
  61. data/vendor/local/include/groonga/groonga/table.h +5 -0
  62. data/vendor/local/include/groonga/groonga/util.h +4 -1
  63. data/vendor/local/include/groonga/groonga/window_function.h +5 -1
  64. data/vendor/local/include/onigmo.h +6 -5
  65. data/vendor/local/include/zconf.h +32 -9
  66. data/vendor/local/include/zlib.h +298 -154
  67. data/vendor/local/lib/groonga/plugins/functions/number.a +0 -0
  68. data/vendor/local/lib/groonga/plugins/functions/number.dll +0 -0
  69. data/vendor/local/lib/groonga/plugins/functions/number.dll.a +0 -0
  70. data/vendor/local/lib/groonga/plugins/functions/number.la +2 -2
  71. data/vendor/local/lib/groonga/plugins/functions/string.a +0 -0
  72. data/vendor/local/lib/groonga/plugins/functions/string.dll +0 -0
  73. data/vendor/local/lib/groonga/plugins/functions/string.dll.a +0 -0
  74. data/vendor/local/lib/groonga/plugins/functions/string.la +2 -2
  75. data/vendor/local/lib/groonga/plugins/functions/time.a +0 -0
  76. data/vendor/local/lib/groonga/plugins/functions/time.dll +0 -0
  77. data/vendor/local/lib/groonga/plugins/functions/time.dll.a +0 -0
  78. data/vendor/local/lib/groonga/plugins/functions/time.la +2 -2
  79. data/vendor/local/lib/groonga/plugins/functions/vector.a +0 -0
  80. data/vendor/local/lib/groonga/plugins/functions/vector.dll +0 -0
  81. data/vendor/local/lib/groonga/plugins/functions/vector.dll.a +0 -0
  82. data/vendor/local/lib/groonga/plugins/functions/vector.la +2 -2
  83. data/vendor/local/lib/groonga/plugins/normalizers/mysql.a +0 -0
  84. data/vendor/local/lib/groonga/plugins/normalizers/mysql.dll +0 -0
  85. data/vendor/local/lib/groonga/plugins/normalizers/mysql.dll.a +0 -0
  86. data/vendor/local/lib/groonga/plugins/normalizers/mysql.la +2 -2
  87. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
  88. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
  89. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
  90. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.la +2 -2
  91. data/vendor/local/lib/groonga/plugins/sharding/logical_count.rb +2 -2
  92. data/vendor/local/lib/groonga/plugins/sharding/logical_enumerator.rb +2 -2
  93. data/vendor/local/lib/groonga/plugins/sharding/logical_range_filter.rb +2 -2
  94. data/vendor/local/lib/groonga/plugins/sharding/logical_select.rb +392 -53
  95. data/vendor/local/lib/groonga/plugins/sharding/logical_table_remove.rb +1 -2
  96. data/vendor/local/lib/groonga/plugins/sharding/range_expression_builder.rb +37 -14
  97. data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
  98. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
  99. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
  100. data/vendor/local/lib/groonga/plugins/suggest/suggest.la +2 -2
  101. data/vendor/local/lib/groonga/plugins/token_filters/stop_word.a +0 -0
  102. data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll +0 -0
  103. data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll.a +0 -0
  104. data/vendor/local/lib/groonga/plugins/token_filters/stop_word.la +2 -2
  105. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
  106. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
  107. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
  108. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.la +2 -2
  109. data/vendor/local/lib/groonga/scripts/ruby/command.rb +0 -1
  110. data/vendor/local/lib/groonga/scripts/ruby/command_input.rb +15 -0
  111. data/vendor/local/lib/groonga/scripts/ruby/expression.rb +1 -0
  112. data/vendor/local/lib/groonga/scripts/ruby/expression_size_estimator.rb +2 -136
  113. data/vendor/local/lib/groonga/scripts/ruby/expression_tree/function_call.rb +12 -1
  114. data/vendor/local/lib/groonga/scripts/ruby/expression_tree_builder.rb +1 -1
  115. data/vendor/local/lib/groonga/scripts/ruby/initialize/post.rb +1 -0
  116. data/vendor/local/lib/groonga/scripts/ruby/logger.rb +7 -8
  117. data/vendor/local/lib/groonga/scripts/ruby/scan_info_builder.rb +234 -80
  118. data/vendor/local/lib/groonga/scripts/ruby/scan_info_data_size_estimator.rb +185 -0
  119. data/vendor/local/lib/groonga/scripts/ruby/table.rb +27 -2
  120. data/vendor/local/lib/libgroonga.a +0 -0
  121. data/vendor/local/lib/libgroonga.dll.a +0 -0
  122. data/vendor/local/lib/libgroonga.la +2 -2
  123. data/vendor/local/lib/liblz4.a +0 -0
  124. data/vendor/local/lib/liblz4.dll +0 -0
  125. data/vendor/local/lib/liblz4.dll.1 +0 -0
  126. data/vendor/local/lib/liblz4.dll.1.5.0 +0 -0
  127. data/vendor/local/lib/libmecab.a +0 -0
  128. data/vendor/local/lib/libmecab.dll.a +0 -0
  129. data/vendor/local/lib/libmecab.la +2 -2
  130. data/vendor/local/lib/libmsgpackc.a +0 -0
  131. data/vendor/local/lib/libmsgpackc.dll.a +0 -0
  132. data/vendor/local/lib/libonigmo.a +0 -0
  133. data/vendor/local/lib/libonigmo.dll.a +0 -0
  134. data/vendor/local/lib/libonigmo.la +3 -3
  135. data/vendor/local/lib/libpcre.a +0 -0
  136. data/vendor/local/lib/libpcre.dll.a +0 -0
  137. data/vendor/local/lib/libpcre.la +2 -2
  138. data/vendor/local/lib/libpcrecpp.a +0 -0
  139. data/vendor/local/lib/libpcrecpp.dll.a +0 -0
  140. data/vendor/local/lib/libpcrecpp.la +2 -2
  141. data/vendor/local/lib/libpcreposix.a +0 -0
  142. data/vendor/local/lib/libpcreposix.dll.a +0 -0
  143. data/vendor/local/lib/libpcreposix.la +2 -2
  144. data/vendor/local/lib/libz.a +0 -0
  145. data/vendor/local/lib/libz.dll.a +0 -0
  146. data/vendor/local/lib/pkgconfig/groonga.pc +3 -3
  147. data/vendor/local/lib/pkgconfig/liblz4.pc +5 -5
  148. data/vendor/local/lib/pkgconfig/libpcre.pc +1 -1
  149. data/vendor/local/lib/pkgconfig/libpcrecpp.pc +1 -1
  150. data/vendor/local/lib/pkgconfig/libpcreposix.pc +1 -1
  151. data/vendor/local/lib/pkgconfig/msgpack.pc +1 -1
  152. data/vendor/local/lib/pkgconfig/onigmo.pc +7 -7
  153. data/vendor/local/lib/pkgconfig/zlib.pc +4 -4
  154. data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
  155. data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
  156. data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
  157. data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
  158. data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
  159. data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
  160. data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/release.txt +11 -2
  161. data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +13 -47
  162. data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +6 -5
  163. data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +4 -4
  164. data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +3 -3
  165. data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +3 -3
  166. data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +3 -3
  167. data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +3 -4
  168. data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +9 -9
  169. data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +181 -891
  170. data/vendor/local/share/doc/groonga/en/html/_sources/news/1.2.x.txt +2 -1
  171. data/vendor/local/share/doc/groonga/en/html/_sources/news/2.x.txt +11 -9
  172. data/vendor/local/share/doc/groonga/en/html/_sources/news/3.x.txt +4 -4
  173. data/vendor/local/share/doc/groonga/en/html/_sources/news/5.x.txt +2 -2
  174. data/vendor/local/share/doc/groonga/en/html/_sources/news/6.x.txt +1086 -0
  175. data/vendor/local/share/doc/groonga/en/html/_sources/reference.txt +1 -0
  176. data/vendor/local/share/doc/groonga/en/html/_sources/reference/command/request_timeout.txt +1 -1
  177. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/log_level.txt +45 -19
  178. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_select.txt +632 -91
  179. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/object_inspect.txt +514 -0
  180. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/select.txt +902 -55
  181. data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/grnslap.txt +5 -3
  182. data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-benchmark.txt +11 -9
  183. data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-httpd.txt +71 -23
  184. data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-suggest-httpd.txt +2 -0
  185. data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-suggest-learner.txt +8 -6
  186. data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga.txt +51 -25
  187. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/in_records.txt +195 -0
  188. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/query.txt +100 -15
  189. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/string_length.txt +33 -0
  190. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/vector_new.txt +38 -0
  191. data/vendor/local/share/doc/groonga/en/html/_sources/reference/grn_expr/query_syntax.txt +35 -7
  192. data/vendor/local/share/doc/groonga/en/html/_sources/reference/grn_expr/script_syntax.txt +24 -10
  193. data/vendor/local/share/doc/groonga/en/html/_sources/reference/log.txt +6 -6
  194. data/vendor/local/share/doc/groonga/en/html/_sources/reference/window_function.txt +22 -0
  195. data/vendor/local/share/doc/groonga/en/html/_sources/reference/window_functions/record_number.txt +28 -0
  196. data/vendor/local/share/doc/groonga/en/html/_sources/reference/window_functions/window_record_number.txt +25 -0
  197. data/vendor/local/share/doc/groonga/{ja/html/_sources/reference/functions/record_number.txt → en/html/_sources/reference/window_functions/window_sum.txt} +5 -3
  198. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/query_expansion.txt +3 -3
  199. data/vendor/local/share/doc/groonga/en/html/characteristic.html +5 -5
  200. data/vendor/local/share/doc/groonga/en/html/client.html +5 -5
  201. data/vendor/local/share/doc/groonga/en/html/community.html +5 -5
  202. data/vendor/local/share/doc/groonga/en/html/contribution.html +5 -5
  203. data/vendor/local/share/doc/groonga/en/html/contribution/development.html +5 -5
  204. data/vendor/local/share/doc/groonga/en/html/contribution/development/build.html +5 -5
  205. data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_autotools.html +5 -5
  206. data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_cmake.html +5 -5
  207. data/vendor/local/share/doc/groonga/en/html/contribution/development/build/windows_cmake.html +5 -5
  208. data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +5 -5
  209. data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +5 -5
  210. data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +5 -5
  211. data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +102 -93
  212. data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +5 -5
  213. data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +5 -5
  214. data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +5 -5
  215. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +5 -5
  216. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +5 -5
  217. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/introduction.html +5 -5
  218. data/vendor/local/share/doc/groonga/en/html/contribution/report.html +5 -5
  219. data/vendor/local/share/doc/groonga/en/html/development.html +5 -5
  220. data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +5 -5
  221. data/vendor/local/share/doc/groonga/en/html/genindex.html +326 -251
  222. data/vendor/local/share/doc/groonga/en/html/index.html +111 -104
  223. data/vendor/local/share/doc/groonga/en/html/install.html +8 -9
  224. data/vendor/local/share/doc/groonga/en/html/install/centos.html +24 -65
  225. data/vendor/local/share/doc/groonga/en/html/install/debian.html +12 -11
  226. data/vendor/local/share/doc/groonga/en/html/install/fedora.html +9 -9
  227. data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +8 -8
  228. data/vendor/local/share/doc/groonga/en/html/install/others.html +8 -8
  229. data/vendor/local/share/doc/groonga/en/html/install/solaris.html +8 -8
  230. data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +8 -9
  231. data/vendor/local/share/doc/groonga/en/html/install/windows.html +14 -14
  232. data/vendor/local/share/doc/groonga/en/html/limitations.html +5 -5
  233. data/vendor/local/share/doc/groonga/en/html/news.html +213 -898
  234. data/vendor/local/share/doc/groonga/en/html/news/0.x.html +5 -5
  235. data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +5 -5
  236. data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +5 -5
  237. data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +7 -6
  238. data/vendor/local/share/doc/groonga/en/html/news/1.3.x.html +5 -5
  239. data/vendor/local/share/doc/groonga/en/html/news/2.x.html +16 -14
  240. data/vendor/local/share/doc/groonga/en/html/news/3.x.html +9 -9
  241. data/vendor/local/share/doc/groonga/en/html/news/4.x.html +5 -5
  242. data/vendor/local/share/doc/groonga/en/html/news/5.x.html +7 -7
  243. data/vendor/local/share/doc/groonga/en/html/news/6.x.html +1148 -0
  244. data/vendor/local/share/doc/groonga/en/html/news/senna.html +5 -5
  245. data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
  246. data/vendor/local/share/doc/groonga/en/html/reference.html +90 -82
  247. data/vendor/local/share/doc/groonga/en/html/reference/alias.html +23 -23
  248. data/vendor/local/share/doc/groonga/en/html/reference/api.html +39 -39
  249. data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +22 -22
  250. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +24 -24
  251. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +24 -24
  252. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +24 -24
  253. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_content_type.html +22 -22
  254. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +24 -24
  255. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +24 -24
  256. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +24 -24
  257. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +22 -22
  258. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +24 -24
  259. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +24 -24
  260. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +24 -24
  261. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +24 -24
  262. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +24 -24
  263. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +24 -24
  264. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +24 -24
  265. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +24 -24
  266. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +24 -24
  267. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +24 -24
  268. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +24 -24
  269. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_thread.html +24 -24
  270. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +24 -24
  271. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +20 -20
  272. data/vendor/local/share/doc/groonga/en/html/reference/api/overview.html +24 -24
  273. data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +22 -22
  274. data/vendor/local/share/doc/groonga/en/html/reference/cast.html +5 -5
  275. data/vendor/local/share/doc/groonga/en/html/reference/column.html +5 -5
  276. data/vendor/local/share/doc/groonga/en/html/reference/columns/index.html +5 -5
  277. data/vendor/local/share/doc/groonga/en/html/reference/columns/pseudo.html +5 -5
  278. data/vendor/local/share/doc/groonga/en/html/reference/columns/scalar.html +5 -5
  279. data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +5 -5
  280. data/vendor/local/share/doc/groonga/en/html/reference/command.html +5 -5
  281. data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +5 -5
  282. data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +5 -5
  283. data/vendor/local/share/doc/groonga/en/html/reference/command/pretty_print.html +5 -5
  284. data/vendor/local/share/doc/groonga/en/html/reference/command/request_id.html +5 -5
  285. data/vendor/local/share/doc/groonga/en/html/reference/command/request_timeout.html +6 -6
  286. data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +5 -5
  287. data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +5 -5
  288. data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +5 -5
  289. data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +5 -5
  290. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_copy.html +5 -5
  291. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +5 -5
  292. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +5 -5
  293. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +5 -5
  294. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +5 -5
  295. data/vendor/local/share/doc/groonga/en/html/reference/commands/config_delete.html +5 -5
  296. data/vendor/local/share/doc/groonga/en/html/reference/commands/config_get.html +5 -5
  297. data/vendor/local/share/doc/groonga/en/html/reference/commands/config_set.html +5 -5
  298. data/vendor/local/share/doc/groonga/en/html/reference/commands/database_unmap.html +5 -5
  299. data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +5 -5
  300. data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +5 -5
  301. data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +5 -5
  302. data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +5 -5
  303. data/vendor/local/share/doc/groonga/en/html/reference/commands/io_flush.html +5 -5
  304. data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +5 -5
  305. data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_acquire.html +5 -5
  306. data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_clear.html +5 -5
  307. data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_release.html +5 -5
  308. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +61 -17
  309. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +5 -5
  310. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +5 -5
  311. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_count.html +5 -5
  312. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_parameters.html +5 -5
  313. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_range_filter.html +5 -5
  314. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_select.html +1727 -408
  315. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_shard_list.html +5 -5
  316. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_table_remove.html +5 -5
  317. data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +5 -5
  318. data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +5 -5
  319. data/vendor/local/share/doc/groonga/en/html/reference/commands/object_exist.html +5 -5
  320. data/vendor/local/share/doc/groonga/en/html/reference/commands/object_inspect.html +526 -33
  321. data/vendor/local/share/doc/groonga/en/html/reference/commands/object_list.html +5 -5
  322. data/vendor/local/share/doc/groonga/en/html/reference/commands/object_remove.html +5 -5
  323. data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_register.html +5 -5
  324. data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_unregister.html +5 -5
  325. data/vendor/local/share/doc/groonga/en/html/reference/commands/query_expand.html +5 -5
  326. data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +5 -5
  327. data/vendor/local/share/doc/groonga/en/html/reference/commands/range_filter.html +5 -5
  328. data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +5 -5
  329. data/vendor/local/share/doc/groonga/en/html/reference/commands/reindex.html +5 -5
  330. data/vendor/local/share/doc/groonga/en/html/reference/commands/request_cancel.html +5 -5
  331. data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +5 -5
  332. data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +5 -5
  333. data/vendor/local/share/doc/groonga/en/html/reference/commands/schema.html +5 -5
  334. data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +1685 -492
  335. data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +5 -5
  336. data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +5 -5
  337. data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +5 -5
  338. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_copy.html +5 -5
  339. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +5 -5
  340. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +5 -5
  341. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +5 -5
  342. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_rename.html +5 -5
  343. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_tokenize.html +5 -5
  344. data/vendor/local/share/doc/groonga/en/html/reference/commands/thread_limit.html +5 -5
  345. data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +5 -5
  346. data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenizer_list.html +5 -5
  347. data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +5 -5
  348. data/vendor/local/share/doc/groonga/en/html/reference/configuration.html +19 -19
  349. data/vendor/local/share/doc/groonga/en/html/reference/executables.html +5 -5
  350. data/vendor/local/share/doc/groonga/en/html/reference/executables/grndb.html +5 -5
  351. data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +14 -14
  352. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +32 -32
  353. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +75 -34
  354. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +5 -5
  355. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
  356. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +24 -24
  357. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +23 -23
  358. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +107 -82
  359. data/vendor/local/share/doc/groonga/en/html/reference/function.html +25 -23
  360. data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +5 -5
  361. data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +5 -5
  362. data/vendor/local/share/doc/groonga/en/html/reference/functions/fuzzy_search.html +5 -5
  363. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +5 -5
  364. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +5 -5
  365. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +5 -5
  366. data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +5 -5
  367. data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +5 -5
  368. data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +10 -10
  369. data/vendor/local/share/doc/groonga/en/html/reference/functions/in_records.html +355 -0
  370. data/vendor/local/share/doc/groonga/en/html/reference/functions/in_values.html +30 -30
  371. data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +25 -25
  372. data/vendor/local/share/doc/groonga/en/html/reference/functions/number_classify.html +23 -23
  373. data/vendor/local/share/doc/groonga/en/html/reference/functions/prefix_rk_search.html +31 -31
  374. data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +155 -55
  375. data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +28 -28
  376. data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +15 -15
  377. data/vendor/local/share/doc/groonga/en/html/reference/functions/{record_number.html → string_length.html} +36 -31
  378. data/vendor/local/share/doc/groonga/en/html/reference/functions/string_substring.html +24 -24
  379. data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +31 -31
  380. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_day.html +23 -23
  381. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_hour.html +23 -23
  382. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_minute.html +23 -23
  383. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_month.html +23 -23
  384. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_second.html +23 -23
  385. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_week.html +23 -23
  386. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_year.html +24 -24
  387. data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_new.html +170 -0
  388. data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_size.html +28 -28
  389. data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_slice.html +24 -24
  390. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +5 -5
  391. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +36 -26
  392. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +27 -15
  393. data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +21 -21
  394. data/vendor/local/share/doc/groonga/en/html/reference/log.html +29 -29
  395. data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +5 -5
  396. data/vendor/local/share/doc/groonga/en/html/reference/operations.html +17 -17
  397. data/vendor/local/share/doc/groonga/en/html/reference/operations/geolocation_search.html +20 -20
  398. data/vendor/local/share/doc/groonga/en/html/reference/operations/prefix_rk_search.html +26 -26
  399. data/vendor/local/share/doc/groonga/en/html/reference/output.html +5 -5
  400. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +5 -5
  401. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +5 -5
  402. data/vendor/local/share/doc/groonga/en/html/reference/regular_expression.html +5 -5
  403. data/vendor/local/share/doc/groonga/en/html/reference/scorer.html +5 -5
  404. data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_at_most.html +5 -5
  405. data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_idf.html +5 -5
  406. data/vendor/local/share/doc/groonga/en/html/reference/sharding.html +23 -23
  407. data/vendor/local/share/doc/groonga/en/html/reference/suggest.html +33 -33
  408. data/vendor/local/share/doc/groonga/en/html/reference/suggest/completion.html +32 -32
  409. data/vendor/local/share/doc/groonga/en/html/reference/suggest/correction.html +28 -28
  410. data/vendor/local/share/doc/groonga/en/html/reference/suggest/introduction.html +26 -26
  411. data/vendor/local/share/doc/groonga/en/html/reference/suggest/suggestion.html +28 -28
  412. data/vendor/local/share/doc/groonga/en/html/reference/tables.html +5 -5
  413. data/vendor/local/share/doc/groonga/en/html/reference/token_filters.html +5 -5
  414. data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +5 -5
  415. data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +35 -35
  416. data/vendor/local/share/doc/groonga/en/html/reference/types.html +5 -5
  417. data/vendor/local/share/doc/groonga/en/html/reference/window_function.html +147 -0
  418. data/vendor/local/share/doc/groonga/en/html/reference/window_functions/record_number.html +164 -0
  419. data/vendor/local/share/doc/groonga/en/html/reference/window_functions/window_record_number.html +163 -0
  420. data/vendor/local/share/doc/groonga/en/html/reference/window_functions/window_sum.html +163 -0
  421. data/vendor/local/share/doc/groonga/en/html/search.html +5 -5
  422. data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
  423. data/vendor/local/share/doc/groonga/en/html/server.html +5 -5
  424. data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +5 -5
  425. data/vendor/local/share/doc/groonga/en/html/server/http.html +5 -5
  426. data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +5 -5
  427. data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +5 -5
  428. data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +5 -5
  429. data/vendor/local/share/doc/groonga/en/html/server/memcached.html +5 -5
  430. data/vendor/local/share/doc/groonga/en/html/server/package.html +5 -5
  431. data/vendor/local/share/doc/groonga/en/html/spec.html +9 -9
  432. data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +5 -5
  433. data/vendor/local/share/doc/groonga/en/html/spec/search.html +5 -5
  434. data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +5 -5
  435. data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
  436. data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +5 -5
  437. data/vendor/local/share/doc/groonga/en/html/tutorial.html +5 -5
  438. data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +5 -5
  439. data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +5 -5
  440. data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +5 -5
  441. data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +5 -5
  442. data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +5 -5
  443. data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +5 -5
  444. data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +5 -5
  445. data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +5 -5
  446. data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +5 -5
  447. data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +8 -8
  448. data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +5 -5
  449. data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
  450. data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/release.txt +11 -2
  451. data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +13 -47
  452. data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +6 -5
  453. data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +4 -4
  454. data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +3 -3
  455. data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +3 -3
  456. data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +3 -3
  457. data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +3 -4
  458. data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +9 -9
  459. data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +181 -891
  460. data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.2.x.txt +2 -1
  461. data/vendor/local/share/doc/groonga/ja/html/_sources/news/2.x.txt +11 -9
  462. data/vendor/local/share/doc/groonga/ja/html/_sources/news/3.x.txt +4 -4
  463. data/vendor/local/share/doc/groonga/ja/html/_sources/news/5.x.txt +2 -2
  464. data/vendor/local/share/doc/groonga/ja/html/_sources/news/6.x.txt +1086 -0
  465. data/vendor/local/share/doc/groonga/ja/html/_sources/reference.txt +1 -0
  466. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/command/request_timeout.txt +1 -1
  467. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/log_level.txt +45 -19
  468. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_select.txt +632 -91
  469. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/object_inspect.txt +514 -0
  470. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/select.txt +902 -55
  471. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/grnslap.txt +5 -3
  472. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-benchmark.txt +11 -9
  473. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-httpd.txt +71 -23
  474. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-suggest-httpd.txt +2 -0
  475. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-suggest-learner.txt +8 -6
  476. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga.txt +51 -25
  477. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/in_records.txt +195 -0
  478. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/query.txt +100 -15
  479. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/string_length.txt +33 -0
  480. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/vector_new.txt +38 -0
  481. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/grn_expr/query_syntax.txt +35 -7
  482. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/grn_expr/script_syntax.txt +24 -10
  483. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/log.txt +6 -6
  484. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/window_function.txt +22 -0
  485. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/window_functions/record_number.txt +28 -0
  486. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/window_functions/window_record_number.txt +25 -0
  487. data/vendor/local/share/doc/groonga/{en/html/_sources/reference/functions/record_number.txt → ja/html/_sources/reference/window_functions/window_sum.txt} +5 -3
  488. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/query_expansion.txt +3 -3
  489. data/vendor/local/share/doc/groonga/ja/html/characteristic.html +5 -5
  490. data/vendor/local/share/doc/groonga/ja/html/client.html +5 -5
  491. data/vendor/local/share/doc/groonga/ja/html/community.html +5 -5
  492. data/vendor/local/share/doc/groonga/ja/html/contribution.html +5 -5
  493. data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +5 -5
  494. data/vendor/local/share/doc/groonga/ja/html/contribution/development/build.html +5 -5
  495. data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_autotools.html +5 -5
  496. data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_cmake.html +5 -5
  497. data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/windows_cmake.html +5 -5
  498. data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +5 -5
  499. data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +5 -5
  500. data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +5 -5
  501. data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +102 -93
  502. data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +5 -5
  503. data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +5 -5
  504. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +5 -5
  505. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +5 -5
  506. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +5 -5
  507. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/introduction.html +5 -5
  508. data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +5 -5
  509. data/vendor/local/share/doc/groonga/ja/html/development.html +5 -5
  510. data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +5 -5
  511. data/vendor/local/share/doc/groonga/ja/html/genindex.html +186 -118
  512. data/vendor/local/share/doc/groonga/ja/html/index.html +111 -104
  513. data/vendor/local/share/doc/groonga/ja/html/install.html +8 -9
  514. data/vendor/local/share/doc/groonga/ja/html/install/centos.html +24 -61
  515. data/vendor/local/share/doc/groonga/ja/html/install/debian.html +12 -11
  516. data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +9 -9
  517. data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +8 -8
  518. data/vendor/local/share/doc/groonga/ja/html/install/others.html +9 -9
  519. data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +8 -8
  520. data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +8 -9
  521. data/vendor/local/share/doc/groonga/ja/html/install/windows.html +14 -14
  522. data/vendor/local/share/doc/groonga/ja/html/limitations.html +6 -6
  523. data/vendor/local/share/doc/groonga/ja/html/news.html +132 -761
  524. data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +5 -5
  525. data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +5 -5
  526. data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +5 -5
  527. data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +6 -6
  528. data/vendor/local/share/doc/groonga/ja/html/news/1.3.x.html +5 -5
  529. data/vendor/local/share/doc/groonga/ja/html/news/2.x.html +10 -10
  530. data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +9 -9
  531. data/vendor/local/share/doc/groonga/ja/html/news/4.x.html +5 -5
  532. data/vendor/local/share/doc/groonga/ja/html/news/5.x.html +6 -6
  533. data/vendor/local/share/doc/groonga/ja/html/news/6.x.html +1064 -0
  534. data/vendor/local/share/doc/groonga/ja/html/news/senna.html +5 -5
  535. data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
  536. data/vendor/local/share/doc/groonga/ja/html/reference.html +90 -82
  537. data/vendor/local/share/doc/groonga/ja/html/reference/alias.html +23 -23
  538. data/vendor/local/share/doc/groonga/ja/html/reference/api.html +39 -39
  539. data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +22 -22
  540. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +24 -24
  541. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +24 -24
  542. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +24 -24
  543. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_content_type.html +22 -22
  544. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +24 -24
  545. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +24 -24
  546. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +24 -24
  547. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +22 -22
  548. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +24 -24
  549. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +24 -24
  550. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +24 -24
  551. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +24 -24
  552. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +24 -24
  553. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +24 -24
  554. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +24 -24
  555. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +24 -24
  556. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +24 -24
  557. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +24 -24
  558. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +24 -24
  559. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_thread.html +24 -24
  560. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +24 -24
  561. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +20 -20
  562. data/vendor/local/share/doc/groonga/ja/html/reference/api/overview.html +24 -24
  563. data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +22 -22
  564. data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +5 -5
  565. data/vendor/local/share/doc/groonga/ja/html/reference/column.html +5 -5
  566. data/vendor/local/share/doc/groonga/ja/html/reference/columns/index.html +5 -5
  567. data/vendor/local/share/doc/groonga/ja/html/reference/columns/pseudo.html +5 -5
  568. data/vendor/local/share/doc/groonga/ja/html/reference/columns/scalar.html +5 -5
  569. data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +5 -5
  570. data/vendor/local/share/doc/groonga/ja/html/reference/command.html +5 -5
  571. data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +5 -5
  572. data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +5 -5
  573. data/vendor/local/share/doc/groonga/ja/html/reference/command/pretty_print.html +5 -5
  574. data/vendor/local/share/doc/groonga/ja/html/reference/command/request_id.html +5 -5
  575. data/vendor/local/share/doc/groonga/ja/html/reference/command/request_timeout.html +6 -6
  576. data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +5 -5
  577. data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +5 -5
  578. data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +5 -5
  579. data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +5 -5
  580. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_copy.html +5 -5
  581. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +5 -5
  582. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +5 -5
  583. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +5 -5
  584. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +5 -5
  585. data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_delete.html +5 -5
  586. data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_get.html +5 -5
  587. data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_set.html +5 -5
  588. data/vendor/local/share/doc/groonga/ja/html/reference/commands/database_unmap.html +5 -5
  589. data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +5 -5
  590. data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +5 -5
  591. data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +5 -5
  592. data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +5 -5
  593. data/vendor/local/share/doc/groonga/ja/html/reference/commands/io_flush.html +5 -5
  594. data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +5 -5
  595. data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_acquire.html +5 -5
  596. data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_clear.html +5 -5
  597. data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_release.html +5 -5
  598. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +67 -17
  599. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +5 -5
  600. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +5 -5
  601. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_count.html +5 -5
  602. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_parameters.html +5 -5
  603. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_range_filter.html +5 -5
  604. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_select.html +1629 -383
  605. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_shard_list.html +5 -5
  606. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_table_remove.html +6 -6
  607. data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +5 -5
  608. data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +5 -5
  609. data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_exist.html +5 -5
  610. data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_inspect.html +508 -33
  611. data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_list.html +5 -5
  612. data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_remove.html +5 -5
  613. data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_register.html +5 -5
  614. data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_unregister.html +5 -5
  615. data/vendor/local/share/doc/groonga/ja/html/reference/commands/query_expand.html +5 -5
  616. data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +5 -5
  617. data/vendor/local/share/doc/groonga/ja/html/reference/commands/range_filter.html +5 -5
  618. data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +5 -5
  619. data/vendor/local/share/doc/groonga/ja/html/reference/commands/reindex.html +5 -5
  620. data/vendor/local/share/doc/groonga/ja/html/reference/commands/request_cancel.html +5 -5
  621. data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +5 -5
  622. data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +5 -5
  623. data/vendor/local/share/doc/groonga/ja/html/reference/commands/schema.html +5 -5
  624. data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +1606 -478
  625. data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +5 -5
  626. data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +5 -5
  627. data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +5 -5
  628. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_copy.html +5 -5
  629. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +5 -5
  630. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +5 -5
  631. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +5 -5
  632. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_rename.html +5 -5
  633. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_tokenize.html +5 -5
  634. data/vendor/local/share/doc/groonga/ja/html/reference/commands/thread_limit.html +5 -5
  635. data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +5 -5
  636. data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +5 -5
  637. data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +5 -5
  638. data/vendor/local/share/doc/groonga/ja/html/reference/configuration.html +19 -19
  639. data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +5 -5
  640. data/vendor/local/share/doc/groonga/ja/html/reference/executables/grndb.html +5 -5
  641. data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +14 -14
  642. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +32 -32
  643. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +76 -48
  644. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +5 -5
  645. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
  646. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +24 -24
  647. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +23 -23
  648. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +103 -82
  649. data/vendor/local/share/doc/groonga/ja/html/reference/function.html +25 -23
  650. data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +5 -5
  651. data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +5 -5
  652. data/vendor/local/share/doc/groonga/ja/html/reference/functions/fuzzy_search.html +5 -5
  653. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +5 -5
  654. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +5 -5
  655. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +5 -5
  656. data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +5 -5
  657. data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +5 -5
  658. data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +10 -10
  659. data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_records.html +370 -0
  660. data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_values.html +30 -30
  661. data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +25 -25
  662. data/vendor/local/share/doc/groonga/ja/html/reference/functions/number_classify.html +23 -23
  663. data/vendor/local/share/doc/groonga/ja/html/reference/functions/prefix_rk_search.html +31 -31
  664. data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +150 -52
  665. data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +28 -28
  666. data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +15 -15
  667. data/vendor/local/share/doc/groonga/ja/html/reference/functions/{record_number.html → string_length.html} +36 -31
  668. data/vendor/local/share/doc/groonga/ja/html/reference/functions/string_substring.html +24 -24
  669. data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +31 -31
  670. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_day.html +23 -23
  671. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_hour.html +23 -23
  672. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_minute.html +23 -23
  673. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_month.html +23 -23
  674. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_second.html +23 -23
  675. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_week.html +23 -23
  676. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_year.html +24 -24
  677. data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_new.html +171 -0
  678. data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_size.html +28 -28
  679. data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_slice.html +24 -24
  680. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +5 -5
  681. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +36 -26
  682. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +19 -7
  683. data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +21 -21
  684. data/vendor/local/share/doc/groonga/ja/html/reference/log.html +25 -25
  685. data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +5 -5
  686. data/vendor/local/share/doc/groonga/ja/html/reference/operations.html +17 -17
  687. data/vendor/local/share/doc/groonga/ja/html/reference/operations/geolocation_search.html +20 -20
  688. data/vendor/local/share/doc/groonga/ja/html/reference/operations/prefix_rk_search.html +26 -26
  689. data/vendor/local/share/doc/groonga/ja/html/reference/output.html +5 -5
  690. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +5 -5
  691. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +5 -5
  692. data/vendor/local/share/doc/groonga/ja/html/reference/regular_expression.html +5 -5
  693. data/vendor/local/share/doc/groonga/ja/html/reference/scorer.html +5 -5
  694. data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_at_most.html +6 -6
  695. data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_idf.html +5 -5
  696. data/vendor/local/share/doc/groonga/ja/html/reference/sharding.html +23 -23
  697. data/vendor/local/share/doc/groonga/ja/html/reference/suggest.html +33 -33
  698. data/vendor/local/share/doc/groonga/ja/html/reference/suggest/completion.html +32 -32
  699. data/vendor/local/share/doc/groonga/ja/html/reference/suggest/correction.html +28 -28
  700. data/vendor/local/share/doc/groonga/ja/html/reference/suggest/introduction.html +26 -26
  701. data/vendor/local/share/doc/groonga/ja/html/reference/suggest/suggestion.html +28 -28
  702. data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +5 -5
  703. data/vendor/local/share/doc/groonga/ja/html/reference/token_filters.html +5 -5
  704. data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +5 -5
  705. data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +35 -35
  706. data/vendor/local/share/doc/groonga/ja/html/reference/types.html +5 -5
  707. data/vendor/local/share/doc/groonga/ja/html/reference/window_function.html +146 -0
  708. data/vendor/local/share/doc/groonga/ja/html/reference/window_functions/record_number.html +165 -0
  709. data/vendor/local/share/doc/groonga/ja/html/reference/window_functions/window_record_number.html +164 -0
  710. data/vendor/local/share/doc/groonga/ja/html/reference/window_functions/window_sum.html +164 -0
  711. data/vendor/local/share/doc/groonga/ja/html/search.html +5 -5
  712. data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
  713. data/vendor/local/share/doc/groonga/ja/html/server.html +5 -5
  714. data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +5 -5
  715. data/vendor/local/share/doc/groonga/ja/html/server/http.html +5 -5
  716. data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +5 -5
  717. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +5 -5
  718. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +5 -5
  719. data/vendor/local/share/doc/groonga/ja/html/server/memcached.html +5 -5
  720. data/vendor/local/share/doc/groonga/ja/html/server/package.html +5 -5
  721. data/vendor/local/share/doc/groonga/ja/html/spec.html +9 -9
  722. data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +5 -5
  723. data/vendor/local/share/doc/groonga/ja/html/spec/search.html +5 -5
  724. data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +5 -5
  725. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
  726. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +5 -5
  727. data/vendor/local/share/doc/groonga/ja/html/tutorial.html +5 -5
  728. data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +5 -5
  729. data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +5 -5
  730. data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +5 -5
  731. data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +5 -5
  732. data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +5 -5
  733. data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +5 -5
  734. data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +5 -5
  735. data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +5 -5
  736. data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +5 -5
  737. data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +8 -8
  738. data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +5 -5
  739. data/vendor/local/share/groonga/mruby/LEGAL +4 -0
  740. data/vendor/local/share/license/mruby/AUTHORS +1 -0
  741. data/vendor/local/share/license/mruby/MITL +1 -1
  742. data/vendor/local/share/license/zlib/README +3 -3
  743. metadata +100 -67
  744. data/lib/2.4/groonga.so +0 -0
  745. data/vendor/local/sbin/groonga-httpd-restart +0 -105
@@ -7,7 +7,7 @@
7
7
  <head>
8
8
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9
9
 
10
- <title>7.3.52. ruby_load &#8212; Groonga v6.1.3ドキュメント</title>
10
+ <title>7.3.52. ruby_load &#8212; Groonga v7.0.1-160-gda23e59ドキュメント</title>
11
11
 
12
12
  <link rel="stylesheet" href="../../_static/groonga.css" type="text/css" />
13
13
  <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
@@ -15,7 +15,7 @@
15
15
  <script type="text/javascript">
16
16
  var DOCUMENTATION_OPTIONS = {
17
17
  URL_ROOT: '../../',
18
- VERSION: '6.1.3',
18
+ VERSION: '7.0.1-160-gda23e59',
19
19
  COLLAPSE_INDEX: false,
20
20
  FILE_SUFFIX: '.html',
21
21
  HAS_SOURCE: true
@@ -28,7 +28,7 @@
28
28
  <link rel="shortcut icon" href="../../_static/favicon.ico"/>
29
29
  <link rel="index" title="索引" href="../../genindex.html" />
30
30
  <link rel="search" title="検索" href="../../search.html" />
31
- <link rel="top" title="Groonga v6.1.3ドキュメント" href="../../index.html" />
31
+ <link rel="top" title="Groonga v7.0.1-160-gda23e59ドキュメント" href="../../index.html" />
32
32
  <link rel="up" title="7.3. コマンド" href="../command.html" />
33
33
  <link rel="next" title="7.3.53. schema" href="schema.html" />
34
34
  <link rel="prev" title="7.3.51. ruby_eval" href="ruby_eval.html" />
@@ -63,7 +63,7 @@
63
63
  <li class="right" >
64
64
  <a href="ruby_eval.html" title="7.3.51. ruby_eval"
65
65
  accesskey="P">前へ</a> |</li>
66
- <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v6.1.3ドキュメント</a> &#187;</li>
66
+ <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v7.0.1-160-gda23e59ドキュメント</a> &#187;</li>
67
67
  <li class="nav-item nav-item-1"><a href="../../reference.html" >7. リファレンスマニュアル</a> &#187;</li>
68
68
  <li class="nav-item nav-item-2"><a href="../command.html" accesskey="U">7.3. コマンド</a> &#187;</li>
69
69
  </ul>
@@ -192,7 +192,7 @@ ruby_load &quot;expression.rb&quot;
192
192
  <li class="right" >
193
193
  <a href="ruby_eval.html" title="7.3.51. ruby_eval"
194
194
  >前へ</a> |</li>
195
- <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v6.1.3ドキュメント</a> &#187;</li>
195
+ <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v7.0.1-160-gda23e59ドキュメント</a> &#187;</li>
196
196
  <li class="nav-item nav-item-1"><a href="../../reference.html" >7. リファレンスマニュアル</a> &#187;</li>
197
197
  <li class="nav-item nav-item-2"><a href="../command.html" >7.3. コマンド</a> &#187;</li>
198
198
  </ul>
@@ -7,7 +7,7 @@
7
7
  <head>
8
8
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9
9
 
10
- <title>7.3.53. schema &#8212; Groonga v6.1.3ドキュメント</title>
10
+ <title>7.3.53. schema &#8212; Groonga v7.0.1-160-gda23e59ドキュメント</title>
11
11
 
12
12
  <link rel="stylesheet" href="../../_static/groonga.css" type="text/css" />
13
13
  <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
@@ -15,7 +15,7 @@
15
15
  <script type="text/javascript">
16
16
  var DOCUMENTATION_OPTIONS = {
17
17
  URL_ROOT: '../../',
18
- VERSION: '6.1.3',
18
+ VERSION: '7.0.1-160-gda23e59',
19
19
  COLLAPSE_INDEX: false,
20
20
  FILE_SUFFIX: '.html',
21
21
  HAS_SOURCE: true
@@ -28,7 +28,7 @@
28
28
  <link rel="shortcut icon" href="../../_static/favicon.ico"/>
29
29
  <link rel="index" title="索引" href="../../genindex.html" />
30
30
  <link rel="search" title="検索" href="../../search.html" />
31
- <link rel="top" title="Groonga v6.1.3ドキュメント" href="../../index.html" />
31
+ <link rel="top" title="Groonga v7.0.1-160-gda23e59ドキュメント" href="../../index.html" />
32
32
  <link rel="up" title="7.3. コマンド" href="../command.html" />
33
33
  <link rel="next" title="7.3.54. select" href="select.html" />
34
34
  <link rel="prev" title="7.3.52. ruby_load" href="ruby_load.html" />
@@ -63,7 +63,7 @@
63
63
  <li class="right" >
64
64
  <a href="ruby_load.html" title="7.3.52. ruby_load"
65
65
  accesskey="P">前へ</a> |</li>
66
- <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v6.1.3ドキュメント</a> &#187;</li>
66
+ <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v7.0.1-160-gda23e59ドキュメント</a> &#187;</li>
67
67
  <li class="nav-item nav-item-1"><a href="../../reference.html" >7. リファレンスマニュアル</a> &#187;</li>
68
68
  <li class="nav-item nav-item-2"><a href="../command.html" accesskey="U">7.3. コマンド</a> &#187;</li>
69
69
  </ul>
@@ -1183,7 +1183,7 @@ column_create Terms memos_content_index \
1183
1183
  <li class="right" >
1184
1184
  <a href="ruby_load.html" title="7.3.52. ruby_load"
1185
1185
  >前へ</a> |</li>
1186
- <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v6.1.3ドキュメント</a> &#187;</li>
1186
+ <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v7.0.1-160-gda23e59ドキュメント</a> &#187;</li>
1187
1187
  <li class="nav-item nav-item-1"><a href="../../reference.html" >7. リファレンスマニュアル</a> &#187;</li>
1188
1188
  <li class="nav-item nav-item-2"><a href="../command.html" >7.3. コマンド</a> &#187;</li>
1189
1189
  </ul>
@@ -7,7 +7,7 @@
7
7
  <head>
8
8
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9
9
 
10
- <title>7.3.54. select &#8212; Groonga v6.1.3ドキュメント</title>
10
+ <title>7.3.54. select &#8212; Groonga v7.0.1-160-gda23e59ドキュメント</title>
11
11
 
12
12
  <link rel="stylesheet" href="../../_static/groonga.css" type="text/css" />
13
13
  <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
@@ -15,7 +15,7 @@
15
15
  <script type="text/javascript">
16
16
  var DOCUMENTATION_OPTIONS = {
17
17
  URL_ROOT: '../../',
18
- VERSION: '6.1.3',
18
+ VERSION: '7.0.1-160-gda23e59',
19
19
  COLLAPSE_INDEX: false,
20
20
  FILE_SUFFIX: '.html',
21
21
  HAS_SOURCE: true
@@ -28,7 +28,7 @@
28
28
  <link rel="shortcut icon" href="../../_static/favicon.ico"/>
29
29
  <link rel="index" title="索引" href="../../genindex.html" />
30
30
  <link rel="search" title="検索" href="../../search.html" />
31
- <link rel="top" title="Groonga v6.1.3ドキュメント" href="../../index.html" />
31
+ <link rel="top" title="Groonga v7.0.1-160-gda23e59ドキュメント" href="../../index.html" />
32
32
  <link rel="up" title="7.3. コマンド" href="../command.html" />
33
33
  <link rel="next" title="7.3.55. shutdown" href="shutdown.html" />
34
34
  <link rel="prev" title="7.3.53. schema" href="schema.html" />
@@ -63,7 +63,7 @@
63
63
  <li class="right" >
64
64
  <a href="schema.html" title="7.3.53. schema"
65
65
  accesskey="P">前へ</a> |</li>
66
- <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v6.1.3ドキュメント</a> &#187;</li>
66
+ <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v7.0.1-160-gda23e59ドキュメント</a> &#187;</li>
67
67
  <li class="nav-item nav-item-1"><a href="../../reference.html" >7. リファレンスマニュアル</a> &#187;</li>
68
68
  <li class="nav-item nav-item-2"><a href="../command.html" accesskey="U">7.3. コマンド</a> &#187;</li>
69
69
  </ul>
@@ -107,20 +107,60 @@
107
107
  [adjuster=null]
108
108
  [drilldown_calc_types=NONE]
109
109
  [drilldown_calc_target=null]
110
+ [drilldown_filter=null]
110
111
  [sort_keys=null]
111
112
  [drilldown_sort_keys=null]
112
113
  </pre></div>
113
114
  </div>
114
- <p><code class="docutils literal"><span class="pre">select</span></code> には高度なドリルダウン機能のために以下の名前付き引数があります。</p>
115
+ <p>以下の名前付き引数で動的カラム機能を使うことができます。</p>
116
+ <blockquote>
117
+ <div><ul class="simple">
118
+ <li><code class="docutils literal"><span class="pre">columns[${NAME}].stage=null</span></code></li>
119
+ <li><code class="docutils literal"><span class="pre">columns[${NAME}].flags=COLUMN_SCALAR</span></code></li>
120
+ <li><code class="docutils literal"><span class="pre">columns[${NAME}].type=null</span></code></li>
121
+ <li><code class="docutils literal"><span class="pre">columns[${NAME}].value=null</span></code></li>
122
+ <li><code class="docutils literal"><span class="pre">columns[${NAME}].window.sort_keys=null</span></code></li>
123
+ <li><code class="docutils literal"><span class="pre">columns[${NAME}].window.group_keys=null</span></code></li>
124
+ </ul>
125
+ </div></blockquote>
126
+ <p><code class="docutils literal"><span class="pre">${NAME}</span></code> には1つ以上のアルファベット、数字、 <code class="docutils literal"><span class="pre">_</span></code> を使うことができます。たとえば、 <code class="docutils literal"><span class="pre">column1</span></code> は有効な <code class="docutils literal"><span class="pre">${NAME}</span></code> です。これは通常のカラムと同じルールです。 <a class="reference internal" href="column_create.html#column-create-name"><span class="std std-ref">name</span></a> も見てください。</p>
127
+ <p>同じ <code class="docutils literal"><span class="pre">${NAME}</span></code> も持つ引数は同じグループになります。</p>
128
+ <p>たとえば、以下の引数は1つの動的カラムを指定しています。</p>
129
+ <blockquote>
130
+ <div><ul class="simple">
131
+ <li><code class="docutils literal"><span class="pre">--columns[name].stage</span> <span class="pre">initial</span></code></li>
132
+ <li><code class="docutils literal"><span class="pre">--columns[name].type</span> <span class="pre">UInt32</span></code></li>
133
+ <li><code class="docutils literal"><span class="pre">--columns[name].value</span> <span class="pre">29</span></code></li>
134
+ </ul>
135
+ </div></blockquote>
136
+ <p>以下の引数は2つの動的カラムを指定しています。</p>
137
+ <blockquote>
138
+ <div><ul class="simple">
139
+ <li><code class="docutils literal"><span class="pre">--columns[name1].stage</span> <span class="pre">initial</span></code></li>
140
+ <li><code class="docutils literal"><span class="pre">--columns[name1].type</span> <span class="pre">UInt32</span></code></li>
141
+ <li><code class="docutils literal"><span class="pre">--columns[name1].value</span> <span class="pre">29</span></code></li>
142
+ <li><code class="docutils literal"><span class="pre">--columns[name2].stage</span> <span class="pre">filtered</span></code></li>
143
+ <li><code class="docutils literal"><span class="pre">--columns[name2].type</span> <span class="pre">Float</span></code></li>
144
+ <li><code class="docutils literal"><span class="pre">--columns[name2].value</span> <span class="pre">'_score</span> <span class="pre">*</span> <span class="pre">0.1'</span></code></li>
145
+ </ul>
146
+ </div></blockquote>
147
+ <p>このコマンドには高度なドリルダウン機能のために以下の名前付き引数があります。</p>
115
148
  <blockquote>
116
149
  <div><ul class="simple">
117
150
  <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].keys=null</span></code></li>
118
- <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].sortby=null</span></code></li>
151
+ <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].sort_keys=null</span></code></li>
119
152
  <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].output_columns=&quot;_key,</span> <span class="pre">_nsubrecs&quot;</span></code></li>
120
153
  <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].offset=0</span></code></li>
121
154
  <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].limit=10</span></code></li>
122
155
  <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].calc_types=NONE</span></code></li>
123
156
  <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].calc_target=null</span></code></li>
157
+ <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].filter=null</span></code></li>
158
+ <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].stage=null</span></code></li>
159
+ <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].flags=COLUMN_SCALAR</span></code></li>
160
+ <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].type=null</span></code></li>
161
+ <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].value=null</span></code></li>
162
+ <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].window.sort_keys=null</span></code></li>
163
+ <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].window.group_keys=null</span></code></li>
124
164
  </ul>
125
165
  </div></blockquote>
126
166
  <div class="deprecated">
@@ -132,16 +172,16 @@
132
172
  <blockquote>
133
173
  <div><ul class="simple">
134
174
  <li><code class="docutils literal"><span class="pre">--drilldowns[label].keys</span> <span class="pre">column</span></code></li>
135
- <li><code class="docutils literal"><span class="pre">--drilldowns[label].sortby</span> <span class="pre">-_nsubrecs</span></code></li>
175
+ <li><code class="docutils literal"><span class="pre">--drilldowns[label].sort_keys</span> <span class="pre">-_nsubrecs</span></code></li>
136
176
  </ul>
137
177
  </div></blockquote>
138
178
  <p>以下の引数は2つのドリルダウンを指定しています。</p>
139
179
  <blockquote>
140
180
  <div><ul class="simple">
141
181
  <li><code class="docutils literal"><span class="pre">--drilldowns[label1].keys</span> <span class="pre">column1</span></code></li>
142
- <li><code class="docutils literal"><span class="pre">--drilldowns[label1].sortby</span> <span class="pre">-_nsubrecs</span></code></li>
182
+ <li><code class="docutils literal"><span class="pre">--drilldowns[label1].sort_keys</span> <span class="pre">-_nsubrecs</span></code></li>
143
183
  <li><code class="docutils literal"><span class="pre">--drilldowns[label2].keys</span> <span class="pre">column2</span></code></li>
144
- <li><code class="docutils literal"><span class="pre">--drilldowns[label2].sortby</span> <span class="pre">_key</span></code></li>
184
+ <li><code class="docutils literal"><span class="pre">--drilldowns[label2].sort_keys</span> <span class="pre">_key</span></code></li>
145
185
  </ul>
146
186
  </div></blockquote>
147
187
  </div>
@@ -638,6 +678,236 @@ load --table Entries
638
678
  <p>多くのECサイトではこのUIを使っています。Amazonのサイドメニューを見てください。</p>
639
679
  <p>Groongaはグループ化したレコードの数を数えるだけでなく、グループ化したレコードのカラムの値の中から最大値・最小値を見つけたり、合計値を計算したりすることができます。詳細は <a class="reference internal" href="#select-drilldown-related-parameters"><span class="std std-ref">ドリルダウン関連の引数</span></a> を参照してください。</p>
640
680
  </div>
681
+ <div class="section" id="dynamic-column">
682
+ <h3>7.3.54.3.6. 動的カラム<a class="headerlink" href="#dynamic-column" title="このヘッドラインへのパーマリンク">¶</a></h3>
683
+ <p>1回の <code class="docutils literal"><span class="pre">select</span></code> 実行中に0個以上のカラムを動的に作ることができます。この機能を使うと計算した値に対してドリルダウンしたりウィンドウ関数と使ったりできます。</p>
684
+ <p>以下は計算した値に対してドリルダウンするために動的カラムを使う例です。この例では <code class="docutils literal"><span class="pre">n_likes_class</span></code> という名前のカラムを新しく作っています。 <code class="docutils literal"><span class="pre">n_likes_class</span></code> カラムには <code class="docutils literal"><span class="pre">Entry.n_likes</span></code> の値を分類した値を入れます。この例では <code class="docutils literal"><span class="pre">Entry.n_likes</span></code> カラムの値を <code class="docutils literal"><span class="pre">10</span></code> 刻みで分類し、一番小さい数値をその分類の代表値とします。もし、 <code class="docutils literal"><span class="pre">Entry.n_likes</span></code> の値が <code class="docutils literal"><span class="pre">3</span></code> や <code class="docutils literal"><span class="pre">5</span></code> のように <code class="docutils literal"><span class="pre">0</span></code> から <code class="docutils literal"><span class="pre">9</span></code> の間の値なら、 <code class="docutils literal"><span class="pre">n_likes_class</span></code> の値(分類した値)は <code class="docutils literal"><span class="pre">0</span></code> になります。もし、 <code class="docutils literal"><span class="pre">Entry.n_likes</span></code> の値が <code class="docutils literal"><span class="pre">10</span></code> や <code class="docutils literal"><span class="pre">15</span></code> のように <code class="docutils literal"><span class="pre">10</span></code> から <code class="docutils literal"><span class="pre">19</span></code> の間の値なら、 <code class="docutils literal"><span class="pre">n_likes_class</span></code> の値(分類した値)は <code class="docutils literal"><span class="pre">10</span></code> になります。</p>
685
+ <p>このような分類をするために <a class="reference internal" href="../functions/number_classify.html"><span class="doc">number_classify</span></a> 関数を使えます。 <a class="reference internal" href="../functions/number_classify.html"><span class="doc">number_classify</span></a> 関数を使うためには <a class="reference internal" href="plugin_register.html"><span class="doc">plugin_register</span></a> コマンドで <code class="docutils literal"><span class="pre">functions/number</span></code> プラグインを登録する必要があります。</p>
686
+ <p>この例では <code class="docutils literal"><span class="pre">n_likes_class</span></code> の値でドリルダウンしています。このドリルダウン結果があるとデータの傾向がわかりやすくなるでしょう。</p>
687
+ <p>実行例:</p>
688
+ <div class="highlight-none"><div class="highlight"><pre><span></span>plugin_register functions/number
689
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
690
+ select \
691
+ --table Entries \
692
+ --columns[n_likes_class].stage initial \
693
+ --columns[n_likes_class].type UInt32 \
694
+ --columns[n_likes_class].value &#39;number_classify(n_likes, 10)&#39; \
695
+ --drilldown n_likes_class \
696
+ --drilldown_sort_keys _nsubrecs \
697
+ --output_columns n_likes,n_likes_class
698
+ # [
699
+ # [
700
+ # 0,
701
+ # 1337566253.89858,
702
+ # 0.000355720520019531
703
+ # ],
704
+ # [
705
+ # [
706
+ # [
707
+ # 5
708
+ # ],
709
+ # [
710
+ # [
711
+ # &quot;n_likes&quot;,
712
+ # &quot;UInt32&quot;
713
+ # ],
714
+ # [
715
+ # &quot;n_likes_class&quot;,
716
+ # &quot;UInt32&quot;
717
+ # ]
718
+ # ],
719
+ # [
720
+ # 5,
721
+ # 0
722
+ # ],
723
+ # [
724
+ # 10,
725
+ # 10
726
+ # ],
727
+ # [
728
+ # 15,
729
+ # 10
730
+ # ],
731
+ # [
732
+ # 3,
733
+ # 0
734
+ # ],
735
+ # [
736
+ # 3,
737
+ # 0
738
+ # ]
739
+ # ],
740
+ # [
741
+ # [
742
+ # 2
743
+ # ],
744
+ # [
745
+ # [
746
+ # &quot;_key&quot;,
747
+ # &quot;UInt32&quot;
748
+ # ],
749
+ # [
750
+ # &quot;_nsubrecs&quot;,
751
+ # &quot;Int32&quot;
752
+ # ]
753
+ # ],
754
+ # [
755
+ # 10,
756
+ # 2
757
+ # ],
758
+ # [
759
+ # 0,
760
+ # 3
761
+ # ]
762
+ # ]
763
+ # ]
764
+ # ]
765
+ </pre></div>
766
+ </div>
767
+ <p>詳細は <a class="reference internal" href="#select-dynamic-column-related-parameters"><span class="std std-ref">動的カラム関連の引数</span></a> を見てください。</p>
768
+ </div>
769
+ <div class="section" id="window-function">
770
+ <h3>7.3.54.3.7. ウィンドウ関数<a class="headerlink" href="#window-function" title="このヘッドラインへのパーマリンク">¶</a></h3>
771
+ <p>グループ化したレコードの値を使って各レコードの値を計算することができます。たとえば、グループ毎に合計を計算して、合計値をすべてのレコードに格納できます。ドリルダウンもグループ毎に合計を計算できますが、すべてのレコードに合計を格納するのではなく、各グループ合計を格納する点が違います。</p>
772
+ <p>以下はウィンドウ関数を使った結果の例です。すべてのレコードが合計値を持っています。</p>
773
+ <table border="1" class="docutils">
774
+ <colgroup>
775
+ <col width="33%" />
776
+ <col width="33%" />
777
+ <col width="33%" />
778
+ </colgroup>
779
+ <thead valign="bottom">
780
+ <tr class="row-odd"><th class="head"><p class="first last">グループ番号</p>
781
+ </th>
782
+ <th class="head"><p class="first last">合計対象の値</p>
783
+ </th>
784
+ <th class="head"><p class="first last">合計結果</p>
785
+ </th>
786
+ </tr>
787
+ </thead>
788
+ <tbody valign="top">
789
+ <tr class="row-even"><td>1</td>
790
+ <td>5</td>
791
+ <td>5</td>
792
+ </tr>
793
+ <tr class="row-odd"><td>2</td>
794
+ <td>10</td>
795
+ <td>25</td>
796
+ </tr>
797
+ <tr class="row-even"><td>2</td>
798
+ <td>15</td>
799
+ <td>25</td>
800
+ </tr>
801
+ <tr class="row-odd"><td>3</td>
802
+ <td>3</td>
803
+ <td>8</td>
804
+ </tr>
805
+ <tr class="row-even"><td>3</td>
806
+ <td>5</td>
807
+ <td>8</td>
808
+ </tr>
809
+ </tbody>
810
+ </table>
811
+ <p>以下はドリルダウンを使った結果の例です。各グループが合計値を持っています。</p>
812
+ <table border="1" class="docutils">
813
+ <colgroup>
814
+ <col width="33%" />
815
+ <col width="33%" />
816
+ <col width="33%" />
817
+ </colgroup>
818
+ <thead valign="bottom">
819
+ <tr class="row-odd"><th class="head"><p class="first last">グループ番号</p>
820
+ </th>
821
+ <th class="head"><p class="first last">合計対象の値</p>
822
+ </th>
823
+ <th class="head"><p class="first last">合計結果</p>
824
+ </th>
825
+ </tr>
826
+ </thead>
827
+ <tbody valign="top">
828
+ <tr class="row-even"><td>1</td>
829
+ <td>5</td>
830
+ <td>5</td>
831
+ </tr>
832
+ <tr class="row-odd"><td>2</td>
833
+ <td>10, 15</td>
834
+ <td>25</td>
835
+ </tr>
836
+ <tr class="row-even"><td>3</td>
837
+ <td>3, 5</td>
838
+ <td>8</td>
839
+ </tr>
840
+ </tbody>
841
+ </table>
842
+ <p>ウィンドウ関数はデータ解析に有用です。</p>
843
+ <p>以下は <code class="docutils literal"><span class="pre">Entries.tag</span></code> 毎に <code class="docutils literal"><span class="pre">Entries.n_likes</span></code> の合計を計算する例です。</p>
844
+ <p>実行例:</p>
845
+ <div class="highlight-none"><div class="highlight"><pre><span></span>plugin_register functions/number
846
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
847
+ select \
848
+ --table Entries \
849
+ --columns[n_likes_sum_per_tag].stage initial \
850
+ --columns[n_likes_sum_per_tag].type UInt32 \
851
+ --columns[n_likes_sum_per_tag].value &#39;window_sum(n_likes)&#39; \
852
+ --columns[n_likes_sum_per_tag].window.group_keys tag \
853
+ --output_columns tag,n_likes,n_likes_sum_per_tag
854
+ # [
855
+ # [
856
+ # 0,
857
+ # 1337566253.89858,
858
+ # 0.000355720520019531
859
+ # ],
860
+ # [
861
+ # [
862
+ # [
863
+ # 5
864
+ # ],
865
+ # [
866
+ # [
867
+ # &quot;tag&quot;,
868
+ # &quot;ShortText&quot;
869
+ # ],
870
+ # [
871
+ # &quot;n_likes&quot;,
872
+ # &quot;UInt32&quot;
873
+ # ],
874
+ # [
875
+ # &quot;n_likes_sum_per_tag&quot;,
876
+ # &quot;UInt32&quot;
877
+ # ]
878
+ # ],
879
+ # [
880
+ # &quot;Hello&quot;,
881
+ # 5,
882
+ # 5
883
+ # ],
884
+ # [
885
+ # &quot;Groonga&quot;,
886
+ # 10,
887
+ # 25
888
+ # ],
889
+ # [
890
+ # &quot;Groonga&quot;,
891
+ # 15,
892
+ # 25
893
+ # ],
894
+ # [
895
+ # &quot;Senna&quot;,
896
+ # 3,
897
+ # 6
898
+ # ],
899
+ # [
900
+ # &quot;Senna&quot;,
901
+ # 3,
902
+ # 6
903
+ # ]
904
+ # ]
905
+ # ]
906
+ # ]
907
+ </pre></div>
908
+ </div>
909
+ <p>詳細は <a class="reference internal" href="#select-window-function-related-parameters"><span class="std std-ref">ウィンドウ関数関連の引数</span></a> を見てください。</p>
910
+ </div>
641
911
  </div>
642
912
  <div class="section" id="parameters">
643
913
  <h2>7.3.54.4. 引数<a class="headerlink" href="#parameters" title="このヘッドラインへのパーマリンク">¶</a></h2>
@@ -656,12 +926,12 @@ load --table Entries
656
926
  # -22,
657
927
  # 1337566253.89858,
658
928
  # 0.000355720520019531,
659
- # &quot;invalid table name: &lt;Nonexistent&gt;&quot;,
929
+ # &quot;[select][table] invalid name: &lt;Nonexistent&gt;&quot;,
660
930
  # [
661
931
  # [
662
932
  # &quot;grn_select&quot;,
663
- # &quot;proc.c&quot;,
664
- # 1217
933
+ # &quot;proc_select.c&quot;,
934
+ # 3006
665
935
  # ]
666
936
  # ]
667
937
  # ]
@@ -1877,7 +2147,7 @@ select Entries --match_columns content --query &quot;popular&quot; --query_expan
1877
2147
  </div>
1878
2148
  <div class="section" id="sort-keys">
1879
2149
  <span id="select-sort-keys"></span><h4>7.3.54.4.4.3. <code class="docutils literal"><span class="pre">sort_keys</span></code><a class="headerlink" href="#sort-keys" title="このヘッドラインへのパーマリンク">¶</a></h4>
1880
- <p>ソートキーを <code class="docutils literal"><span class="pre">,</span></code> 区切りで指定します。それぞれのソートキーはカラム名を指定します。</p>
2150
+ <p>ソートキーを <code class="docutils literal"><span class="pre">,</span></code> 区切りで指定します。それぞれのソートキーにはカラム名を指定します。</p>
1881
2151
  <p>以下は簡単な <code class="docutils literal"><span class="pre">sort_keys</span></code> の使用例です。</p>
1882
2152
  <p>実行例:</p>
1883
2153
  <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --sort_keys &#39;n_likes, _id&#39;
@@ -2077,7 +2347,7 @@ select Entries --match_columns content --query &quot;popular&quot; --query_expan
2077
2347
  <span id="select-offset"></span><h4>7.3.54.4.4.4. <code class="docutils literal"><span class="pre">offset</span></code><a class="headerlink" href="#offset" title="このヘッドラインへのパーマリンク">¶</a></h4>
2078
2348
  <p>出力するレコードの範囲を決めるためのオフセットを指定します。オフセットは0始まりです。 <code class="docutils literal"><span class="pre">--offset</span> <span class="pre">1</span></code> は2番目以降のレコードを出力するという意味になります。</p>
2079
2349
  <p>実行例:</p>
2080
- <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --sortby _id --offset 3 --output_columns _key
2350
+ <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --sort_keys _id --offset 3 --output_columns _key
2081
2351
  # [
2082
2352
  # [
2083
2353
  # 0,
@@ -2109,7 +2379,7 @@ select Entries --match_columns content --query &quot;popular&quot; --query_expan
2109
2379
  <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドは4番目以降のレコードを出力します。</p>
2110
2380
  <p>負の値を指定することもできます。負の値の場合は <code class="docutils literal"><span class="pre">マッチしたレコード数</span> <span class="pre">+</span> <span class="pre">offset</span></code> 番目のレコードから始まる範囲という意味になります。もし、マッチしたレコードが3つあり、 <code class="docutils literal"><span class="pre">--offset</span> <span class="pre">-2</span></code> を指定した場合は2番目( <code class="docutils literal"><span class="pre">3</span> <span class="pre">+</span> <span class="pre">-2</span> <span class="pre">=</span> <span class="pre">1</span></code> 。 <code class="docutils literal"><span class="pre">1</span></code> は2番目という意味です。オフセットは0始まりということを思い出してください。) のレコードから3番目のレコードを取得します。</p>
2111
2381
  <p>実行例:</p>
2112
- <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --sortby _id --offset -2 --output_columns _key
2382
+ <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --sort_keys _id --offset -2 --output_columns _key
2113
2383
  # [
2114
2384
  # [
2115
2385
  # 0,
@@ -2146,7 +2416,7 @@ select Entries --match_columns content --query &quot;popular&quot; --query_expan
2146
2416
  <p><code class="docutils literal"><span class="pre">limit</span></code> は出力レコード数の最大値を指定します。 もし、マッチしたレコード数が <code class="docutils literal"><span class="pre">limit</span></code> よりも小さい場合はすべてのレコードが出力されます。</p>
2147
2417
  <p>以下は簡単な <code class="docutils literal"><span class="pre">limit</span></code> の使用例です。</p>
2148
2418
  <p>実行例:</p>
2149
- <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --sortby _id --offset 2 --limit 3 --output_columns _key
2419
+ <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --sort_keys _id --offset 2 --limit 3 --output_columns _key
2150
2420
  # [
2151
2421
  # [
2152
2422
  # 0,
@@ -2266,18 +2536,145 @@ select Entries --match_columns content --query &quot;popular&quot; --query_expan
2266
2536
  <p>scorerは、検索処理が完了し、ソート処理が実行される前に呼び出されます。従って、各レコードのスコアを操作する式を指定しておけば、検索結果のソート順序をカスタマイズできるようになります。</p>
2267
2537
  </div>
2268
2538
  </div>
2269
- <div class="section" id="drilldown-related-parameters">
2270
- <span id="select-drilldown-related-parameters"></span><h3>7.3.54.4.5. ドリルダウン関連の引数<a class="headerlink" href="#drilldown-related-parameters" title="このヘッドラインへのパーマリンク">¶</a></h3>
2271
- <p>このセクションでは基本的なドリルダウン関連の引数について説明します。高度なドリルダウン関連の引数は他のセクションで説明します。</p>
2272
- <div class="section" id="select-drilldown">
2273
- <span id="id2"></span><h4>7.3.54.4.5.1. <code class="docutils literal"><span class="pre">drilldown</span></code><a class="headerlink" href="#select-drilldown" title="このヘッドラインへのパーマリンク">¶</a></h4>
2274
- <p>グループ化するときに使うキーを <code class="docutils literal"><span class="pre">,</span></code> 区切りで指定します。</p>
2275
- <p>指定した検索条件にマッチしたレコードを指定したキーのそれぞれでグループ化します。検索条件を指定していない場合はすべてのレコードを指定したキーのそれぞれでグループ化します。</p>
2276
- <p>以下は簡単な <code class="docutils literal"><span class="pre">drilldown</span></code> の使用例です。</p>
2539
+ <div class="section" id="dynamic-column-related-parameters">
2540
+ <span id="select-dynamic-column-related-parameters"></span><h3>7.3.54.4.5. 動的カラム関連の引数<a class="headerlink" href="#dynamic-column-related-parameters" title="このヘッドラインへのパーマリンク">¶</a></h3>
2541
+ <div class="versionadded">
2542
+ <p><span class="versionmodified">バージョン 6.0.6 で追加.</span></p>
2543
+ </div>
2544
+ <p>このセクションは動的カラム関連の引数について説明します。ウィンドウ関数を使うために動的カラムを使うこともできますが、このセクションではウィンドウ関数については説明しません。ウィンドウ関数については <a class="reference internal" href="#select-window-function-related-parameters"><span class="std std-ref">ウィンドウ関数関連の引数</span></a> を参照してください。</p>
2545
+ <p><code class="docutils literal"><span class="pre">select</span></code> 実行中に0個以上のカラムを作ってそこに値を入れることができます。これらのカラムのことを「動的カラム」と呼びます。動的カラムが作られた後は通常のカラムと同じように使えます。</p>
2546
+ <p>動的カラムは一度計算した値を使いまわすのでパフォーマンス上のメリットがあります。</p>
2547
+ <p>動的カラムを使うとメモリー使用量が増えます。 <code class="docutils literal"><span class="pre">select</span></code> 実行中にカラムの値を保存し続ける必要があるからです。</p>
2548
+ <p>以下のケースでは動的カラムを使う必要があります。</p>
2549
+ <blockquote>
2550
+ <div><ul class="simple">
2551
+ <li><p class="first">SQLの <code class="docutils literal"><span class="pre">AS</span></code> のように値に名前をつけたい場合。</p>
2552
+ </li>
2553
+ <li><p class="first">計算した値をドリルダウンしたい場合。Groongaにはドリルダウン中に値を計算する機能はありません。</p>
2554
+ </li>
2555
+ <li><p class="first">ウィンドウ関数を使いたい場合。</p>
2556
+ </li>
2557
+ </ul>
2558
+ </div></blockquote>
2559
+ <p>いくつか動的カラムを作るタイミングがあります。各動的カラムには <code class="docutils literal"><span class="pre">stage</span></code> を指定する必要があります。これはどのタイミングで動的カラムを作るかを制御するためです。よりよい性能を出すために適切なタイミングを選ぶことが重要です。</p>
2560
+ <p>たとえば、出力対象のレコードだけに必要な動的カラムを全レコードに対して作成することはオススメしません。通常、たとえテーブル内に大量のレコードがあったとしても、出力対象のレコードは少なくなります。これは、多くの場合は、テーブル内のレコードをフィルターしてソートしてレコード数を制限して、制限したレコードだけを出力するからです。</p>
2561
+ <p><code class="docutils literal"><span class="pre">stage</span></code> の詳細は <a class="reference internal" href="#select-columns-name-stage"><span class="std std-ref">columns[${NAME}].stage</span></a> を見てください。</p>
2562
+ <p>以下は動的カラムの引数です。ウィンドウ関数関連の引数は入っていません。ウィンドウ関数関連の引数については <a class="reference internal" href="#select-window-function-related-parameters"><span class="std std-ref">ウィンドウ関数関連の引数</span></a> を見てください。</p>
2563
+ <table border="1" class="docutils">
2564
+ <colgroup>
2565
+ <col width="33%" />
2566
+ <col width="33%" />
2567
+ <col width="33%" />
2568
+ </colgroup>
2569
+ <thead valign="bottom">
2570
+ <tr class="row-odd"><th class="head"><p class="first last">名前</p>
2571
+ </th>
2572
+ <th class="head"><p class="first last">デフォルト値</p>
2573
+ </th>
2574
+ <th class="head"><p class="first last">必須か省略可能か</p>
2575
+ </th>
2576
+ </tr>
2577
+ </thead>
2578
+ <tbody valign="top">
2579
+ <tr class="row-even"><td><code class="docutils literal"><span class="pre">columns[${NAME}].stage</span></code></td>
2580
+ <td><code class="docutils literal"><span class="pre">null</span></code></td>
2581
+ <td><p class="first last">必須</p>
2582
+ </td>
2583
+ </tr>
2584
+ <tr class="row-odd"><td><code class="docutils literal"><span class="pre">columns[${NAME}].flags</span></code></td>
2585
+ <td><code class="docutils literal"><span class="pre">COLUMN_SCALAR</span></code></td>
2586
+ <td><p class="first last">省略可能</p>
2587
+ </td>
2588
+ </tr>
2589
+ <tr class="row-even"><td><code class="docutils literal"><span class="pre">columns[${NAME}].type</span></code></td>
2590
+ <td><code class="docutils literal"><span class="pre">null</span></code></td>
2591
+ <td><p class="first last">必須</p>
2592
+ </td>
2593
+ </tr>
2594
+ <tr class="row-odd"><td><code class="docutils literal"><span class="pre">columns[${NAME}].value</span></code></td>
2595
+ <td><code class="docutils literal"><span class="pre">null</span></code></td>
2596
+ <td><p class="first last">必須</p>
2597
+ </td>
2598
+ </tr>
2599
+ </tbody>
2600
+ </table>
2601
+ <p>1つの動的カラムに対して複数のパラメーターを指定する必要があります。同じ <code class="docutils literal"><span class="pre">${NAME}</span></code> を使っているパラメーターは同じ動的カラムのパラメーターとして扱われます。以下は2つの動的カラム( <code class="docutils literal"><span class="pre">name1</span></code> と <code class="docutils literal"><span class="pre">name2</span></code> )用のパラメーターを指定する例です。:</p>
2602
+ <div class="highlight-none"><div class="highlight"><pre><span></span>--columns[name1].stage initial
2603
+ --columns[name1].type UInt32
2604
+ --columns[name1].value 29
2605
+
2606
+ --columns[name2].stage filtered
2607
+ --columns[name2].type ShortText
2608
+ --columns[name2].value &quot;29&quot;
2609
+ </pre></div>
2610
+ </div>
2611
+ <div class="section" id="columns-name-stage">
2612
+ <span id="select-columns-name-stage"></span><h4>7.3.54.4.5.1. <code class="docutils literal"><span class="pre">columns[${NAME}].stage</span></code><a class="headerlink" href="#columns-name-stage" title="このヘッドラインへのパーマリンク">¶</a></h4>
2613
+ <div class="versionadded">
2614
+ <p><span class="versionmodified">バージョン 6.0.6 で追加.</span></p>
2615
+ </div>
2616
+ <p>どのタイミング(どのステージ)で動的カラムを作るかを指定します。動的カラムを作る場合はこのパラメーターは必須です。</p>
2617
+ <p>指定可能なステージは以下の通りです。</p>
2618
+ <table border="1" class="docutils">
2619
+ <colgroup>
2620
+ <col width="50%" />
2621
+ <col width="50%" />
2622
+ </colgroup>
2623
+ <thead valign="bottom">
2624
+ <tr class="row-odd"><th class="head"><p class="first last">名前</p>
2625
+ </th>
2626
+ <th class="head"><p class="first last">説明</p>
2627
+ </th>
2628
+ </tr>
2629
+ </thead>
2630
+ <tbody valign="top">
2631
+ <tr class="row-even"><td><code class="docutils literal"><span class="pre">initial</span></code></td>
2632
+ <td><p class="first last">最初に動的カラムを作成します。</p>
2633
+ </td>
2634
+ </tr>
2635
+ <tr class="row-odd"><td><code class="docutils literal"><span class="pre">filtered</span></code></td>
2636
+ <td><p class="first last"><a class="reference internal" href="#select-query"><span class="std std-ref">query</span></a> と <a class="reference internal" href="#select-filter"><span class="std std-ref">filter</span></a> を評価してから動的カラムを作成します。</p>
2637
+ </td>
2638
+ </tr>
2639
+ <tr class="row-even"><td><code class="docutils literal"><span class="pre">output</span></code></td>
2640
+ <td><p class="first last"><a class="reference internal" href="#select-output-columns"><span class="std std-ref">output_columns</span></a> を評価する前に動的カラムを作成します。</p>
2641
+ </td>
2642
+ </tr>
2643
+ </tbody>
2644
+ </table>
2645
+ <p>以下は動的カラム作成タイミング入りの <code class="docutils literal"><span class="pre">select</span></code> の処理の流れです。できるだけ後のステージを選ぶべきです。</p>
2646
+ <blockquote>
2647
+ <div><ol class="arabic simple">
2648
+ <li><p class="first"><code class="docutils literal"><span class="pre">initial</span></code> ステージの動的カラムを作ります。すべてのレコードはこの動的カラムを持ちます。</p>
2649
+ </li>
2650
+ <li><p class="first"><a class="reference internal" href="#select-query"><span class="std std-ref">query</span></a> と <a class="reference internal" href="#select-filter"><span class="std std-ref">filter</span></a> を評価します。 <code class="docutils literal"><span class="pre">initial</span></code> ステージで作った動的カラムを使えます。</p>
2651
+ </li>
2652
+ <li><p class="first"><code class="docutils literal"><span class="pre">filtered</span></code> ステージの動的カラムを作ります。フィルター後のレコードだけがこの動的カラムを持ちます。</p>
2653
+ </li>
2654
+ <li><p class="first"><a class="reference internal" href="#select-adjuster"><span class="std std-ref">adjuster</span></a> を評価します。 <code class="docutils literal"><span class="pre">initial</span></code> ステージと <code class="docutils literal"><span class="pre">filtered</span></code> ステージで作った動的カラムを使えます。</p>
2655
+ </li>
2656
+ <li><p class="first"><a class="reference internal" href="#select-scorer"><span class="std std-ref">scorer</span></a> を評価します。 <code class="docutils literal"><span class="pre">initial</span></code> ステージと <code class="docutils literal"><span class="pre">filtered</span></code> ステージで作った動的カラムを使えます。</p>
2657
+ </li>
2658
+ <li><p class="first"><a class="reference internal" href="#select-sort-keys"><span class="std std-ref">sort_keys</span></a> 、 <a class="reference internal" href="#select-offset"><span class="std std-ref">offset</span></a> 、 <a class="reference internal" href="#select-limit"><span class="std std-ref">limit</span></a> を評価します。 <code class="docutils literal"><span class="pre">initial</span></code> ステージと <code class="docutils literal"><span class="pre">filtered</span></code> ステージで作った動的カラムを使えます。</p>
2659
+ </li>
2660
+ <li><p class="first"><a class="reference internal" href="#select-slice-related-parameters"><span class="std std-ref">スライス関連の引数</span></a> を評価します。 <code class="docutils literal"><span class="pre">initial</span></code> ステージと <code class="docutils literal"><span class="pre">filtered</span></code> ステージで作った動的カラムを使えます。</p>
2661
+ </li>
2662
+ <li><p class="first"><a class="reference internal" href="#select-drilldown-related-parameters"><span class="std std-ref">ドリルダウン関連の引数</span></a> と <a class="reference internal" href="#select-advanced-drilldown-related-parameters"><span class="std std-ref">高度なドリルダウン関連のパラメーター</span></a> を評価します。 <code class="docutils literal"><span class="pre">initial</span></code> ステージと <code class="docutils literal"><span class="pre">filtered</span></code> ステージで作った動的カラムを使えます。各ドリルダウン内でも個別に動的カラムを作れるので混同しないように注意してください。</p>
2663
+ </li>
2664
+ <li><p class="first"><code class="docutils literal"><span class="pre">output</span></code> ステージの動的カラムを作ります。最大 <a class="reference internal" href="#select-limit"><span class="std std-ref">limit</span></a> 件のレコードだけがこの動的カラムを持ちます。</p>
2665
+ </li>
2666
+ <li><p class="first"><a class="reference internal" href="#select-output-columns"><span class="std std-ref">output_columns</span></a> を評価します。 <code class="docutils literal"><span class="pre">initial</span></code> ステージと <code class="docutils literal"><span class="pre">filtered</span></code> ステージと <code class="docutils literal"><span class="pre">output</span></code> ステージで作った動的カラムを使えます。</p>
2667
+ </li>
2668
+ </ol>
2669
+ </div></blockquote>
2670
+ <p>以下は <code class="docutils literal"><span class="pre">initial</span></code> ステージで <code class="docutils literal"><span class="pre">is_popular</span></code> カラムを作る例です。作成した <code class="docutils literal"><span class="pre">is_popular</span></code> カラムは <code class="docutils literal"><span class="pre">filter</span></code> や <code class="docutils literal"><span class="pre">output_columns</span></code> を含むすべてのパラメーターで使えます。</p>
2277
2671
  <p>実行例:</p>
2278
2672
  <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
2279
- --output_columns _key,tag \
2280
- --drilldown tag
2673
+ --columns[is_popular].stage initial \
2674
+ --columns[is_popular].type Bool \
2675
+ --columns[is_popular].value &#39;n_likes &gt;= 10&#39; \
2676
+ --filter is_popular \
2677
+ --output_columns _id,is_popular,n_likes
2281
2678
  # [
2282
2679
  # [
2283
2680
  # 0,
@@ -2287,20 +2684,667 @@ select Entries --match_columns content --query &quot;popular&quot; --query_expan
2287
2684
  # [
2288
2685
  # [
2289
2686
  # [
2290
- # 5
2687
+ # 2
2291
2688
  # ],
2292
2689
  # [
2293
2690
  # [
2294
- # &quot;_key&quot;,
2295
- # &quot;ShortText&quot;
2691
+ # &quot;_id&quot;,
2692
+ # &quot;UInt32&quot;
2296
2693
  # ],
2297
2694
  # [
2298
- # &quot;tag&quot;,
2299
- # &quot;ShortText&quot;
2695
+ # &quot;is_popular&quot;,
2696
+ # &quot;Bool&quot;
2697
+ # ],
2698
+ # [
2699
+ # &quot;n_likes&quot;,
2700
+ # &quot;UInt32&quot;
2300
2701
  # ]
2301
2702
  # ],
2302
2703
  # [
2303
- # &quot;The first post!&quot;,
2704
+ # 2,
2705
+ # true,
2706
+ # 10
2707
+ # ],
2708
+ # [
2709
+ # 3,
2710
+ # true,
2711
+ # 15
2712
+ # ]
2713
+ # ]
2714
+ # ]
2715
+ # ]
2716
+ </pre></div>
2717
+ </div>
2718
+ </div>
2719
+ <div class="section" id="columns-name-flags">
2720
+ <span id="select-columns-name-flags"></span><h4>7.3.54.4.5.2. <code class="docutils literal"><span class="pre">columns[${NAME}].flags</span></code><a class="headerlink" href="#columns-name-flags" title="このヘッドラインへのパーマリンク">¶</a></h4>
2721
+ <div class="versionadded">
2722
+ <p><span class="versionmodified">バージョン 6.0.6 で追加.</span></p>
2723
+ </div>
2724
+ <p>動的カラムのフラグを指定します。これは <a class="reference internal" href="column_create.html"><span class="doc">column_create</span></a> の <code class="docutils literal"><span class="pre">flags</span></code> パラメーターと同じです。利用可能なフラグは <a class="reference internal" href="column_create.html#column-create-flags"><span class="std std-ref">flags</span></a> を見てください。</p>
2725
+ <p>デフォルト値は <code class="docutils literal"><span class="pre">COLUMN_SCALAR</span></code> です。</p>
2726
+ <p>以下は <code class="docutils literal"><span class="pre">columns[${NAME}].flags</span></code> の使用例です。この例では <code class="docutils literal"><span class="pre">COLUMN_VECTOR</span></code> フラグを指定してベクターカラムを作成しています。 <code class="docutils literal"><span class="pre">plugin_register</span> <span class="pre">functions/vector</span></code> は <a class="reference internal" href="../functions/vector_new.html"><span class="doc">vector_new</span></a> 関数を使うために実行しています。:</p>
2727
+ <p>実行例:</p>
2728
+ <div class="highlight-none"><div class="highlight"><pre><span></span>plugin_register functions/vector
2729
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
2730
+ select Entries \
2731
+ --columns[vector].stage initial \
2732
+ --columns[vector].flags COLUMN_VECTOR \
2733
+ --columns[vector].type UInt32 \
2734
+ --columns[vector].value &#39;vector_new(1, 2, 3)&#39; \
2735
+ --output_columns _id,vector
2736
+ # [
2737
+ # [
2738
+ # 0,
2739
+ # 1337566253.89858,
2740
+ # 0.000355720520019531
2741
+ # ],
2742
+ # [
2743
+ # [
2744
+ # [
2745
+ # 5
2746
+ # ],
2747
+ # [
2748
+ # [
2749
+ # &quot;_id&quot;,
2750
+ # &quot;UInt32&quot;
2751
+ # ],
2752
+ # [
2753
+ # &quot;vector&quot;,
2754
+ # &quot;UInt32&quot;
2755
+ # ]
2756
+ # ],
2757
+ # [
2758
+ # 1,
2759
+ # [
2760
+ # 1,
2761
+ # 2,
2762
+ # 3
2763
+ # ]
2764
+ # ],
2765
+ # [
2766
+ # 2,
2767
+ # [
2768
+ # 1,
2769
+ # 2,
2770
+ # 3
2771
+ # ]
2772
+ # ],
2773
+ # [
2774
+ # 3,
2775
+ # [
2776
+ # 1,
2777
+ # 2,
2778
+ # 3
2779
+ # ]
2780
+ # ],
2781
+ # [
2782
+ # 4,
2783
+ # [
2784
+ # 1,
2785
+ # 2,
2786
+ # 3
2787
+ # ]
2788
+ # ],
2789
+ # [
2790
+ # 5,
2791
+ # [
2792
+ # 1,
2793
+ # 2,
2794
+ # 3
2795
+ # ]
2796
+ # ]
2797
+ # ]
2798
+ # ]
2799
+ # ]
2800
+ </pre></div>
2801
+ </div>
2802
+ </div>
2803
+ <div class="section" id="columns-name-type">
2804
+ <span id="select-columns-name-type"></span><h4>7.3.54.4.5.3. <code class="docutils literal"><span class="pre">columns[${NAME}].type</span></code><a class="headerlink" href="#columns-name-type" title="このヘッドラインへのパーマリンク">¶</a></h4>
2805
+ <div class="versionadded">
2806
+ <p><span class="versionmodified">バージョン 6.0.6 で追加.</span></p>
2807
+ </div>
2808
+ <p>動的カラムの値の型を指定します。 <a class="reference internal" href="column_create.html"><span class="doc">column_create</span></a> の <code class="docutils literal"><span class="pre">type</span></code> パラメーターと同じです。利用可能な型は <a class="reference internal" href="column_create.html#column-create-type"><span class="std std-ref">type</span></a> を見てください。</p>
2809
+ <p>必須の引数です。</p>
2810
+ <p>以下は <code class="docutils literal"><span class="pre">ShortText</span></code> 型のカラムを作る例です。保存された値は自動的に <code class="docutils literal"><span class="pre">ShortText</span></code> にキャストされます。この例では数値が <code class="docutils literal"><span class="pre">ShortText</span></code> にキャストされています。</p>
2811
+ <p>実行例:</p>
2812
+ <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
2813
+ --columns[n_likes_string].stage initial \
2814
+ --columns[n_likes_string].type ShortText \
2815
+ --columns[n_likes_string].value n_likes \
2816
+ --output_columns _id,n_likes,n_likes_string
2817
+ # [
2818
+ # [
2819
+ # 0,
2820
+ # 1337566253.89858,
2821
+ # 0.000355720520019531
2822
+ # ],
2823
+ # [
2824
+ # [
2825
+ # [
2826
+ # 5
2827
+ # ],
2828
+ # [
2829
+ # [
2830
+ # &quot;_id&quot;,
2831
+ # &quot;UInt32&quot;
2832
+ # ],
2833
+ # [
2834
+ # &quot;n_likes&quot;,
2835
+ # &quot;UInt32&quot;
2836
+ # ],
2837
+ # [
2838
+ # &quot;n_likes_string&quot;,
2839
+ # &quot;ShortText&quot;
2840
+ # ]
2841
+ # ],
2842
+ # [
2843
+ # 1,
2844
+ # 5,
2845
+ # &quot;5&quot;
2846
+ # ],
2847
+ # [
2848
+ # 2,
2849
+ # 10,
2850
+ # &quot;10&quot;
2851
+ # ],
2852
+ # [
2853
+ # 3,
2854
+ # 15,
2855
+ # &quot;15&quot;
2856
+ # ],
2857
+ # [
2858
+ # 4,
2859
+ # 3,
2860
+ # &quot;3&quot;
2861
+ # ],
2862
+ # [
2863
+ # 5,
2864
+ # 3,
2865
+ # &quot;3&quot;
2866
+ # ]
2867
+ # ]
2868
+ # ]
2869
+ # ]
2870
+ </pre></div>
2871
+ </div>
2872
+ </div>
2873
+ <div class="section" id="columns-name-value">
2874
+ <span id="select-columns-name-value"></span><h4>7.3.54.4.5.4. <code class="docutils literal"><span class="pre">columns[${NAME}].value</span></code><a class="headerlink" href="#columns-name-value" title="このヘッドラインへのパーマリンク">¶</a></h4>
2875
+ <div class="versionadded">
2876
+ <p><span class="versionmodified">バージョン 6.0.6 で追加.</span></p>
2877
+ </div>
2878
+ <p>この動的カラムの値を生成する式を指定します。式には <a class="reference internal" href="../grn_expr/script_syntax.html"><span class="doc">スクリプト構文</span></a> を使います。この構文は <a class="reference internal" href="#select-filter"><span class="std std-ref">filter</span></a> と同じです。たとえば、 <code class="docutils literal"><span class="pre">1</span> <span class="pre">+</span> <span class="pre">1</span></code> 、 <code class="docutils literal"><span class="pre">string_length(&quot;Hello&quot;)</span></code> 、 <code class="docutils literal"><span class="pre">column</span> <span class="pre">*</span> <span class="pre">1.08</span></code> などは妥当な式です。</p>
2879
+ <p>ウィンドウ関数を使う場合は、 <code class="docutils literal"><span class="pre">value</span></code> の値に <a class="reference internal" href="../window_function.html"><span class="doc">ウィンドウ関数</span></a> を指定し、他のウィンドウ関数のパラメーターも指定する必要があります。詳細は <a class="reference internal" href="#select-window-function-related-parameters"><span class="std std-ref">ウィンドウ関数関連の引数</span></a> を見てください。</p>
2880
+ <p>必須の引数です。</p>
2881
+ <p>以下は内容の文字数を格納するための動的カラムを1つ作る例です。この例では文字数を数えるために <code class="docutils literal"><span class="pre">functions/string</span></code> プラグイン内の <a class="reference internal" href="../functions/string_length.html"><span class="doc">string_length</span></a> 関数を使っています。 <code class="docutils literal"><span class="pre">functions/string</span></code> プラグインを登録するために <a class="reference internal" href="plugin_register.html"><span class="doc">plugin_register</span></a> を使っています。</p>
2882
+ <p>実行例:</p>
2883
+ <div class="highlight-none"><div class="highlight"><pre><span></span>plugin_register functions/string
2884
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
2885
+ select Entries \
2886
+ --columns[content_length].stage initial \
2887
+ --columns[content_length].type UInt32 \
2888
+ --columns[content_length].value &#39;string_length(content)&#39; \
2889
+ --output_columns _id,content,content_length
2890
+ # [
2891
+ # [
2892
+ # 0,
2893
+ # 1337566253.89858,
2894
+ # 0.000355720520019531
2895
+ # ],
2896
+ # [
2897
+ # [
2898
+ # [
2899
+ # 5
2900
+ # ],
2901
+ # [
2902
+ # [
2903
+ # &quot;_id&quot;,
2904
+ # &quot;UInt32&quot;
2905
+ # ],
2906
+ # [
2907
+ # &quot;content&quot;,
2908
+ # &quot;Text&quot;
2909
+ # ],
2910
+ # [
2911
+ # &quot;content_length&quot;,
2912
+ # &quot;UInt32&quot;
2913
+ # ]
2914
+ # ],
2915
+ # [
2916
+ # 1,
2917
+ # &quot;Welcome! This is my first post!&quot;,
2918
+ # 31
2919
+ # ],
2920
+ # [
2921
+ # 2,
2922
+ # &quot;I started to use Groonga. It&#39;s very fast!&quot;,
2923
+ # 41
2924
+ # ],
2925
+ # [
2926
+ # 3,
2927
+ # &quot;I also started to use Mroonga. It&#39;s also very fast! Really fast!&quot;,
2928
+ # 64
2929
+ # ],
2930
+ # [
2931
+ # 4,
2932
+ # &quot;I migrated all Senna system!&quot;,
2933
+ # 28
2934
+ # ],
2935
+ # [
2936
+ # 5,
2937
+ # &quot;I also migrated all Tritonn system!&quot;,
2938
+ # 35
2939
+ # ]
2940
+ # ]
2941
+ # ]
2942
+ # ]
2943
+ </pre></div>
2944
+ </div>
2945
+ </div>
2946
+ </div>
2947
+ <div class="section" id="window-function-related-parameters">
2948
+ <span id="select-window-function-related-parameters"></span><h3>7.3.54.4.6. ウィンドウ関数関連の引数<a class="headerlink" href="#window-function-related-parameters" title="このヘッドラインへのパーマリンク">¶</a></h3>
2949
+ <div class="versionadded">
2950
+ <p><span class="versionmodified">バージョン 6.0.6 で追加.</span></p>
2951
+ </div>
2952
+ <p>このセクションはウィンドウ関数関連の引数について説明します。ウィンドウ関数を使うためには動的カラムを使う必要があります。動的カラムについては <a class="reference internal" href="#select-dynamic-column-related-parameters"><span class="std std-ref">動的カラム関連の引数</span></a> を見てください。</p>
2953
+ <p>Groongaのウィンドウ関数はSQLのウィンドウ関数と似ています。通常の関数は現在のレコードだけを使って結果を計算します。一方、ウィンドウ関数は複数のレコードを使って結果を計算します。複数のレコードを処理できるのでウィンドウ関数はデータ解析に有用です。</p>
2954
+ <p>サポートしているウィンドウ関数は <a class="reference internal" href="../window_function.html"><span class="doc">ウィンドウ関数</span></a> で確認できます。たとえば、 <a class="reference internal" href="../window_functions/window_sum.html"><span class="doc">window_sum</span></a> はウィンドウ関数です。このウィンドウ関数は対象レコードの数値の合計を計算します。</p>
2955
+ <p>ウィンドウ関数は指定したグループキーでグループ化したレコードを処理します。たとえば、以下のケースではウィンドウ関数は3つのグループ( <code class="docutils literal"><span class="pre">Hello</span></code> グループ、 <code class="docutils literal"><span class="pre">Groonga</span></code> グループ、 <code class="docutils literal"><span class="pre">Senna</span></code> グループ)を処理します。 <a class="reference internal" href="../window_functions/window_sum.html"><span class="doc">window_sum</span></a> は各グループ毎に <code class="docutils literal"><span class="pre">n_likes</span></code> の値の合計を計算します。</p>
2956
+ <table border="1" class="docutils">
2957
+ <colgroup>
2958
+ <col width="25%" />
2959
+ <col width="25%" />
2960
+ <col width="25%" />
2961
+ <col width="25%" />
2962
+ </colgroup>
2963
+ <thead valign="bottom">
2964
+ <tr class="row-odd"><th class="head"><p class="first last">グループ番号</p>
2965
+ </th>
2966
+ <th class="head"><p class="first last">グループキーの値</p>
2967
+ </th>
2968
+ <th class="head"><p class="first last"><code class="docutils literal"><span class="pre">n_likes</span></code> の値</p>
2969
+ </th>
2970
+ <th class="head"><p class="first last"><a class="reference internal" href="../window_functions/window_sum.html"><span class="doc">window_sum</span></a> の結果</p>
2971
+ </th>
2972
+ </tr>
2973
+ </thead>
2974
+ <tbody valign="top">
2975
+ <tr class="row-even"><td>1</td>
2976
+ <td><code class="docutils literal"><span class="pre">Hello</span></code></td>
2977
+ <td>5</td>
2978
+ <td>5</td>
2979
+ </tr>
2980
+ <tr class="row-odd"><td>2</td>
2981
+ <td><code class="docutils literal"><span class="pre">Groonga</span></code></td>
2982
+ <td>10</td>
2983
+ <td>25</td>
2984
+ </tr>
2985
+ <tr class="row-even"><td>2</td>
2986
+ <td><code class="docutils literal"><span class="pre">Groonga</span></code></td>
2987
+ <td>15</td>
2988
+ <td>25</td>
2989
+ </tr>
2990
+ <tr class="row-odd"><td>3</td>
2991
+ <td><code class="docutils literal"><span class="pre">Senna</span></code></td>
2992
+ <td>3</td>
2993
+ <td>6</td>
2994
+ </tr>
2995
+ <tr class="row-even"><td>3</td>
2996
+ <td><code class="docutils literal"><span class="pre">Senna</span></code></td>
2997
+ <td>3</td>
2998
+ <td>6</td>
2999
+ </tr>
3000
+ </tbody>
3001
+ </table>
3002
+ <p>グループキーを指定しないこともできます。この場合、ウィンドウ関数はすべてのレコードを含んだ1つのグループだけを処理します。以下のケースでは <a class="reference internal" href="../window_functions/window_sum.html"><span class="doc">window_sum</span></a> はすべての <code class="docutils literal"><span class="pre">n_likes</span></code> の値の合計を計算します。</p>
3003
+ <table border="1" class="docutils">
3004
+ <colgroup>
3005
+ <col width="33%" />
3006
+ <col width="33%" />
3007
+ <col width="33%" />
3008
+ </colgroup>
3009
+ <thead valign="bottom">
3010
+ <tr class="row-odd"><th class="head"><p class="first last">グループ番号</p>
3011
+ </th>
3012
+ <th class="head"><p class="first last"><code class="docutils literal"><span class="pre">n_likes</span></code> の値</p>
3013
+ </th>
3014
+ <th class="head"><p class="first last"><a class="reference internal" href="../window_functions/window_sum.html"><span class="doc">window_sum</span></a> の結果</p>
3015
+ </th>
3016
+ </tr>
3017
+ </thead>
3018
+ <tbody valign="top">
3019
+ <tr class="row-even"><td>1</td>
3020
+ <td>5</td>
3021
+ <td>36</td>
3022
+ </tr>
3023
+ <tr class="row-odd"><td>1</td>
3024
+ <td>10</td>
3025
+ <td>36</td>
3026
+ </tr>
3027
+ <tr class="row-even"><td>1</td>
3028
+ <td>15</td>
3029
+ <td>36</td>
3030
+ </tr>
3031
+ <tr class="row-odd"><td>1</td>
3032
+ <td>3</td>
3033
+ <td>36</td>
3034
+ </tr>
3035
+ <tr class="row-even"><td>1</td>
3036
+ <td>3</td>
3037
+ <td>36</td>
3038
+ </tr>
3039
+ </tbody>
3040
+ </table>
3041
+ <p>ウィンドウ関数は各グループのレコードを指定された順に処理します。前述のグループキーの例のようにソートキーを指定しないこともできます。</p>
3042
+ <p>ソートキーを指定しなかったときの挙動は各ウィンドウ関数の仕様に依存します。たとえば、 <a class="reference internal" href="../window_functions/window_sum.html"><span class="doc">window_sum</span></a> はソートキーを指定したときと指定しないときで挙動が変わります。ソートキーを指定しなかったときは、 <a class="reference internal" href="../window_functions/window_sum.html"><span class="doc">window_sum</span></a> はグループの全レコードの値の合計を計算し、すべての対象レコードに合計値を格納します。これは前述のグループキーの例での挙動です。ソートキーを指定したときは、 <a class="reference internal" href="../window_functions/window_sum.html"><span class="doc">window_sum</span></a> は累積和を計算します。 <a class="reference internal" href="../window_functions/window_sum.html"><span class="doc">window_sum</span></a> はグループの全レコードの合計を順番に計算し、各レコードにはそのレコードを処理した時点の合計値を格納します。以下に例を示します。</p>
3043
+ <table border="1" class="docutils">
3044
+ <colgroup>
3045
+ <col width="17%" />
3046
+ <col width="17%" />
3047
+ <col width="17%" />
3048
+ <col width="17%" />
3049
+ <col width="17%" />
3050
+ <col width="17%" />
3051
+ </colgroup>
3052
+ <thead valign="bottom">
3053
+ <tr class="row-odd"><th class="head"><p class="first last">グループ番号</p>
3054
+ </th>
3055
+ <th class="head"><p class="first last">グループキーの値</p>
3056
+ </th>
3057
+ <th class="head"><p class="first last">ソートキーの値</p>
3058
+ </th>
3059
+ <th class="head"><p class="first last"><code class="docutils literal"><span class="pre">n_likes</span></code> の値</p>
3060
+ </th>
3061
+ <th class="head"><p class="first last"><a class="reference internal" href="../window_functions/window_sum.html"><span class="doc">window_sum</span></a> の結果</p>
3062
+ </th>
3063
+ <th class="head"><p class="first last">備考</p>
3064
+ </th>
3065
+ </tr>
3066
+ </thead>
3067
+ <tbody valign="top">
3068
+ <tr class="row-even"><td>1</td>
3069
+ <td><code class="docutils literal"><span class="pre">Hello</span></code></td>
3070
+ <td>1</td>
3071
+ <td>5</td>
3072
+ <td>5</td>
3073
+ <td><p class="first last">グループ番号1の最初のレコード。( <code class="docutils literal"><span class="pre">5</span> <span class="pre">=</span> <span class="pre">5</span></code> )</p>
3074
+ </td>
3075
+ </tr>
3076
+ <tr class="row-odd"><td>2</td>
3077
+ <td><code class="docutils literal"><span class="pre">Groonga</span></code></td>
3078
+ <td>90</td>
3079
+ <td>10</td>
3080
+ <td>10</td>
3081
+ <td><p class="first last">グループ番号2の最初のレコード。( <code class="docutils literal"><span class="pre">10</span> <span class="pre">=</span> <span class="pre">10</span></code> )</p>
3082
+ </td>
3083
+ </tr>
3084
+ <tr class="row-even"><td>2</td>
3085
+ <td><code class="docutils literal"><span class="pre">Groonga</span></code></td>
3086
+ <td>91</td>
3087
+ <td>15</td>
3088
+ <td>25</td>
3089
+ <td><p class="first last">グループ番号2の2つ目のレコード。( <code class="docutils literal"><span class="pre">10</span> <span class="pre">+</span> <span class="pre">15</span> <span class="pre">=</span> <span class="pre">25</span></code> )</p>
3090
+ </td>
3091
+ </tr>
3092
+ <tr class="row-odd"><td>3</td>
3093
+ <td><code class="docutils literal"><span class="pre">Senna</span></code></td>
3094
+ <td>200</td>
3095
+ <td>3</td>
3096
+ <td>8</td>
3097
+ <td><p class="first last">グループ番号3の2つ目のレコード。( <code class="docutils literal"><span class="pre">5</span> <span class="pre">+</span> <span class="pre">3</span> <span class="pre">=</span> <span class="pre">8</span></code> )</p>
3098
+ </td>
3099
+ </tr>
3100
+ <tr class="row-even"><td>3</td>
3101
+ <td><code class="docutils literal"><span class="pre">Senna</span></code></td>
3102
+ <td>100</td>
3103
+ <td>5</td>
3104
+ <td>5</td>
3105
+ <td><p class="first last">グループ番号3の最初のレコード。( <code class="docutils literal"><span class="pre">5</span> <span class="pre">=</span> <span class="pre">5</span></code> )</p>
3106
+ </td>
3107
+ </tr>
3108
+ </tbody>
3109
+ </table>
3110
+ <p>以下はウィンドウ関数のパラメーターです。ウィンドウ関数関連のパラメーターと動的カラム関連のパラメーターを指定する必要があります。なぜならウィンドウ関数は動的カラムの上に実装されているからです。動的カラム関連のパラメーターについては <a class="reference internal" href="#select-dynamic-column-related-parameters"><span class="std std-ref">動的カラム関連の引数</span></a> を見てください。</p>
3111
+ <table border="1" class="docutils">
3112
+ <colgroup>
3113
+ <col width="33%" />
3114
+ <col width="33%" />
3115
+ <col width="33%" />
3116
+ </colgroup>
3117
+ <thead valign="bottom">
3118
+ <tr class="row-odd"><th class="head"><p class="first last">名前</p>
3119
+ </th>
3120
+ <th class="head"><p class="first last">必須か省略可能か</p>
3121
+ </th>
3122
+ <th class="head"><p class="first last">備考</p>
3123
+ </th>
3124
+ </tr>
3125
+ </thead>
3126
+ <tbody valign="top">
3127
+ <tr class="row-even"><td><code class="docutils literal"><span class="pre">columns[${NAME}].value</span></code></td>
3128
+ <td><p class="first last">必須</p>
3129
+ </td>
3130
+ <td><p class="first last"><a class="reference internal" href="../window_function.html"><span class="doc">ウィンドウ関数</span></a> を使います。</p>
3131
+ </td>
3132
+ </tr>
3133
+ <tr class="row-odd"><td><code class="docutils literal"><span class="pre">columns[${NAME}].window.sort_keys</span></code></td>
3134
+ <td><p class="first last"><code class="docutils literal"><span class="pre">columns[${NAME}].window.group_keys</span></code> を指定しない場合は必須です。</p>
3135
+ </td>
3136
+ <td>&nbsp;</td>
3137
+ </tr>
3138
+ <tr class="row-even"><td><code class="docutils literal"><span class="pre">columns[${NAME}].window.group_keys</span></code></td>
3139
+ <td><p class="first last"><code class="docutils literal"><span class="pre">columns[${NAME}].window.sort_keys</span></code> を指定しない場合は必須です。</p>
3140
+ </td>
3141
+ <td>&nbsp;</td>
3142
+ </tr>
3143
+ </tbody>
3144
+ </table>
3145
+ <div class="section" id="columns-name-window-sort-keys">
3146
+ <span id="select-columns-name-window-sort-keys"></span><h4>7.3.54.4.6.1. <code class="docutils literal"><span class="pre">columns[${NAME}].window.sort_keys</span></code><a class="headerlink" href="#columns-name-window-sort-keys" title="このヘッドラインへのパーマリンク">¶</a></h4>
3147
+ <div class="versionadded">
3148
+ <p><span class="versionmodified">バージョン 6.0.6 で追加.</span></p>
3149
+ </div>
3150
+ <p>各グループでのソートキーを指定します。ウィンドウ関数は各グループのレコードを指定された順に処理します。</p>
3151
+ <p>ソートキーを <code class="docutils literal"><span class="pre">,</span></code> 区切りで指定します。それぞれのソートキーにはカラム名を指定します。これは <a class="reference internal" href="#select-sort-keys"><span class="std std-ref">sort_keys</span></a> と同じです。</p>
3152
+ <p>ウィンドウ関数を使う場合は <a class="reference internal" href="#select-columns-name-window-sort-keys"><span class="std std-ref">columns[${NAME}].window.sort_keys</span></a> または <a class="reference internal" href="#select-columns-name-window-group-keys"><span class="std std-ref">columns[${NAME}].window.group_keys</span></a> を使う必要があります。</p>
3153
+ <p>以下は <code class="docutils literal"><span class="pre">Entries.tag</span></code> 毎に累積和を計算する例です。各グループ内のレコードは <code class="docutils literal"><span class="pre">Entries._key</span></code> でソートします。</p>
3154
+ <p>実行例:</p>
3155
+ <div class="highlight-none"><div class="highlight"><pre><span></span>select \
3156
+ --table Entries \
3157
+ --columns[n_likes_cumulative_sum_per_tag].stage initial \
3158
+ --columns[n_likes_cumulative_sum_per_tag].type UInt32 \
3159
+ --columns[n_likes_cumulative_sum_per_tag].value &#39;window_sum(n_likes)&#39; \
3160
+ --columns[n_likes_cumulative_sum_per_tag].window.sort_keys _key \
3161
+ --columns[n_likes_cumulative_sum_per_tag].window.group_keys tag \
3162
+ --sort_keys _key \
3163
+ --output_columns tag,_key,n_likes,n_likes_cumulative_sum_per_tag
3164
+ # [
3165
+ # [
3166
+ # 0,
3167
+ # 1337566253.89858,
3168
+ # 0.000355720520019531
3169
+ # ],
3170
+ # [
3171
+ # [
3172
+ # [
3173
+ # 5
3174
+ # ],
3175
+ # [
3176
+ # [
3177
+ # &quot;tag&quot;,
3178
+ # &quot;ShortText&quot;
3179
+ # ],
3180
+ # [
3181
+ # &quot;_key&quot;,
3182
+ # &quot;ShortText&quot;
3183
+ # ],
3184
+ # [
3185
+ # &quot;n_likes&quot;,
3186
+ # &quot;UInt32&quot;
3187
+ # ],
3188
+ # [
3189
+ # &quot;n_likes_cumulative_sum_per_tag&quot;,
3190
+ # &quot;UInt32&quot;
3191
+ # ]
3192
+ # ],
3193
+ # [
3194
+ # &quot;Senna&quot;,
3195
+ # &quot;Good-bye Senna&quot;,
3196
+ # 3,
3197
+ # 3
3198
+ # ],
3199
+ # [
3200
+ # &quot;Senna&quot;,
3201
+ # &quot;Good-bye Tritonn&quot;,
3202
+ # 3,
3203
+ # 6
3204
+ # ],
3205
+ # [
3206
+ # &quot;Groonga&quot;,
3207
+ # &quot;Groonga&quot;,
3208
+ # 10,
3209
+ # 10
3210
+ # ],
3211
+ # [
3212
+ # &quot;Groonga&quot;,
3213
+ # &quot;Mroonga&quot;,
3214
+ # 15,
3215
+ # 25
3216
+ # ],
3217
+ # [
3218
+ # &quot;Hello&quot;,
3219
+ # &quot;The first post!&quot;,
3220
+ # 5,
3221
+ # 5
3222
+ # ]
3223
+ # ]
3224
+ # ]
3225
+ # ]
3226
+ </pre></div>
3227
+ </div>
3228
+ </div>
3229
+ <div class="section" id="columns-name-window-group-keys">
3230
+ <span id="select-columns-name-window-group-keys"></span><h4>7.3.54.4.6.2. <code class="docutils literal"><span class="pre">columns[${NAME}].window.group_keys</span></code><a class="headerlink" href="#columns-name-window-group-keys" title="このヘッドラインへのパーマリンク">¶</a></h4>
3231
+ <div class="versionadded">
3232
+ <p><span class="versionmodified">バージョン 7.0.0 で追加.</span></p>
3233
+ </div>
3234
+ <p>グループキーを指定します。ウィンドウ関数は各グループのレコードを処理します。グループキーを指定しない場合はウィンドウ関数はすべてのレコードを含んだ1つのグループを処理します。</p>
3235
+ <p>グループキーを <code class="docutils literal"><span class="pre">,</span></code> 区切りで指定します。それぞれのグループキーにはカラム名を指定します。これは <a class="reference internal" href="#select-drilldown"><span class="std std-ref">drilldown</span></a> と同じです。</p>
3236
+ <p>ウィンドウ関数を使う場合は <a class="reference internal" href="#select-columns-name-window-sort-keys"><span class="std std-ref">columns[${NAME}].window.sort_keys</span></a> または <a class="reference internal" href="#select-columns-name-window-group-keys"><span class="std std-ref">columns[${NAME}].window.group_keys</span></a> を使う必要があります。</p>
3237
+ <p>以下は <code class="docutils literal"><span class="pre">Entries.tag</span></code> 毎に合計を計算する例です。</p>
3238
+ <p>実行例:</p>
3239
+ <div class="highlight-none"><div class="highlight"><pre><span></span>select \
3240
+ --table Entries \
3241
+ --columns[n_likes_sum_per_tag].stage initial \
3242
+ --columns[n_likes_sum_per_tag].type UInt32 \
3243
+ --columns[n_likes_sum_per_tag].value &#39;window_sum(n_likes)&#39; \
3244
+ --columns[n_likes_sum_per_tag].window.group_keys tag \
3245
+ --sort_keys _key \
3246
+ --output_columns tag,_key,n_likes,n_likes_sum_per_tag
3247
+ # [
3248
+ # [
3249
+ # 0,
3250
+ # 1337566253.89858,
3251
+ # 0.000355720520019531
3252
+ # ],
3253
+ # [
3254
+ # [
3255
+ # [
3256
+ # 5
3257
+ # ],
3258
+ # [
3259
+ # [
3260
+ # &quot;tag&quot;,
3261
+ # &quot;ShortText&quot;
3262
+ # ],
3263
+ # [
3264
+ # &quot;_key&quot;,
3265
+ # &quot;ShortText&quot;
3266
+ # ],
3267
+ # [
3268
+ # &quot;n_likes&quot;,
3269
+ # &quot;UInt32&quot;
3270
+ # ],
3271
+ # [
3272
+ # &quot;n_likes_sum_per_tag&quot;,
3273
+ # &quot;UInt32&quot;
3274
+ # ]
3275
+ # ],
3276
+ # [
3277
+ # &quot;Senna&quot;,
3278
+ # &quot;Good-bye Senna&quot;,
3279
+ # 3,
3280
+ # 6
3281
+ # ],
3282
+ # [
3283
+ # &quot;Senna&quot;,
3284
+ # &quot;Good-bye Tritonn&quot;,
3285
+ # 3,
3286
+ # 6
3287
+ # ],
3288
+ # [
3289
+ # &quot;Groonga&quot;,
3290
+ # &quot;Groonga&quot;,
3291
+ # 10,
3292
+ # 25
3293
+ # ],
3294
+ # [
3295
+ # &quot;Groonga&quot;,
3296
+ # &quot;Mroonga&quot;,
3297
+ # 15,
3298
+ # 25
3299
+ # ],
3300
+ # [
3301
+ # &quot;Hello&quot;,
3302
+ # &quot;The first post!&quot;,
3303
+ # 5,
3304
+ # 5
3305
+ # ]
3306
+ # ]
3307
+ # ]
3308
+ # ]
3309
+ </pre></div>
3310
+ </div>
3311
+ </div>
3312
+ </div>
3313
+ <div class="section" id="drilldown-related-parameters">
3314
+ <span id="select-drilldown-related-parameters"></span><h3>7.3.54.4.7. ドリルダウン関連の引数<a class="headerlink" href="#drilldown-related-parameters" title="このヘッドラインへのパーマリンク">¶</a></h3>
3315
+ <p>このセクションでは基本的なドリルダウン関連の引数について説明します。高度なドリルダウン関連の引数は他のセクションで説明します。</p>
3316
+ <div class="section" id="select-drilldown">
3317
+ <span id="id2"></span><h4>7.3.54.4.7.1. <code class="docutils literal"><span class="pre">drilldown</span></code><a class="headerlink" href="#select-drilldown" title="このヘッドラインへのパーマリンク">¶</a></h4>
3318
+ <p>グループ化するときに使うキーを <code class="docutils literal"><span class="pre">,</span></code> 区切りで指定します。</p>
3319
+ <p>指定した検索条件にマッチしたレコードを指定したキーのそれぞれでグループ化します。検索条件を指定していない場合はすべてのレコードを指定したキーのそれぞれでグループ化します。</p>
3320
+ <p>以下は簡単な <code class="docutils literal"><span class="pre">drilldown</span></code> の使用例です。</p>
3321
+ <p>実行例:</p>
3322
+ <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
3323
+ --output_columns _key,tag \
3324
+ --drilldown tag
3325
+ # [
3326
+ # [
3327
+ # 0,
3328
+ # 1337566253.89858,
3329
+ # 0.000355720520019531
3330
+ # ],
3331
+ # [
3332
+ # [
3333
+ # [
3334
+ # 5
3335
+ # ],
3336
+ # [
3337
+ # [
3338
+ # &quot;_key&quot;,
3339
+ # &quot;ShortText&quot;
3340
+ # ],
3341
+ # [
3342
+ # &quot;tag&quot;,
3343
+ # &quot;ShortText&quot;
3344
+ # ]
3345
+ # ],
3346
+ # [
3347
+ # &quot;The first post!&quot;,
2304
3348
  # &quot;Hello&quot;
2305
3349
  # ],
2306
3350
  # [
@@ -2446,7 +3490,7 @@ select Entries --match_columns content --query &quot;popular&quot; --query_expan
2446
3490
  <p>実行例:</p>
2447
3491
  <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
2448
3492
  --limit 0 \
2449
- --output_column _id \
3493
+ --output_columns _id \
2450
3494
  --drilldown tag,n_likes
2451
3495
  # [
2452
3496
  # [
@@ -2463,22 +3507,6 @@ select Entries --match_columns content --query &quot;popular&quot; --query_expan
2463
3507
  # [
2464
3508
  # &quot;_id&quot;,
2465
3509
  # &quot;UInt32&quot;
2466
- # ],
2467
- # [
2468
- # &quot;_key&quot;,
2469
- # &quot;ShortText&quot;
2470
- # ],
2471
- # [
2472
- # &quot;content&quot;,
2473
- # &quot;Text&quot;
2474
- # ],
2475
- # [
2476
- # &quot;n_likes&quot;,
2477
- # &quot;UInt32&quot;
2478
- # ],
2479
- # [
2480
- # &quot;tag&quot;,
2481
- # &quot;ShortText&quot;
2482
3510
  # ]
2483
3511
  # ]
2484
3512
  # ],
@@ -2571,22 +3599,22 @@ select Entries --match_columns content --query &quot;popular&quot; --query_expan
2571
3599
  </div></blockquote>
2572
3600
  </div>
2573
3601
  <div class="section" id="drilldown-sortby">
2574
- <span id="select-drilldown-sortby"></span><h4>7.3.54.4.5.2. <code class="docutils literal"><span class="pre">drilldown_sortby</span></code><a class="headerlink" href="#drilldown-sortby" title="このヘッドラインへのパーマリンク">¶</a></h4>
3602
+ <span id="select-drilldown-sortby"></span><h4>7.3.54.4.7.2. <code class="docutils literal"><span class="pre">drilldown_sortby</span></code><a class="headerlink" href="#drilldown-sortby" title="このヘッドラインへのパーマリンク">¶</a></h4>
2575
3603
  <div class="deprecated">
2576
3604
  <p><span class="versionmodified">バージョン 6.0.3 で撤廃: </span><a class="reference internal" href="#select-drilldown-sort-keys"><span class="std std-ref">drilldown_sort_keys</span></a> を代わりに使ってください</p>
2577
3605
  </div>
2578
3606
  </div>
2579
3607
  <div class="section" id="drilldown-sort-keys">
2580
- <span id="select-drilldown-sort-keys"></span><h4>7.3.54.4.5.3. <code class="docutils literal"><span class="pre">drilldown_sort_keys</span></code><a class="headerlink" href="#drilldown-sort-keys" title="このヘッドラインへのパーマリンク">¶</a></h4>
3608
+ <span id="select-drilldown-sort-keys"></span><h4>7.3.54.4.7.3. <code class="docutils literal"><span class="pre">drilldown_sort_keys</span></code><a class="headerlink" href="#drilldown-sort-keys" title="このヘッドラインへのパーマリンク">¶</a></h4>
2581
3609
  <p>ドリルダウン結果のソートキーを <code class="docutils literal"><span class="pre">,</span></code> 区切りで指定します。それぞれのソートキーはカラム名を指定します。</p>
2582
3610
  <p>グループ化されたレコード数は <code class="docutils literal"><span class="pre">_nsubrecs</span></code> <a class="reference internal" href="../columns/pseudo.html"><span class="doc">擬似カラム</span></a> 擬似カラムで参照できます。</p>
2583
- <p>以下は簡単な <code class="docutils literal"><span class="pre">drilldown_sortby</span></code> の使用例です。</p>
3611
+ <p>以下は簡単な <code class="docutils literal"><span class="pre">drilldown_sort_keys</span></code> の使用例です。</p>
2584
3612
  <p>実行例:</p>
2585
3613
  <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
2586
3614
  --limit 0 \
2587
- --output_column _id \
3615
+ --output_columns _id \
2588
3616
  --drilldown &#39;tag, n_likes&#39; \
2589
- --drilldown_sortby &#39;-_nsubrecs, _key&#39;
3617
+ --drilldown_sort_keys &#39;-_nsubrecs, _key&#39;
2590
3618
  # [
2591
3619
  # [
2592
3620
  # 0,
@@ -2602,22 +3630,6 @@ select Entries --match_columns content --query &quot;popular&quot; --query_expan
2602
3630
  # [
2603
3631
  # &quot;_id&quot;,
2604
3632
  # &quot;UInt32&quot;
2605
- # ],
2606
- # [
2607
- # &quot;_key&quot;,
2608
- # &quot;ShortText&quot;
2609
- # ],
2610
- # [
2611
- # &quot;content&quot;,
2612
- # &quot;Text&quot;
2613
- # ],
2614
- # [
2615
- # &quot;n_likes&quot;,
2616
- # &quot;UInt32&quot;
2617
- # ],
2618
- # [
2619
- # &quot;tag&quot;,
2620
- # &quot;ShortText&quot;
2621
3633
  # ]
2622
3634
  # ]
2623
3635
  # ],
@@ -2688,9 +3700,9 @@ select Entries --match_columns content --query &quot;popular&quot; --query_expan
2688
3700
  <p>実行例:</p>
2689
3701
  <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
2690
3702
  --limit 0 \
2691
- --output_column _id \
3703
+ --output_columns _id \
2692
3704
  --drilldown &#39;tag, n_likes&#39; \
2693
- --drilldown_sortby &#39;-_nsubrecs, _key&#39;
3705
+ --drilldown_sort_keys &#39;-_nsubrecs, _key&#39;
2694
3706
  # [
2695
3707
  # [
2696
3708
  # 0,
@@ -2706,22 +3718,6 @@ select Entries --match_columns content --query &quot;popular&quot; --query_expan
2706
3718
  # [
2707
3719
  # &quot;_id&quot;,
2708
3720
  # &quot;UInt32&quot;
2709
- # ],
2710
- # [
2711
- # &quot;_key&quot;,
2712
- # &quot;ShortText&quot;
2713
- # ],
2714
- # [
2715
- # &quot;content&quot;,
2716
- # &quot;Text&quot;
2717
- # ],
2718
- # [
2719
- # &quot;n_likes&quot;,
2720
- # &quot;UInt32&quot;
2721
- # ],
2722
- # [
2723
- # &quot;tag&quot;,
2724
- # &quot;ShortText&quot;
2725
3721
  # ]
2726
3722
  # ]
2727
3723
  # ],
@@ -2791,13 +3787,13 @@ select Entries --match_columns content --query &quot;popular&quot; --query_expan
2791
3787
  <p>それぞれのドリルダウンで異なるソートキーを使いたい場合は <a class="reference internal" href="#select-advanced-drilldown-related-parameters"><span class="std std-ref">高度なドリルダウン関連のパラメーター</span></a> を参照してください。</p>
2792
3788
  </div>
2793
3789
  <div class="section" id="drilldown-output-columns">
2794
- <span id="select-drilldown-output-columns"></span><h4>7.3.54.4.5.4. <code class="docutils literal"><span class="pre">drilldown_output_columns</span></code><a class="headerlink" href="#drilldown-output-columns" title="このヘッドラインへのパーマリンク">¶</a></h4>
3790
+ <span id="select-drilldown-output-columns"></span><h4>7.3.54.4.7.4. <code class="docutils literal"><span class="pre">drilldown_output_columns</span></code><a class="headerlink" href="#drilldown-output-columns" title="このヘッドラインへのパーマリンク">¶</a></h4>
2795
3791
  <p>ドリルダウン結果から出力するカラムを <code class="docutils literal"><span class="pre">,</span></code> 区切りで指定します。</p>
2796
3792
  <p>以下は <code class="docutils literal"><span class="pre">drilldown_output_columns</span></code> の使用例です。</p>
2797
3793
  <p>実行例:</p>
2798
3794
  <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
2799
3795
  --limit 0 \
2800
- --output_column _id \
3796
+ --output_columns _id \
2801
3797
  --drilldown tag \
2802
3798
  --drilldown_output_columns _key
2803
3799
  # [
@@ -2815,22 +3811,6 @@ select Entries --match_columns content --query &quot;popular&quot; --query_expan
2815
3811
  # [
2816
3812
  # &quot;_id&quot;,
2817
3813
  # &quot;UInt32&quot;
2818
- # ],
2819
- # [
2820
- # &quot;_key&quot;,
2821
- # &quot;ShortText&quot;
2822
- # ],
2823
- # [
2824
- # &quot;content&quot;,
2825
- # &quot;Text&quot;
2826
- # ],
2827
- # [
2828
- # &quot;n_likes&quot;,
2829
- # &quot;UInt32&quot;
2830
- # ],
2831
- # [
2832
- # &quot;tag&quot;,
2833
- # &quot;ShortText&quot;
2834
3814
  # ]
2835
3815
  # ]
2836
3816
  # ],
@@ -2892,7 +3872,7 @@ load --table Items
2892
3872
  <p>実行例:</p>
2893
3873
  <div class="highlight-none"><div class="highlight"><pre><span></span>select Items \
2894
3874
  --limit 0 \
2895
- --output_column _id \
3875
+ --output_columns _id \
2896
3876
  --drilldown tag \
2897
3877
  --drilldown_output_columns &#39;_key, label&#39;
2898
3878
  # [
@@ -2910,14 +3890,6 @@ load --table Items
2910
3890
  # [
2911
3891
  # &quot;_id&quot;,
2912
3892
  # &quot;UInt32&quot;
2913
- # ],
2914
- # [
2915
- # &quot;_key&quot;,
2916
- # &quot;ShortText&quot;
2917
- # ],
2918
- # [
2919
- # &quot;tag&quot;,
2920
- # &quot;Tags&quot;
2921
3893
  # ]
2922
3894
  # ]
2923
3895
  # ],
@@ -2952,7 +3924,7 @@ load --table Items
2952
3924
  <p>実行例:</p>
2953
3925
  <div class="highlight-none"><div class="highlight"><pre><span></span>select Items \
2954
3926
  --limit 0 \
2955
- --output_column _id \
3927
+ --output_columns _id \
2956
3928
  --drilldown tag \
2957
3929
  --drilldown_output_columns &#39;_key, *&#39;
2958
3930
  # [
@@ -2970,14 +3942,6 @@ load --table Items
2970
3942
  # [
2971
3943
  # &quot;_id&quot;,
2972
3944
  # &quot;UInt32&quot;
2973
- # ],
2974
- # [
2975
- # &quot;_key&quot;,
2976
- # &quot;ShortText&quot;
2977
- # ],
2978
- # [
2979
- # &quot;tag&quot;,
2980
- # &quot;Tags&quot;
2981
3945
  # ]
2982
3946
  # ]
2983
3947
  # ],
@@ -3019,15 +3983,15 @@ load --table Items
3019
3983
  <p><a class="reference internal" href="#select-drilldown-calc-types"><span class="std std-ref">drilldown_calc_types</span></a> を使うと、 <code class="docutils literal"><span class="pre">drilldown_output_columns</span></code> の中で <code class="docutils literal"><span class="pre">_max</span></code> 、 <code class="docutils literal"><span class="pre">_min</span></code> 、 <code class="docutils literal"><span class="pre">_sum</span></code> 、 <code class="docutils literal"><span class="pre">_avg</span></code> といった <a class="reference internal" href="../columns/pseudo.html"><span class="doc">擬似カラム</span></a> も使えるようになります。詳細は <code class="docutils literal"><span class="pre">drilldown_calc_types</span></code> のドキュメントを参照してください。</p>
3020
3984
  </div>
3021
3985
  <div class="section" id="drilldown-offset">
3022
- <span id="select-drilldown-offset"></span><h4>7.3.54.4.5.5. <code class="docutils literal"><span class="pre">drilldown_offset</span></code><a class="headerlink" href="#drilldown-offset" title="このヘッドラインへのパーマリンク">¶</a></h4>
3986
+ <span id="select-drilldown-offset"></span><h4>7.3.54.4.7.5. <code class="docutils literal"><span class="pre">drilldown_offset</span></code><a class="headerlink" href="#drilldown-offset" title="このヘッドラインへのパーマリンク">¶</a></h4>
3023
3987
  <p>ドリルダウン結果を出力するレコードの範囲を決めるためのオフセットを指定します。オフセットは0始まりです。 <code class="docutils literal"><span class="pre">--offset</span> <span class="pre">1</span></code> は2番目以降のレコードを出力するという意味になります。</p>
3024
3988
  <p>以下は簡単な <code class="docutils literal"><span class="pre">drilldown_offset</span></code> の使用例です。</p>
3025
3989
  <p>実行例:</p>
3026
3990
  <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
3027
3991
  --limit 0 \
3028
- --output_column _id \
3992
+ --output_columns _id \
3029
3993
  --drilldown tag \
3030
- --drilldown_sortby _key \
3994
+ --drilldown_sort_keys _key \
3031
3995
  --drilldown_offset 1
3032
3996
  # [
3033
3997
  # [
@@ -3044,22 +4008,6 @@ load --table Items
3044
4008
  # [
3045
4009
  # &quot;_id&quot;,
3046
4010
  # &quot;UInt32&quot;
3047
- # ],
3048
- # [
3049
- # &quot;_key&quot;,
3050
- # &quot;ShortText&quot;
3051
- # ],
3052
- # [
3053
- # &quot;content&quot;,
3054
- # &quot;Text&quot;
3055
- # ],
3056
- # [
3057
- # &quot;n_likes&quot;,
3058
- # &quot;UInt32&quot;
3059
- # ],
3060
- # [
3061
- # &quot;tag&quot;,
3062
- # &quot;ShortText&quot;
3063
4011
  # ]
3064
4012
  # ]
3065
4013
  # ],
@@ -3095,9 +4043,9 @@ load --table Items
3095
4043
  <p>実行例:</p>
3096
4044
  <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
3097
4045
  --limit 0 \
3098
- --output_column _id \
4046
+ --output_columns _id \
3099
4047
  --drilldown tag \
3100
- --drilldown_sortby _key \
4048
+ --drilldown_sort_keys _key \
3101
4049
  --drilldown_offset -2
3102
4050
  # [
3103
4051
  # [
@@ -3114,22 +4062,6 @@ load --table Items
3114
4062
  # [
3115
4063
  # &quot;_id&quot;,
3116
4064
  # &quot;UInt32&quot;
3117
- # ],
3118
- # [
3119
- # &quot;_key&quot;,
3120
- # &quot;ShortText&quot;
3121
- # ],
3122
- # [
3123
- # &quot;content&quot;,
3124
- # &quot;Text&quot;
3125
- # ],
3126
- # [
3127
- # &quot;n_likes&quot;,
3128
- # &quot;UInt32&quot;
3129
- # ],
3130
- # [
3131
- # &quot;tag&quot;,
3132
- # &quot;ShortText&quot;
3133
4065
  # ]
3134
4066
  # ]
3135
4067
  # ],
@@ -3164,15 +4096,15 @@ load --table Items
3164
4096
  <p><code class="docutils literal"><span class="pre">drilldown_offset</span></code> のデフォルト値は <code class="docutils literal"><span class="pre">0</span></code> です。</p>
3165
4097
  </div>
3166
4098
  <div class="section" id="drilldown-limit">
3167
- <span id="select-drilldown-limit"></span><h4>7.3.54.4.5.6. <code class="docutils literal"><span class="pre">drilldown_limit</span></code><a class="headerlink" href="#drilldown-limit" title="このヘッドラインへのパーマリンク">¶</a></h4>
4099
+ <span id="select-drilldown-limit"></span><h4>7.3.54.4.7.6. <code class="docutils literal"><span class="pre">drilldown_limit</span></code><a class="headerlink" href="#drilldown-limit" title="このヘッドラインへのパーマリンク">¶</a></h4>
3168
4100
  <p><code class="docutils literal"><span class="pre">drilldown_limit</span></code> は出力グループ数の最大値を指定します。もし、グループ数 <code class="docutils literal"><span class="pre">limit</span></code> よりも小さい場合はすべてのグループが出力されます。</p>
3169
4101
  <p>以下は <code class="docutils literal"><span class="pre">drilldown_limit</span></code> の使用例です。</p>
3170
4102
  <p>実行例:</p>
3171
4103
  <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
3172
4104
  --limit 0 \
3173
- --output_column _id \
4105
+ --output_columns _id \
3174
4106
  --drilldown tag \
3175
- --drilldown_sortby _key \
4107
+ --drilldown_sort_keys _key \
3176
4108
  --drilldown_offset 1 \
3177
4109
  --drilldown_limit 2
3178
4110
  # [
@@ -3190,22 +4122,6 @@ load --table Items
3190
4122
  # [
3191
4123
  # &quot;_id&quot;,
3192
4124
  # &quot;UInt32&quot;
3193
- # ],
3194
- # [
3195
- # &quot;_key&quot;,
3196
- # &quot;ShortText&quot;
3197
- # ],
3198
- # [
3199
- # &quot;content&quot;,
3200
- # &quot;Text&quot;
3201
- # ],
3202
- # [
3203
- # &quot;n_likes&quot;,
3204
- # &quot;UInt32&quot;
3205
- # ],
3206
- # [
3207
- # &quot;tag&quot;,
3208
- # &quot;ShortText&quot;
3209
4125
  # ]
3210
4126
  # ]
3211
4127
  # ],
@@ -3242,9 +4158,9 @@ load --table Items
3242
4158
  <p>実行例:</p>
3243
4159
  <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
3244
4160
  --limit 0 \
3245
- --output_column _id \
4161
+ --output_columns _id \
3246
4162
  --drilldown tag \
3247
- --drilldown_sortby _key \
4163
+ --drilldown_sort_keys _key \
3248
4164
  --drilldown_limit -1
3249
4165
  # [
3250
4166
  # [
@@ -3261,22 +4177,6 @@ load --table Items
3261
4177
  # [
3262
4178
  # &quot;_id&quot;,
3263
4179
  # &quot;UInt32&quot;
3264
- # ],
3265
- # [
3266
- # &quot;_key&quot;,
3267
- # &quot;ShortText&quot;
3268
- # ],
3269
- # [
3270
- # &quot;content&quot;,
3271
- # &quot;Text&quot;
3272
- # ],
3273
- # [
3274
- # &quot;n_likes&quot;,
3275
- # &quot;UInt32&quot;
3276
- # ],
3277
- # [
3278
- # &quot;tag&quot;,
3279
- # &quot;ShortText&quot;
3280
4180
  # ]
3281
4181
  # ]
3282
4182
  # ],
@@ -3315,7 +4215,7 @@ load --table Items
3315
4215
  <p><code class="docutils literal"><span class="pre">drilldown_limit</span></code> のデフォルト値は <code class="docutils literal"><span class="pre">10</span></code> です。</p>
3316
4216
  </div>
3317
4217
  <div class="section" id="drilldown-calc-types">
3318
- <span id="select-drilldown-calc-types"></span><h4>7.3.54.4.5.7. <code class="docutils literal"><span class="pre">drilldown_calc_types</span></code><a class="headerlink" href="#drilldown-calc-types" title="このヘッドラインへのパーマリンク">¶</a></h4>
4218
+ <span id="select-drilldown-calc-types"></span><h4>7.3.54.4.7.7. <code class="docutils literal"><span class="pre">drilldown_calc_types</span></code><a class="headerlink" href="#drilldown-calc-types" title="このヘッドラインへのパーマリンク">¶</a></h4>
3319
4219
  <p>ドリルダウンでグループ内のレコードの値を計算(集計)する方法を指定します。「 <code class="docutils literal"><span class="pre">,</span></code> 」で区切ることで複数の計算タイプを指定することもできます。たとえば、 <code class="docutils literal"><span class="pre">MAX,MIN</span></code> といった具合です。</p>
3320
4220
  <p>計算対象の値はグループ内のレコードのカラムから取得します。このカラムは <a class="reference internal" href="#select-drilldown-calc-target"><span class="std std-ref">drilldown_calc_target</span></a> で指定します。</p>
3321
4221
  <p>計算した値は <a class="reference internal" href="#select-drilldown-output-columns"><span class="std std-ref">drilldown_output_columns</span></a> の中で <code class="docutils literal"><span class="pre">_max</span></code> や <code class="docutils literal"><span class="pre">_min</span></code> のような <a class="reference internal" href="../columns/pseudo.html"><span class="doc">擬似カラム</span></a> を指定すると取得できます。</p>
@@ -3388,7 +4288,7 @@ load --table Items
3388
4288
  <p>実行例:</p>
3389
4289
  <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
3390
4290
  --limit -1 \
3391
- --output_column _id,n_likes \
4291
+ --output_columns _id,n_likes \
3392
4292
  --drilldown tag \
3393
4293
  --drilldown_calc_types MAX \
3394
4294
  --drilldown_calc_target n_likes \
@@ -3410,56 +4310,29 @@ load --table Items
3410
4310
  # &quot;UInt32&quot;
3411
4311
  # ],
3412
4312
  # [
3413
- # &quot;_key&quot;,
3414
- # &quot;ShortText&quot;
3415
- # ],
3416
- # [
3417
- # &quot;content&quot;,
3418
- # &quot;Text&quot;
3419
- # ],
3420
- # [
3421
4313
  # &quot;n_likes&quot;,
3422
4314
  # &quot;UInt32&quot;
3423
- # ],
3424
- # [
3425
- # &quot;tag&quot;,
3426
- # &quot;ShortText&quot;
3427
4315
  # ]
3428
4316
  # ],
3429
4317
  # [
3430
4318
  # 1,
3431
- # &quot;The first post!&quot;,
3432
- # &quot;Welcome! This is my first post!&quot;,
3433
- # 5,
3434
- # &quot;Hello&quot;
4319
+ # 5
3435
4320
  # ],
3436
4321
  # [
3437
4322
  # 2,
3438
- # &quot;Groonga&quot;,
3439
- # &quot;I started to use Groonga. It&#39;s very fast!&quot;,
3440
- # 10,
3441
- # &quot;Groonga&quot;
4323
+ # 10
3442
4324
  # ],
3443
4325
  # [
3444
4326
  # 3,
3445
- # &quot;Mroonga&quot;,
3446
- # &quot;I also started to use Mroonga. It&#39;s also very fast! Really fast!&quot;,
3447
- # 15,
3448
- # &quot;Groonga&quot;
4327
+ # 15
3449
4328
  # ],
3450
4329
  # [
3451
4330
  # 4,
3452
- # &quot;Good-bye Senna&quot;,
3453
- # &quot;I migrated all Senna system!&quot;,
3454
- # 3,
3455
- # &quot;Senna&quot;
4331
+ # 3
3456
4332
  # ],
3457
4333
  # [
3458
4334
  # 5,
3459
- # &quot;Good-bye Tritonn&quot;,
3460
- # &quot;I also migrated all Tritonn system!&quot;,
3461
- # 3,
3462
- # &quot;Senna&quot;
4335
+ # 3
3463
4336
  # ]
3464
4337
  # ],
3465
4338
  # [
@@ -3498,7 +4371,7 @@ load --table Items
3498
4371
  <p>実行例:</p>
3499
4372
  <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
3500
4373
  --limit -1 \
3501
- --output_column _id,n_likes \
4374
+ --output_columns _id,n_likes \
3502
4375
  --drilldown tag \
3503
4376
  --drilldown_calc_types MIN \
3504
4377
  --drilldown_calc_target n_likes \
@@ -3520,56 +4393,29 @@ load --table Items
3520
4393
  # &quot;UInt32&quot;
3521
4394
  # ],
3522
4395
  # [
3523
- # &quot;_key&quot;,
3524
- # &quot;ShortText&quot;
3525
- # ],
3526
- # [
3527
- # &quot;content&quot;,
3528
- # &quot;Text&quot;
3529
- # ],
3530
- # [
3531
4396
  # &quot;n_likes&quot;,
3532
4397
  # &quot;UInt32&quot;
3533
- # ],
3534
- # [
3535
- # &quot;tag&quot;,
3536
- # &quot;ShortText&quot;
3537
4398
  # ]
3538
4399
  # ],
3539
4400
  # [
3540
4401
  # 1,
3541
- # &quot;The first post!&quot;,
3542
- # &quot;Welcome! This is my first post!&quot;,
3543
- # 5,
3544
- # &quot;Hello&quot;
4402
+ # 5
3545
4403
  # ],
3546
4404
  # [
3547
4405
  # 2,
3548
- # &quot;Groonga&quot;,
3549
- # &quot;I started to use Groonga. It&#39;s very fast!&quot;,
3550
- # 10,
3551
- # &quot;Groonga&quot;
4406
+ # 10
3552
4407
  # ],
3553
4408
  # [
3554
4409
  # 3,
3555
- # &quot;Mroonga&quot;,
3556
- # &quot;I also started to use Mroonga. It&#39;s also very fast! Really fast!&quot;,
3557
- # 15,
3558
- # &quot;Groonga&quot;
4410
+ # 15
3559
4411
  # ],
3560
4412
  # [
3561
4413
  # 4,
3562
- # &quot;Good-bye Senna&quot;,
3563
- # &quot;I migrated all Senna system!&quot;,
3564
- # 3,
3565
- # &quot;Senna&quot;
4414
+ # 3
3566
4415
  # ],
3567
4416
  # [
3568
4417
  # 5,
3569
- # &quot;Good-bye Tritonn&quot;,
3570
- # &quot;I also migrated all Tritonn system!&quot;,
3571
- # 3,
3572
- # &quot;Senna&quot;
4418
+ # 3
3573
4419
  # ]
3574
4420
  # ],
3575
4421
  # [
@@ -3608,7 +4454,7 @@ load --table Items
3608
4454
  <p>実行例:</p>
3609
4455
  <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
3610
4456
  --limit -1 \
3611
- --output_column _id,n_likes \
4457
+ --output_columns _id,n_likes \
3612
4458
  --drilldown tag \
3613
4459
  --drilldown_calc_types SUM \
3614
4460
  --drilldown_calc_target n_likes \
@@ -3630,56 +4476,29 @@ load --table Items
3630
4476
  # &quot;UInt32&quot;
3631
4477
  # ],
3632
4478
  # [
3633
- # &quot;_key&quot;,
3634
- # &quot;ShortText&quot;
3635
- # ],
3636
- # [
3637
- # &quot;content&quot;,
3638
- # &quot;Text&quot;
3639
- # ],
3640
- # [
3641
4479
  # &quot;n_likes&quot;,
3642
4480
  # &quot;UInt32&quot;
3643
- # ],
3644
- # [
3645
- # &quot;tag&quot;,
3646
- # &quot;ShortText&quot;
3647
4481
  # ]
3648
4482
  # ],
3649
4483
  # [
3650
4484
  # 1,
3651
- # &quot;The first post!&quot;,
3652
- # &quot;Welcome! This is my first post!&quot;,
3653
- # 5,
3654
- # &quot;Hello&quot;
4485
+ # 5
3655
4486
  # ],
3656
4487
  # [
3657
4488
  # 2,
3658
- # &quot;Groonga&quot;,
3659
- # &quot;I started to use Groonga. It&#39;s very fast!&quot;,
3660
- # 10,
3661
- # &quot;Groonga&quot;
4489
+ # 10
3662
4490
  # ],
3663
4491
  # [
3664
4492
  # 3,
3665
- # &quot;Mroonga&quot;,
3666
- # &quot;I also started to use Mroonga. It&#39;s also very fast! Really fast!&quot;,
3667
- # 15,
3668
- # &quot;Groonga&quot;
4493
+ # 15
3669
4494
  # ],
3670
4495
  # [
3671
4496
  # 4,
3672
- # &quot;Good-bye Senna&quot;,
3673
- # &quot;I migrated all Senna system!&quot;,
3674
- # 3,
3675
- # &quot;Senna&quot;
4497
+ # 3
3676
4498
  # ],
3677
4499
  # [
3678
4500
  # 5,
3679
- # &quot;Good-bye Tritonn&quot;,
3680
- # &quot;I also migrated all Tritonn system!&quot;,
3681
- # 3,
3682
- # &quot;Senna&quot;
4501
+ # 3
3683
4502
  # ]
3684
4503
  # ],
3685
4504
  # [
@@ -3718,7 +4537,7 @@ load --table Items
3718
4537
  <p>実行例:</p>
3719
4538
  <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
3720
4539
  --limit -1 \
3721
- --output_column _id,n_likes \
4540
+ --output_columns _id,n_likes \
3722
4541
  --drilldown tag \
3723
4542
  --drilldown_calc_types AVG \
3724
4543
  --drilldown_calc_target n_likes \
@@ -3740,56 +4559,29 @@ load --table Items
3740
4559
  # &quot;UInt32&quot;
3741
4560
  # ],
3742
4561
  # [
3743
- # &quot;_key&quot;,
3744
- # &quot;ShortText&quot;
3745
- # ],
3746
- # [
3747
- # &quot;content&quot;,
3748
- # &quot;Text&quot;
3749
- # ],
3750
- # [
3751
4562
  # &quot;n_likes&quot;,
3752
4563
  # &quot;UInt32&quot;
3753
- # ],
3754
- # [
3755
- # &quot;tag&quot;,
3756
- # &quot;ShortText&quot;
3757
4564
  # ]
3758
4565
  # ],
3759
4566
  # [
3760
4567
  # 1,
3761
- # &quot;The first post!&quot;,
3762
- # &quot;Welcome! This is my first post!&quot;,
3763
- # 5,
3764
- # &quot;Hello&quot;
4568
+ # 5
3765
4569
  # ],
3766
4570
  # [
3767
4571
  # 2,
3768
- # &quot;Groonga&quot;,
3769
- # &quot;I started to use Groonga. It&#39;s very fast!&quot;,
3770
- # 10,
3771
- # &quot;Groonga&quot;
4572
+ # 10
3772
4573
  # ],
3773
4574
  # [
3774
4575
  # 3,
3775
- # &quot;Mroonga&quot;,
3776
- # &quot;I also started to use Mroonga. It&#39;s also very fast! Really fast!&quot;,
3777
- # 15,
3778
- # &quot;Groonga&quot;
4576
+ # 15
3779
4577
  # ],
3780
4578
  # [
3781
4579
  # 4,
3782
- # &quot;Good-bye Senna&quot;,
3783
- # &quot;I migrated all Senna system!&quot;,
3784
- # 3,
3785
- # &quot;Senna&quot;
4580
+ # 3
3786
4581
  # ],
3787
4582
  # [
3788
4583
  # 5,
3789
- # &quot;Good-bye Tritonn&quot;,
3790
- # &quot;I also migrated all Tritonn system!&quot;,
3791
- # 3,
3792
- # &quot;Senna&quot;
4584
+ # 3
3793
4585
  # ]
3794
4586
  # ],
3795
4587
  # [
@@ -3828,7 +4620,7 @@ load --table Items
3828
4620
  <p>実行例:</p>
3829
4621
  <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
3830
4622
  --limit -1 \
3831
- --output_column _id,n_likes \
4623
+ --output_columns _id,n_likes \
3832
4624
  --drilldown tag \
3833
4625
  --drilldown_calc_types MAX,MIN,SUM,AVG \
3834
4626
  --drilldown_calc_target n_likes \
@@ -3850,56 +4642,29 @@ load --table Items
3850
4642
  # &quot;UInt32&quot;
3851
4643
  # ],
3852
4644
  # [
3853
- # &quot;_key&quot;,
3854
- # &quot;ShortText&quot;
3855
- # ],
3856
- # [
3857
- # &quot;content&quot;,
3858
- # &quot;Text&quot;
3859
- # ],
3860
- # [
3861
4645
  # &quot;n_likes&quot;,
3862
4646
  # &quot;UInt32&quot;
3863
- # ],
3864
- # [
3865
- # &quot;tag&quot;,
3866
- # &quot;ShortText&quot;
3867
4647
  # ]
3868
4648
  # ],
3869
4649
  # [
3870
4650
  # 1,
3871
- # &quot;The first post!&quot;,
3872
- # &quot;Welcome! This is my first post!&quot;,
3873
- # 5,
3874
- # &quot;Hello&quot;
4651
+ # 5
3875
4652
  # ],
3876
4653
  # [
3877
4654
  # 2,
3878
- # &quot;Groonga&quot;,
3879
- # &quot;I started to use Groonga. It&#39;s very fast!&quot;,
3880
- # 10,
3881
- # &quot;Groonga&quot;
4655
+ # 10
3882
4656
  # ],
3883
4657
  # [
3884
4658
  # 3,
3885
- # &quot;Mroonga&quot;,
3886
- # &quot;I also started to use Mroonga. It&#39;s also very fast! Really fast!&quot;,
3887
- # 15,
3888
- # &quot;Groonga&quot;
4659
+ # 15
3889
4660
  # ],
3890
4661
  # [
3891
4662
  # 4,
3892
- # &quot;Good-bye Senna&quot;,
3893
- # &quot;I migrated all Senna system!&quot;,
3894
- # 3,
3895
- # &quot;Senna&quot;
4663
+ # 3
3896
4664
  # ],
3897
4665
  # [
3898
4666
  # 5,
3899
- # &quot;Good-bye Tritonn&quot;,
3900
- # &quot;I also migrated all Tritonn system!&quot;,
3901
- # 3,
3902
- # &quot;Senna&quot;
4667
+ # 3
3903
4668
  # ]
3904
4669
  # ],
3905
4670
  # [
@@ -3965,7 +4730,10 @@ load --table Items
3965
4730
  <p><code class="docutils literal"><span class="pre">drilldown_calc_types</span></code> のデフォルト値は <code class="docutils literal"><span class="pre">NONE</span></code> です。これは、 <code class="docutils literal"><span class="pre">COUNT</span></code> だけが有効になっているという意味です。なぜなら、 <code class="docutils literal"><span class="pre">NONE</span></code> は単に無視されて、 <code class="docutils literal"><span class="pre">COUNT</span></code> は常に有効だからです。</p>
3966
4731
  </div>
3967
4732
  <div class="section" id="drilldown-calc-target">
3968
- <span id="select-drilldown-calc-target"></span><h4>7.3.54.4.5.8. <code class="docutils literal"><span class="pre">drilldown_calc_target</span></code><a class="headerlink" href="#drilldown-calc-target" title="このヘッドラインへのパーマリンク">¶</a></h4>
4733
+ <span id="select-drilldown-calc-target"></span><h4>7.3.54.4.7.8. <code class="docutils literal"><span class="pre">drilldown_calc_target</span></code><a class="headerlink" href="#drilldown-calc-target" title="このヘッドラインへのパーマリンク">¶</a></h4>
4734
+ <div class="versionadded">
4735
+ <p><span class="versionmodified">バージョン 6.0.3 で追加.</span></p>
4736
+ </div>
3969
4737
  <p><a class="reference internal" href="#select-drilldown-calc-types"><span class="std std-ref">drilldown_calc_types</span></a> の計算対象のカラムを指定します。</p>
3970
4738
  <p><a class="reference internal" href="#select-drilldown-calc-types"><span class="std std-ref">drilldown_calc_types</span></a> で <code class="docutils literal"><span class="pre">MAX</span></code> のように計算対象のカラムが必要な計算タイプを指定したにも関わらず <code class="docutils literal"><span class="pre">drilldown_calc_target</span></code> を省略すると、計算結果は常に <code class="docutils literal"><span class="pre">0</span></code> になります。</p>
3971
4739
  <p><code class="docutils literal"><span class="pre">--drilldown_calc_target</span> <span class="pre">n_likes</span></code> というように1つのカラム名だけしか指定できません。 <code class="docutils literal"><span class="pre">--drilldown_calc_target</span> <span class="pre">_key,n_likes</span></code> というように複数のカラムを指定することはできません。</p>
@@ -3973,20 +4741,115 @@ load --table Items
3973
4741
  <p><code class="docutils literal"><span class="pre">drilldown_calc_target</span></code> の使い方は <a class="reference internal" href="#select-drilldown-calc-types"><span class="std std-ref">drilldown_calc_types</span></a> を参照してください。</p>
3974
4742
  <p><code class="docutils literal"><span class="pre">drilldown_calc_target</span></code> のデフォルト値は <code class="docutils literal"><span class="pre">null</span></code> です。これは計算対象カラムは何も指定されていないということです。</p>
3975
4743
  </div>
4744
+ <div class="section" id="drilldown-filter">
4745
+ <span id="select-drilldown-filter"></span><h4>7.3.54.4.7.9. <code class="docutils literal"><span class="pre">drilldown_filter</span></code><a class="headerlink" href="#drilldown-filter" title="このヘッドラインへのパーマリンク">¶</a></h4>
4746
+ <div class="versionadded">
4747
+ <p><span class="versionmodified">バージョン 6.0.3 で追加.</span></p>
4748
+ </div>
4749
+ <p>ドリルダウン結果に対するフィルター条件を指定します。</p>
4750
+ <p>構文は <a class="reference internal" href="../grn_expr/script_syntax.html"><span class="doc">スクリプト構文</span></a> です。これは <a class="reference internal" href="#select-filter"><span class="std std-ref">filter</span></a> と同じです。</p>
4751
+ <p>以下は1開始か出現していないタグを除く例です。</p>
4752
+ <p>実行例:</p>
4753
+ <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
4754
+ --limit -1 \
4755
+ --output_columns _id,tag \
4756
+ --drilldown tag \
4757
+ --drilldown_filter &#39;_nsubrecs &gt; 1&#39; \
4758
+ --drilldown_output_columns _key,_nsubrecs
4759
+ # [
4760
+ # [
4761
+ # 0,
4762
+ # 1337566253.89858,
4763
+ # 0.000355720520019531
4764
+ # ],
4765
+ # [
4766
+ # [
4767
+ # [
4768
+ # 5
4769
+ # ],
4770
+ # [
4771
+ # [
4772
+ # &quot;_id&quot;,
4773
+ # &quot;UInt32&quot;
4774
+ # ],
4775
+ # [
4776
+ # &quot;tag&quot;,
4777
+ # &quot;ShortText&quot;
4778
+ # ]
4779
+ # ],
4780
+ # [
4781
+ # 1,
4782
+ # &quot;Hello&quot;
4783
+ # ],
4784
+ # [
4785
+ # 2,
4786
+ # &quot;Groonga&quot;
4787
+ # ],
4788
+ # [
4789
+ # 3,
4790
+ # &quot;Groonga&quot;
4791
+ # ],
4792
+ # [
4793
+ # 4,
4794
+ # &quot;Senna&quot;
4795
+ # ],
4796
+ # [
4797
+ # 5,
4798
+ # &quot;Senna&quot;
4799
+ # ]
4800
+ # ],
4801
+ # [
4802
+ # [
4803
+ # 2
4804
+ # ],
4805
+ # [
4806
+ # [
4807
+ # &quot;_key&quot;,
4808
+ # &quot;ShortText&quot;
4809
+ # ],
4810
+ # [
4811
+ # &quot;_nsubrecs&quot;,
4812
+ # &quot;Int32&quot;
4813
+ # ]
4814
+ # ],
4815
+ # [
4816
+ # &quot;Groonga&quot;,
4817
+ # 2
4818
+ # ],
4819
+ # [
4820
+ # &quot;Senna&quot;,
4821
+ # 2
4822
+ # ]
4823
+ # ]
4824
+ # ]
4825
+ # ]
4826
+ </pre></div>
4827
+ </div>
4828
+ </div>
3976
4829
  </div>
3977
4830
  <div class="section" id="advanced-drilldown-related-parameters">
3978
- <span id="select-advanced-drilldown-related-parameters"></span><h3>7.3.54.4.6. 高度なドリルダウン関連のパラメーター<a class="headerlink" href="#advanced-drilldown-related-parameters" title="このヘッドラインへのパーマリンク">¶</a></h3>
4831
+ <span id="select-advanced-drilldown-related-parameters"></span><h3>7.3.54.4.8. 高度なドリルダウン関連のパラメーター<a class="headerlink" href="#advanced-drilldown-related-parameters" title="このヘッドラインへのパーマリンク">¶</a></h3>
4832
+ <div class="versionadded">
4833
+ <p><span class="versionmodified">バージョン 4.0.8 で追加.</span></p>
4834
+ </div>
3979
4835
  <p><a class="reference internal" href="#select-drilldown"><span class="std std-ref">drilldown</span></a> に複数のグループキーを指定することで複数のドリルダウン結果を取得できます。しかし、すべてのドリルダウンで同じ設定を使う必要があります。例えば、すべてのドリルダウンで同じ <a class="reference internal" href="#select-drilldown-output-columns"><span class="std std-ref">drilldown_output_columns</span></a> の値が使われます。</p>
3980
4836
  <p>以下の引数を使うことで、各ドリルダウンで別々の設定を使うことができます。</p>
3981
4837
  <blockquote>
3982
4838
  <div><ul class="simple">
3983
4839
  <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].keys</span></code></li>
3984
- <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].sortby</span></code></li>
4840
+ <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].sort_keys</span></code></li>
3985
4841
  <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].output_columns</span></code></li>
3986
4842
  <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].offset</span></code></li>
3987
4843
  <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].limit</span></code></li>
3988
4844
  <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].calc_types</span></code></li>
3989
4845
  <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].calc_target</span></code></li>
4846
+ <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].filter</span></code></li>
4847
+ <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].stage=null</span></code></li>
4848
+ <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].flags=COLUMN_SCALAR</span></code></li>
4849
+ <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].type=null</span></code></li>
4850
+ <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].value=null</span></code></li>
4851
+ <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].window.sort_keys=null</span></code></li>
4852
+ <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].window.group_keys=null</span></code></li>
3990
4853
  </ul>
3991
4854
  </div></blockquote>
3992
4855
  <p><code class="docutils literal"><span class="pre">${LABEL}</span></code> は変数です。 <code class="docutils literal"><span class="pre">${LABEL}</span></code> には次の文字を使うことができます。</p>
@@ -4000,6 +4863,16 @@ load --table Items
4000
4863
  <li><code class="docutils literal"><span class="pre">_</span></code></li>
4001
4864
  </ul>
4002
4865
  </div></blockquote>
4866
+ <p><code class="docutils literal"><span class="pre">${NAME}</span></code> は変数です。 <code class="docutils literal"><span class="pre">${NAME}</span></code> には次の文字を使うことができます。</p>
4867
+ <blockquote>
4868
+ <div><ul class="simple">
4869
+ <li><p class="first">アルファベット</p>
4870
+ </li>
4871
+ <li><p class="first">数字</p>
4872
+ </li>
4873
+ <li><code class="docutils literal"><span class="pre">_</span></code></li>
4874
+ </ul>
4875
+ </div></blockquote>
4003
4876
  <div class="admonition note">
4004
4877
  <p class="first admonition-title">注釈</p>
4005
4878
  <p class="last">他の文字も使えますが、これらの文字だけを使ってください。</p>
@@ -4020,11 +4893,27 @@ load --table Items
4020
4893
  <p>以下の引数の使い方は対応する <code class="docutils literal"><span class="pre">drilldown_XXX</span></code> 引数のドキュメントを参照してください。</p>
4021
4894
  <blockquote>
4022
4895
  <div><ul class="simple">
4023
- <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].sortby</span></code>: <a class="reference internal" href="#select-drilldown-sortby"><span class="std std-ref">drilldown_sortby</span></a></li>
4896
+ <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].sort_keys</span></code>: <a class="reference internal" href="#select-drilldown-sort-keys"><span class="std std-ref">drilldown_sort_keys</span></a></li>
4024
4897
  <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].offset</span></code>: <a class="reference internal" href="#select-drilldown-offset"><span class="std std-ref">drilldown_offset</span></a></li>
4025
4898
  <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].limit</span></code>: <a class="reference internal" href="#select-drilldown-limit"><span class="std std-ref">drilldown_limit</span></a></li>
4026
4899
  <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].calc_types</span></code>: <a class="reference internal" href="#select-drilldown-calc-types"><span class="std std-ref">drilldown_calc_types</span></a></li>
4027
4900
  <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].calc_target</span></code>: <a class="reference internal" href="#select-drilldown-calc-target"><span class="std std-ref">drilldown_calc_target</span></a></li>
4901
+ <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].filter</span></code>: <a class="reference internal" href="#select-drilldown-filter"><span class="std std-ref">drilldown_filter</span></a></li>
4902
+ </ul>
4903
+ </div></blockquote>
4904
+ <p>以下の引数の使い方は対応する <code class="docutils literal"><span class="pre">columns[${NAME}].XXX</span></code> 引数のドキュメントを参照してください。</p>
4905
+ <blockquote>
4906
+ <div><ul class="simple">
4907
+ <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].flags=COLUMN_SCALAR</span></code>:
4908
+ <a class="reference internal" href="#select-columns-name-flags"><span class="std std-ref">columns[${NAME}].flags</span></a></li>
4909
+ <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].type=null</span></code>:
4910
+ <a class="reference internal" href="#select-columns-name-type"><span class="std std-ref">columns[${NAME}].type</span></a></li>
4911
+ <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].value=null</span></code>:
4912
+ <a class="reference internal" href="#select-columns-name-value"><span class="std std-ref">columns[${NAME}].value</span></a></li>
4913
+ <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].window.sort_keys=null</span></code>:
4914
+ <a class="reference internal" href="#select-columns-name-window-sort-keys"><span class="std std-ref">columns[${NAME}].window.sort_keys</span></a></li>
4915
+ <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].window.group_keys=null</span></code>:
4916
+ <a class="reference internal" href="#select-columns-name-window-group-keys"><span class="std std-ref">columns[${NAME}].window.group_keys</span></a></li>
4028
4917
  </ul>
4029
4918
  </div></blockquote>
4030
4919
  <p>以下の引数は追加の説明が必要です。</p>
@@ -4032,21 +4921,25 @@ load --table Items
4032
4921
  <div><ul class="simple">
4033
4922
  <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].keys</span></code></li>
4034
4923
  <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].output_columns</span></code></li>
4924
+ <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].stage=null</span></code></li>
4035
4925
  </ul>
4036
4926
  </div></blockquote>
4037
4927
  <p>出力フォーマットは少し違います。これも追加の説明が必要です。</p>
4038
4928
  <div class="section" id="drilldowns-label-keys">
4039
- <span id="select-drilldown-label-keys"></span><h4>7.3.54.4.6.1. <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].keys</span></code><a class="headerlink" href="#drilldowns-label-keys" title="このヘッドラインへのパーマリンク">¶</a></h4>
4929
+ <span id="select-drilldowns-label-keys"></span><h4>7.3.54.4.8.1. <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].keys</span></code><a class="headerlink" href="#drilldowns-label-keys" title="このヘッドラインへのパーマリンク">¶</a></h4>
4930
+ <div class="versionadded">
4931
+ <p><span class="versionmodified">バージョン 4.0.8 で追加.</span></p>
4932
+ </div>
4040
4933
  <p><a class="reference internal" href="#select-drilldown"><span class="std std-ref">drilldown</span></a> は複数のキーを指定して複数のドリルダウンを指定できます。しかし、1つのドリルダウンに複数のキーを指定することはできません。</p>
4041
4934
  <p><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].keys</span></code> は複数のキーを指定して複数のドリルダウンを指定することはできません。しかし、1つのドリルダウンに複数のキーを指定することができます。</p>
4042
- <p>複数のキーを <code class="docutils literal"><span class="pre">,</span></code> 区切りで指定します。</p>
4935
+ <p>複数のキーを「<code class="docutils literal"><span class="pre">,</span></code> 」区切りで指定します。</p>
4043
4936
  <p>以下は <code class="docutils literal"><span class="pre">tag</span></code> カラムと <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値を使った複数キーでのグループ化の例です。</p>
4044
4937
  <p>実行例:</p>
4045
4938
  <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
4046
4939
  --limit -1 \
4047
- --output_column tag,n_likes \
4048
- --drilldown[tag.n_likes].keys tag,n_likes \
4049
- --drilldown[tag.n_likes].output_columns _value.tag,_value.n_likes,_nsubrecs
4940
+ --output_columns tag,n_likes \
4941
+ --drilldowns[tag.n_likes].keys tag,n_likes \
4942
+ --drilldowns[tag.n_likes].output_columns _value.tag,_value.n_likes,_nsubrecs
4050
4943
  # [
4051
4944
  # [
4052
4945
  # 0,
@@ -4060,60 +4953,33 @@ load --table Items
4060
4953
  # ],
4061
4954
  # [
4062
4955
  # [
4063
- # &quot;_id&quot;,
4064
- # &quot;UInt32&quot;
4065
- # ],
4066
- # [
4067
- # &quot;_key&quot;,
4956
+ # &quot;tag&quot;,
4068
4957
  # &quot;ShortText&quot;
4069
4958
  # ],
4070
4959
  # [
4071
- # &quot;content&quot;,
4072
- # &quot;Text&quot;
4073
- # ],
4074
- # [
4075
4960
  # &quot;n_likes&quot;,
4076
4961
  # &quot;UInt32&quot;
4077
- # ],
4078
- # [
4079
- # &quot;tag&quot;,
4080
- # &quot;ShortText&quot;
4081
4962
  # ]
4082
4963
  # ],
4083
4964
  # [
4084
- # 1,
4085
- # &quot;The first post!&quot;,
4086
- # &quot;Welcome! This is my first post!&quot;,
4087
- # 5,
4088
- # &quot;Hello&quot;
4965
+ # &quot;Hello&quot;,
4966
+ # 5
4089
4967
  # ],
4090
4968
  # [
4091
- # 2,
4092
4969
  # &quot;Groonga&quot;,
4093
- # &quot;I started to use Groonga. It&#39;s very fast!&quot;,
4094
- # 10,
4095
- # &quot;Groonga&quot;
4970
+ # 10
4096
4971
  # ],
4097
4972
  # [
4098
- # 3,
4099
- # &quot;Mroonga&quot;,
4100
- # &quot;I also started to use Mroonga. It&#39;s also very fast! Really fast!&quot;,
4101
- # 15,
4102
- # &quot;Groonga&quot;
4973
+ # &quot;Groonga&quot;,
4974
+ # 15
4103
4975
  # ],
4104
4976
  # [
4105
- # 4,
4106
- # &quot;Good-bye Senna&quot;,
4107
- # &quot;I migrated all Senna system!&quot;,
4108
- # 3,
4109
- # &quot;Senna&quot;
4977
+ # &quot;Senna&quot;,
4978
+ # 3
4110
4979
  # ],
4111
4980
  # [
4112
- # 5,
4113
- # &quot;Good-bye Tritonn&quot;,
4114
- # &quot;I also migrated all Tritonn system!&quot;,
4115
- # 3,
4116
- # &quot;Senna&quot;
4981
+ # &quot;Senna&quot;,
4982
+ # 3
4117
4983
  # ]
4118
4984
  # ],
4119
4985
  # {
@@ -4161,20 +5027,23 @@ load --table Items
4161
5027
  # ]
4162
5028
  </pre></div>
4163
5029
  </div>
4164
- <p><code class="docutils literal"><span class="pre">tag.n_likes</span></code> はドリルダウン引数グループのラベルです。グループ化に使ったそれぞれのキーを参照するときは <a class="reference internal" href="#select-drilldown-label-output-columns"><span class="std std-ref">drilldowns[${LABEL}].output_columns</span></a> で <code class="docutils literal"><span class="pre">_value.${KEY_NAME}</span></code> という構文を使います。 <code class="docutils literal"><span class="pre">${KEY_NAME}</span></code> にはグループキーを指定したときに使ったカラム名を使います。この場合は <code class="docutils literal"><span class="pre">${KEY_NAME}</span></code> に <code class="docutils literal"><span class="pre">tag</span></code> と <code class="docutils literal"><span class="pre">n_keys</span></code> を使います。</p>
5030
+ <p><code class="docutils literal"><span class="pre">tag.n_likes</span></code> はドリルダウン引数グループのラベルです。グループ化に使ったそれぞれのキーを参照するときは <a class="reference internal" href="#select-drilldowns-label-output-columns"><span class="std std-ref">drilldowns[${LABEL}].output_columns</span></a> で <code class="docutils literal"><span class="pre">_value.${KEY_NAME}</span></code> という構文を使います。 <code class="docutils literal"><span class="pre">${KEY_NAME}</span></code> にはグループキーを指定したときに使ったカラム名を使います。この場合は <code class="docutils literal"><span class="pre">${KEY_NAME}</span></code> に <code class="docutils literal"><span class="pre">tag</span></code> と <code class="docutils literal"><span class="pre">n_keys</span></code> を使います。</p>
4165
5031
  <p><code class="docutils literal"><span class="pre">--drilldowns[tag].keys</span> <span class="pre">tag</span></code> のように <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].keys</span></code> にキーを1つだけしか指定していない場合は <code class="docutils literal"><span class="pre">_value.${KEY_NAME}</span></code> 構文を使うことはできません。この場合は <code class="docutils literal"><span class="pre">_key</span></code> を使ってください。これは、 <a class="reference internal" href="#select-drilldown-output-columns"><span class="std std-ref">drilldown_output_columns</span></a> と同じルールです。</p>
4166
5032
  </div>
4167
5033
  <div class="section" id="drilldowns-label-output-columns">
4168
- <span id="select-drilldown-label-output-columns"></span><h4>7.3.54.4.6.2. <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].output_columns</span></code><a class="headerlink" href="#drilldowns-label-output-columns" title="このヘッドラインへのパーマリンク">¶</a></h4>
5034
+ <span id="select-drilldowns-label-output-columns"></span><h4>7.3.54.4.8.2. <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].output_columns</span></code><a class="headerlink" href="#drilldowns-label-output-columns" title="このヘッドラインへのパーマリンク">¶</a></h4>
5035
+ <div class="versionadded">
5036
+ <p><span class="versionmodified">バージョン 4.0.8 で追加.</span></p>
5037
+ </div>
4169
5038
  <p><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].output_columns</span></code> はほとんど <a class="reference internal" href="#select-drilldown-output-columns"><span class="std std-ref">drilldown_output_columns</span></a> と同じです。 <a class="reference internal" href="#select-drilldown-output-columns"><span class="std std-ref">drilldown_output_columns</span></a> と <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].output_columns</span></code> の違いはグループキーの参照方法です。</p>
4170
- <p><a class="reference internal" href="#select-drilldown-output-columns"><span class="std std-ref">drilldown_output_columns</span></a> はグループキーを参照するために <code class="docutils literal"><span class="pre">_key</span></code> <a class="reference internal" href="../columns/pseudo.html"><span class="doc">擬似カラム</span></a> を使います。 <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].output_columns</span></code> も <a class="reference internal" href="#select-drilldown-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a> で1つだけしかグループキーを指定していない場合は、グループキーを参照するために <code class="docutils literal"><span class="pre">_key</span></code> <a class="reference internal" href="../columns/pseudo.html"><span class="doc">擬似カラム</span></a> を使います。</p>
5039
+ <p><a class="reference internal" href="#select-drilldown-output-columns"><span class="std std-ref">drilldown_output_columns</span></a> はグループキーを参照するために <code class="docutils literal"><span class="pre">_key</span></code> <a class="reference internal" href="../columns/pseudo.html"><span class="doc">擬似カラム</span></a> を使います。 <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].output_columns</span></code> も <a class="reference internal" href="#select-drilldowns-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a> で1つだけしかグループキーを指定していない場合は、グループキーを参照するために <code class="docutils literal"><span class="pre">_key</span></code> <a class="reference internal" href="../columns/pseudo.html"><span class="doc">擬似カラム</span></a> を使います。</p>
4171
5040
  <p>以下は1つだけ指定したグループキーを参照するために <code class="docutils literal"><span class="pre">_key</span></code> <a class="reference internal" href="../columns/pseudo.html"><span class="doc">擬似カラム</span></a> を使う例です。</p>
4172
5041
  <p>実行例:</p>
4173
5042
  <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
4174
5043
  --limit 0 \
4175
- --output_column _id \
4176
- --drilldown[tag.n_likes].keys tag,n_likes \
4177
- --drilldown[tag.n_likes].output_columns _value.tag,_value.n_likes
5044
+ --output_columns _id \
5045
+ --drilldowns[tag.n_likes].keys tag,n_likes \
5046
+ --drilldowns[tag.n_likes].output_columns _value.tag,_value.n_likes
4178
5047
  # [
4179
5048
  # [
4180
5049
  # 0,
@@ -4190,22 +5059,69 @@ load --table Items
4190
5059
  # [
4191
5060
  # &quot;_id&quot;,
4192
5061
  # &quot;UInt32&quot;
5062
+ # ]
5063
+ # ]
5064
+ # ],
5065
+ # {
5066
+ # &quot;tag.n_likes&quot;: [
5067
+ # [
5068
+ # 4
4193
5069
  # ],
4194
5070
  # [
4195
- # &quot;_key&quot;,
4196
- # &quot;ShortText&quot;
5071
+ # [
5072
+ # &quot;tag&quot;,
5073
+ # &quot;ShortText&quot;
5074
+ # ],
5075
+ # [
5076
+ # &quot;n_likes&quot;,
5077
+ # &quot;UInt32&quot;
5078
+ # ]
4197
5079
  # ],
4198
5080
  # [
4199
- # &quot;content&quot;,
4200
- # &quot;Text&quot;
5081
+ # &quot;Hello&quot;,
5082
+ # 5
4201
5083
  # ],
4202
5084
  # [
4203
- # &quot;n_likes&quot;,
4204
- # &quot;UInt32&quot;
5085
+ # &quot;Groonga&quot;,
5086
+ # 10
4205
5087
  # ],
4206
5088
  # [
4207
- # &quot;tag&quot;,
4208
- # &quot;ShortText&quot;
5089
+ # &quot;Groonga&quot;,
5090
+ # 15
5091
+ # ],
5092
+ # [
5093
+ # &quot;Senna&quot;,
5094
+ # 3
5095
+ # ]
5096
+ # ]
5097
+ # }
5098
+ # ]
5099
+ # ]
5100
+ </pre></div>
5101
+ </div>
5102
+ <p><code class="docutils literal"><span class="pre">drilldownss[${LABEL}].output_columns</span></code> で各グループキーを参照するために <code class="docutils literal"><span class="pre">_key</span></code> <a class="reference internal" href="../columns/pseudo.html"><span class="doc">擬似カラム</span></a> を使うことはできません。 <code class="docutils literal"><span class="pre">_value.${KEY_NAME}</span></code> 構文を使います。 <code class="docutils literal"><span class="pre">${KEY_NAME}</span></code> には <a class="reference internal" href="#select-drilldowns-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a> でグループキーを指定するために使ったカラム名を使います。</p>
5103
+ <p>以下は複数のグループキーを使ったときに <code class="docutils literal"><span class="pre">_value.${KEY_NAME}</span></code> 構文でそれぞれのグループキーを参照する例です。</p>
5104
+ <p>実行例:</p>
5105
+ <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
5106
+ --limit 0 \
5107
+ --output_columns _id \
5108
+ --drilldowns[tag.n_likes].keys tag,n_likes \
5109
+ --drilldowns[tag.n_likes].output_columns _value.tag,_value.n_likes
5110
+ # [
5111
+ # [
5112
+ # 0,
5113
+ # 1337566253.89858,
5114
+ # 0.000355720520019531
5115
+ # ],
5116
+ # [
5117
+ # [
5118
+ # [
5119
+ # 5
5120
+ # ],
5121
+ # [
5122
+ # [
5123
+ # &quot;_id&quot;,
5124
+ # &quot;UInt32&quot;
4209
5125
  # ]
4210
5126
  # ]
4211
5127
  # ],
@@ -4246,14 +5162,65 @@ load --table Items
4246
5162
  # ]
4247
5163
  </pre></div>
4248
5164
  </div>
4249
- <p><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].output_columns</span></code> で各グループキーを参照するために <code class="docutils literal"><span class="pre">_key</span></code> <a class="reference internal" href="../columns/pseudo.html"><span class="doc">擬似カラム</span></a> を使うことはできません。 <code class="docutils literal"><span class="pre">_value.${KEY_NAME}</span></code> 構文を使います。 <code class="docutils literal"><span class="pre">${KEY_NAME}</span></code> には <a class="reference internal" href="#select-drilldown-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a> でグループキーを指定するために使ったカラム名を使います。</p>
4250
- <p>以下は複数のグループキーを使ったときに <code class="docutils literal"><span class="pre">_value.${KEY_NAME}</span></code> 構文でそれぞれのグループキーを参照する例です。</p>
5165
+ <div class="admonition tip">
5166
+ <p class="first admonition-title">ちなみに</p>
5167
+ <p>どうして <code class="docutils literal"><span class="pre">_value.${KEY_NAME}</span></code> 構文なの?</p>
5168
+ <p>これは実装よりの情報です。</p>
5169
+ <p><code class="docutils literal"><span class="pre">_key</span></code> はベクターの値です。このベクターの値はすべてのグループキーから成ります。 <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].output_columns</span></code> で <code class="docutils literal"><span class="pre">_key</span></code> を参照するとこのベクターの値のバイト列を確認することができます。</p>
5170
+ <p><a class="reference internal" href="#select-drilldowns-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a> に複数のグループキーを指定したとき、各グループの値を参照するために <code class="docutils literal"><span class="pre">_value</span></code> にグループのレコードが1つだけ保存されています。そのため、各グループキーを参照するために <code class="docutils literal"><span class="pre">_value.${KEY_NAME}</span></code> 構文を使えます。</p>
5171
+ <p class="last">一方、 <a class="reference internal" href="#select-drilldowns-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a> に1つのグループキーしか指定していない場合は、 <code class="docutils literal"><span class="pre">_value</span></code> にグループのレコードを保存しません。そのため、 <code class="docutils literal"><span class="pre">_value.${KEY_NAME}</span></code> 構文でグループキーを参照できません。</p>
5172
+ </div>
5173
+ </div>
5174
+ <div class="section" id="drilldowns-label-columns-name-stage">
5175
+ <span id="select-drilldowns-label-columns-name-stage"></span><h4>7.3.54.4.8.3. <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].stage</span></code><a class="headerlink" href="#drilldowns-label-columns-name-stage" title="このヘッドラインへのパーマリンク">¶</a></h4>
5176
+ <div class="versionadded">
5177
+ <p><span class="versionmodified">バージョン 6.0.5 で追加.</span></p>
5178
+ </div>
5179
+ <p>どのタイミング(どのステージ)で動的カラムを作るかを指定します。動的カラムを作る場合はこのパラメーターは必須です。</p>
5180
+ <p>指定可能なステージは以下の通りです。</p>
5181
+ <table border="1" class="docutils">
5182
+ <colgroup>
5183
+ <col width="50%" />
5184
+ <col width="50%" />
5185
+ </colgroup>
5186
+ <thead valign="bottom">
5187
+ <tr class="row-odd"><th class="head"><p class="first last">名前</p>
5188
+ </th>
5189
+ <th class="head"><p class="first last">説明</p>
5190
+ </th>
5191
+ </tr>
5192
+ </thead>
5193
+ <tbody valign="top">
5194
+ <tr class="row-even"><td><code class="docutils literal"><span class="pre">initial</span></code></td>
5195
+ <td><p class="first last">最初に動的カラムを作成します。</p>
5196
+ </td>
5197
+ </tr>
5198
+ </tbody>
5199
+ </table>
5200
+ <p>以下は動的カラム作成タイミング入りの各ドリルダウンの処理の流れです。できるだけ後のステージを選ぶべきです。</p>
5201
+ <blockquote>
5202
+ <div><ol class="arabic simple">
5203
+ <li><p class="first"><a class="reference internal" href="#select-drilldowns-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a> 、 <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].calc_types</span></code> 、 <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].calc_target</span></code> を評価します。</p>
5204
+ </li>
5205
+ <li><p class="first"><code class="docutils literal"><span class="pre">initial</span></code> ステージの動的カラムを作ります。すべてのドリルダウン結果レコードはこの動的カラムを持ちます。</p>
5206
+ </li>
5207
+ <li><p class="first"><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].filter</span></code> を評価します。 <code class="docutils literal"><span class="pre">initial</span></code> ステージで作った動的カラムを使えます。</p>
5208
+ </li>
5209
+ <li><p class="first"><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].sort_keys</span></code> 、 <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].offset</span></code> 、 <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].limit</span></code> を評価します。 <code class="docutils literal"><span class="pre">initial</span></code> ステージで作った動的カラムを使えます。</p>
5210
+ </li>
5211
+ <li><p class="first"><a class="reference internal" href="#select-drilldowns-label-output-columns"><span class="std std-ref">drilldowns[${LABEL}].output_columns</span></a> を評価します。 <code class="docutils literal"><span class="pre">initial</span></code> ステージで作った動的カラムを使えます。</p>
5212
+ </li>
5213
+ </ol>
5214
+ </div></blockquote>
5215
+ <p>以下は <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].stage</span></code> の使用例です。この例では <code class="docutils literal"><span class="pre">initial</span></code> ステージで <code class="docutils literal"><span class="pre">is_popular</span></code> カラムを作っています。作成した <code class="docutils literal"><span class="pre">is_popular</span></code> カラムは <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].filter</span></code> と <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].output_columns</span></code> で使えます。</p>
4251
5216
  <p>実行例:</p>
4252
5217
  <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
4253
- --limit 0 \
4254
- --output_column _id \
4255
- --drilldown[tag.n_likes].keys tag,n_likes \
4256
- --drilldown[tag.n_likes].output_columns _value.tag,_value.n_likes
5218
+ --drilldowns[tag].keys tag \
5219
+ --drilldowns[tag].columns[is_popular].stage initial \
5220
+ --drilldowns[tag].columns[is_popular].type Bool \
5221
+ --drilldowns[tag].columns[is_popular].value &#39;_nsubrecs &gt; 1&#39; \
5222
+ --drilldowns[tag].filter is_popular \
5223
+ --drilldowns[tag].output_columns _key,is_popular,_nsubrecs
4257
5224
  # [
4258
5225
  # [
4259
5226
  # 0,
@@ -4286,38 +5253,71 @@ load --table Items
4286
5253
  # &quot;tag&quot;,
4287
5254
  # &quot;ShortText&quot;
4288
5255
  # ]
5256
+ # ],
5257
+ # [
5258
+ # 1,
5259
+ # &quot;The first post!&quot;,
5260
+ # &quot;Welcome! This is my first post!&quot;,
5261
+ # 5,
5262
+ # &quot;Hello&quot;
5263
+ # ],
5264
+ # [
5265
+ # 2,
5266
+ # &quot;Groonga&quot;,
5267
+ # &quot;I started to use Groonga. It&#39;s very fast!&quot;,
5268
+ # 10,
5269
+ # &quot;Groonga&quot;
5270
+ # ],
5271
+ # [
5272
+ # 3,
5273
+ # &quot;Mroonga&quot;,
5274
+ # &quot;I also started to use Mroonga. It&#39;s also very fast! Really fast!&quot;,
5275
+ # 15,
5276
+ # &quot;Groonga&quot;
5277
+ # ],
5278
+ # [
5279
+ # 4,
5280
+ # &quot;Good-bye Senna&quot;,
5281
+ # &quot;I migrated all Senna system!&quot;,
5282
+ # 3,
5283
+ # &quot;Senna&quot;
5284
+ # ],
5285
+ # [
5286
+ # 5,
5287
+ # &quot;Good-bye Tritonn&quot;,
5288
+ # &quot;I also migrated all Tritonn system!&quot;,
5289
+ # 3,
5290
+ # &quot;Senna&quot;
4289
5291
  # ]
4290
5292
  # ],
4291
5293
  # {
4292
- # &quot;tag.n_likes&quot;: [
5294
+ # &quot;tag&quot;: [
4293
5295
  # [
4294
- # 4
5296
+ # 2
4295
5297
  # ],
4296
5298
  # [
4297
5299
  # [
4298
- # &quot;tag&quot;,
5300
+ # &quot;_key&quot;,
4299
5301
  # &quot;ShortText&quot;
4300
5302
  # ],
4301
5303
  # [
4302
- # &quot;n_likes&quot;,
4303
- # &quot;UInt32&quot;
5304
+ # &quot;is_popular&quot;,
5305
+ # &quot;Bool&quot;
5306
+ # ],
5307
+ # [
5308
+ # &quot;_nsubrecs&quot;,
5309
+ # &quot;Int32&quot;
4304
5310
  # ]
4305
5311
  # ],
4306
5312
  # [
4307
- # &quot;Hello&quot;,
4308
- # 5
4309
- # ],
4310
- # [
4311
5313
  # &quot;Groonga&quot;,
4312
- # 10
4313
- # ],
4314
- # [
4315
- # &quot;Groonga&quot;,
4316
- # 15
5314
+ # true,
5315
+ # 2
4317
5316
  # ],
4318
5317
  # [
4319
5318
  # &quot;Senna&quot;,
4320
- # 3
5319
+ # true,
5320
+ # 2
4321
5321
  # ]
4322
5322
  # ]
4323
5323
  # }
@@ -4325,18 +5325,13 @@ load --table Items
4325
5325
  # ]
4326
5326
  </pre></div>
4327
5327
  </div>
4328
- <div class="admonition tip">
4329
- <p class="first admonition-title">ちなみに</p>
4330
- <p>どうして <code class="docutils literal"><span class="pre">_value.${KEY_NAME}</span></code> 構文なの?</p>
4331
- <p>これは実装よりの情報です。</p>
4332
- <p><code class="docutils literal"><span class="pre">_key</span></code> はベクターの値です。このベクターの値はすべてのグループキーから成ります。 <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].output_columns</span></code> で <code class="docutils literal"><span class="pre">_key</span></code> を参照するとこのベクターの値のバイト列を確認することができます。</p>
4333
- <p><a class="reference internal" href="#select-drilldown-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a> に複数のグループキーを指定したとき、各グループの値を参照するために <code class="docutils literal"><span class="pre">_value</span></code> にグループのレコードが1つだけ保存されています。そのため、各グループキーを参照するために <code class="docutils literal"><span class="pre">_value.${KEY_NAME}</span></code> 構文を使えます。</p>
4334
- <p class="last">一方、 <a class="reference internal" href="#select-drilldown-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a> に1つのグループキーしか指定していない場合は、 <code class="docutils literal"><span class="pre">_value</span></code> にグループのレコードを保存しません。そのため、 <code class="docutils literal"><span class="pre">_value.${KEY_NAME}</span></code> 構文でグループキーを参照できません。</p>
5328
+ <div class="versionadded">
5329
+ <p><span class="versionmodified">バージョン 4.0.8 で追加.</span></p>
4335
5330
  </div>
4336
5331
  </div>
4337
5332
  <div class="section" id="output-format-for-drilldowns-label-style">
4338
- <span id="select-drilldown-label-output-format"></span><h4>7.3.54.4.6.3. <code class="docutils literal"><span class="pre">drilldowns[${LABEL}]</span></code> スタイルの出力フォーマット<a class="headerlink" href="#output-format-for-drilldowns-label-style" title="このヘッドラインへのパーマリンク">¶</a></h4>
4339
- <p><a class="reference internal" href="#select-drilldown"><span class="std std-ref">drilldown</span></a> と <a class="reference internal" href="#select-drilldown-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a> には出力フォーマットに違いがあります。 <a class="reference internal" href="#select-drilldown"><span class="std std-ref">drilldown</span></a> は複数のドリルダウン結果を出力するために配列を使います。 <a class="reference internal" href="#select-drilldown-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a> は「ラベル」と「ドリルダウン結果」のペアの集まりを使います。</p>
5333
+ <span id="select-drilldowns-label-output-format"></span><h4>7.3.54.4.8.4. <code class="docutils literal"><span class="pre">drilldowns[${LABEL}]</span></code> スタイルの出力フォーマット<a class="headerlink" href="#output-format-for-drilldowns-label-style" title="このヘッドラインへのパーマリンク">¶</a></h4>
5334
+ <p><a class="reference internal" href="#select-drilldown"><span class="std std-ref">drilldown</span></a> と <a class="reference internal" href="#select-drilldowns-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a> には出力フォーマットに違いがあります。 <a class="reference internal" href="#select-drilldown"><span class="std std-ref">drilldown</span></a> は複数のドリルダウン結果を出力するために配列を使います。 <a class="reference internal" href="#select-drilldowns-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a> は「ラベル」と「ドリルダウン結果」のペアの集まりを使います。</p>
4340
5335
  <p><a class="reference internal" href="#select-drilldown"><span class="std std-ref">drilldown</span></a> の出力フォーマットは以下の通りです:</p>
4341
5336
  <div class="highlight-none"><div class="highlight"><pre><span></span>[
4342
5337
  HEADER,
@@ -4349,7 +5344,7 @@ load --table Items
4349
5344
  ]
4350
5345
  </pre></div>
4351
5346
  </div>
4352
- <p><a class="reference internal" href="#select-drilldown-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a> の出力フォーマットは以下の通りです:</p>
5347
+ <p><a class="reference internal" href="#select-drilldowns-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a> の出力フォーマットは以下の通りです:</p>
4353
5348
  <div class="highlight-none"><div class="highlight"><pre><span></span>[
4354
5349
  HEADER,
4355
5350
  [
@@ -4365,10 +5360,114 @@ load --table Items
4365
5360
  </div>
4366
5361
  </div>
4367
5362
  </div>
5363
+ <div class="section" id="slice-related-parameters">
5364
+ <span id="select-slice-related-parameters"></span><h3>7.3.54.4.9. スライス関連の引数<a class="headerlink" href="#slice-related-parameters" title="このヘッドラインへのパーマリンク">¶</a></h3>
5365
+ <div class="versionadded">
5366
+ <p><span class="versionmodified">バージョン 6.0.3 で追加.</span></p>
5367
+ </div>
5368
+ <p>このセクションではスライス関連のパラメーターについて説明します。</p>
5369
+ <p>TODO</p>
5370
+ <p>スライスのパラメーターは以下の通りです。</p>
5371
+ <table border="1" class="docutils">
5372
+ <colgroup>
5373
+ <col width="50%" />
5374
+ <col width="50%" />
5375
+ </colgroup>
5376
+ <thead valign="bottom">
5377
+ <tr class="row-odd"><th class="head"><p class="first last">名前</p>
5378
+ </th>
5379
+ <th class="head"><p class="first last">必須</p>
5380
+ </th>
5381
+ </tr>
5382
+ </thead>
5383
+ <tbody valign="top">
5384
+ <tr class="row-even"><td><code class="docutils literal"><span class="pre">--slices[${LABEL}].match_columns</span></code></td>
5385
+ <td><p class="first last">省略可能</p>
5386
+ </td>
5387
+ </tr>
5388
+ <tr class="row-odd"><td><code class="docutils literal"><span class="pre">--slices[${LABEL}].query</span></code></td>
5389
+ <td><p class="first last"><code class="docutils literal"><span class="pre">--slices[${LABEL}].filter</span></code> を指定していないときは必須です。</p>
5390
+ </td>
5391
+ </tr>
5392
+ <tr class="row-even"><td><code class="docutils literal"><span class="pre">--slices[${LABEL}].filter</span></code></td>
5393
+ <td><p class="first last"><code class="docutils literal"><span class="pre">--slices[${LABEL}].query</span></code> を指定していないときは必須です。</p>
5394
+ </td>
5395
+ </tr>
5396
+ <tr class="row-odd"><td><code class="docutils literal"><span class="pre">--slices[${LABEL}].query_expander</span></code></td>
5397
+ <td><p class="first last">省略可能</p>
5398
+ </td>
5399
+ </tr>
5400
+ <tr class="row-even"><td><code class="docutils literal"><span class="pre">--slices[${LABEL}].query_flags</span></code></td>
5401
+ <td><p class="first last">省略可能</p>
5402
+ </td>
5403
+ </tr>
5404
+ <tr class="row-odd"><td><code class="docutils literal"><span class="pre">--slices[${LABEL}].sort_keys</span></code></td>
5405
+ <td><p class="first last">省略可能</p>
5406
+ </td>
5407
+ </tr>
5408
+ <tr class="row-even"><td><code class="docutils literal"><span class="pre">--slices[${LABEL}].output_columns</span></code></td>
5409
+ <td><p class="first last">省略可能</p>
5410
+ </td>
5411
+ </tr>
5412
+ <tr class="row-odd"><td><code class="docutils literal"><span class="pre">--slices[${LABEL}].offset</span></code></td>
5413
+ <td><p class="first last">省略可能</p>
5414
+ </td>
5415
+ </tr>
5416
+ <tr class="row-even"><td><code class="docutils literal"><span class="pre">--slices[${LABEL}].limit</span></code></td>
5417
+ <td><p class="first last">省略可能</p>
5418
+ </td>
5419
+ </tr>
5420
+ <tr class="row-odd"><td><code class="docutils literal"><span class="pre">--slices[${LABEL}].table</span></code></td>
5421
+ <td><p class="first last">省略可能</p>
5422
+ </td>
5423
+ </tr>
5424
+ </tbody>
5425
+ </table>
5426
+ <div class="section" id="slices-label-match-columns">
5427
+ <span id="select-slices-label-match-columns"></span><h4>7.3.54.4.9.1. <code class="docutils literal"><span class="pre">slices[${LABEL}].match_columns</span></code><a class="headerlink" href="#slices-label-match-columns" title="このヘッドラインへのパーマリンク">¶</a></h4>
5428
+ <p>TODO</p>
5429
+ </div>
5430
+ <div class="section" id="slices-label-query">
5431
+ <span id="select-slices-label-query"></span><h4>7.3.54.4.9.2. <code class="docutils literal"><span class="pre">slices[${LABEL}].query</span></code><a class="headerlink" href="#slices-label-query" title="このヘッドラインへのパーマリンク">¶</a></h4>
5432
+ <p>TODO</p>
5433
+ </div>
5434
+ <div class="section" id="slices-label-filter">
5435
+ <span id="select-slices-label-filter"></span><h4>7.3.54.4.9.3. <code class="docutils literal"><span class="pre">slices[${LABEL}].filter</span></code><a class="headerlink" href="#slices-label-filter" title="このヘッドラインへのパーマリンク">¶</a></h4>
5436
+ <p>TODO</p>
5437
+ </div>
5438
+ <div class="section" id="slices-label-query-expander">
5439
+ <span id="select-slices-label-query-expander"></span><h4>7.3.54.4.9.4. <code class="docutils literal"><span class="pre">slices[${LABEL}].query_expander</span></code><a class="headerlink" href="#slices-label-query-expander" title="このヘッドラインへのパーマリンク">¶</a></h4>
5440
+ <p>TODO</p>
5441
+ </div>
5442
+ <div class="section" id="slices-label-query-flags">
5443
+ <span id="select-slices-label-query-flags"></span><h4>7.3.54.4.9.5. <code class="docutils literal"><span class="pre">slices[${LABEL}].query_flags</span></code><a class="headerlink" href="#slices-label-query-flags" title="このヘッドラインへのパーマリンク">¶</a></h4>
5444
+ <p>TODO</p>
5445
+ </div>
5446
+ <div class="section" id="slices-label-sort-keys">
5447
+ <span id="select-slices-label-sort-keys"></span><h4>7.3.54.4.9.6. <code class="docutils literal"><span class="pre">slices[${LABEL}].sort_keys</span></code><a class="headerlink" href="#slices-label-sort-keys" title="このヘッドラインへのパーマリンク">¶</a></h4>
5448
+ <p>TODO</p>
5449
+ </div>
5450
+ <div class="section" id="slices-label-output-columns">
5451
+ <span id="select-slices-label-output-columns"></span><h4>7.3.54.4.9.7. <code class="docutils literal"><span class="pre">slices[${LABEL}].output_columns</span></code><a class="headerlink" href="#slices-label-output-columns" title="このヘッドラインへのパーマリンク">¶</a></h4>
5452
+ <p>TODO</p>
5453
+ </div>
5454
+ <div class="section" id="slices-label-offset">
5455
+ <span id="select-slices-label-offset"></span><h4>7.3.54.4.9.8. <code class="docutils literal"><span class="pre">slices[${LABEL}].offset</span></code><a class="headerlink" href="#slices-label-offset" title="このヘッドラインへのパーマリンク">¶</a></h4>
5456
+ <p>TODO</p>
5457
+ </div>
5458
+ <div class="section" id="slices-label-limit">
5459
+ <span id="select-slices-label-limit"></span><h4>7.3.54.4.9.9. <code class="docutils literal"><span class="pre">slices[${LABEL}].limit</span></code><a class="headerlink" href="#slices-label-limit" title="このヘッドラインへのパーマリンク">¶</a></h4>
5460
+ <p>TODO</p>
5461
+ </div>
5462
+ <div class="section" id="slices-label-table">
5463
+ <span id="select-slices-label-table"></span><h4>7.3.54.4.9.10. <code class="docutils literal"><span class="pre">slices[${LABEL}].table</span></code><a class="headerlink" href="#slices-label-table" title="このヘッドラインへのパーマリンク">¶</a></h4>
5464
+ <p>TODO</p>
5465
+ </div>
5466
+ </div>
4368
5467
  <div class="section" id="cache-related-parameter">
4369
- <h3>7.3.54.4.7. キャッシュ関連の引数<a class="headerlink" href="#cache-related-parameter" title="このヘッドラインへのパーマリンク">¶</a></h3>
5468
+ <h3>7.3.54.4.10. キャッシュ関連の引数<a class="headerlink" href="#cache-related-parameter" title="このヘッドラインへのパーマリンク">¶</a></h3>
4370
5469
  <div class="section" id="cache">
4371
- <span id="select-cache"></span><h4>7.3.54.4.7.1. <code class="docutils literal"><span class="pre">cache</span></code><a class="headerlink" href="#cache" title="このヘッドラインへのパーマリンク">¶</a></h4>
5470
+ <span id="select-cache"></span><h4>7.3.54.4.10.1. <code class="docutils literal"><span class="pre">cache</span></code><a class="headerlink" href="#cache" title="このヘッドラインへのパーマリンク">¶</a></h4>
4372
5471
  <p>このクエリーの結果をキャッシュするかどうかを指定します。</p>
4373
5472
  <p>このクエリーの結果がキャッシュしてあると、次に同じクエリーを実行するときはキャッシュを使って高速にレスポンスを返すことができます。</p>
4374
5473
  <p>これは既存のキャッシュされた結果を使うかどうかを指定するものではありません。</p>
@@ -4475,10 +5574,10 @@ load --table Items
4475
5574
  </div>
4476
5575
  </div>
4477
5576
  <div class="section" id="score-related-parameters">
4478
- <h3>7.3.54.4.8. スコアー関連の引数<a class="headerlink" href="#score-related-parameters" title="このヘッドラインへのパーマリンク">¶</a></h3>
5577
+ <h3>7.3.54.4.11. スコアー関連の引数<a class="headerlink" href="#score-related-parameters" title="このヘッドラインへのパーマリンク">¶</a></h3>
4479
5578
  <p>スコアー関連のパラメーターは <code class="docutils literal"><span class="pre">adjuster</span></code> だけです。</p>
4480
5579
  <div class="section" id="adjuster">
4481
- <span id="select-adjuster"></span><h4>7.3.54.4.8.1. <code class="docutils literal"><span class="pre">adjuster</span></code><a class="headerlink" href="#adjuster" title="このヘッドラインへのパーマリンク">¶</a></h4>
5580
+ <span id="select-adjuster"></span><h4>7.3.54.4.11.1. <code class="docutils literal"><span class="pre">adjuster</span></code><a class="headerlink" href="#adjuster" title="このヘッドラインへのパーマリンク">¶</a></h4>
4482
5581
  <p>1つ以上のスコアー調整式(score adjust expression)を指定します。 <code class="docutils literal"><span class="pre">adjuster</span></code> は <code class="docutils literal"><span class="pre">query</span></code> または <code class="docutils literal"><span class="pre">filter</span></code> と一緒に使います。検索しないリクエストでは <code class="docutils literal"><span class="pre">adjuster</span></code> は動きません。</p>
4483
5582
  <p><code class="docutils literal"><span class="pre">adjuster</span></code> を使うと特定のレコードのスコアーを増やすことができます。重要なレコードに高いスコアーをつけるために <code class="docutils literal"><span class="pre">adjuster</span></code> を使えます。</p>
4484
5583
  <p>例えば、 <code class="docutils literal"><span class="pre">groonga</span></code> タグがついたレコードのスコアーを増やすために <code class="docutils literal"><span class="pre">adjuster</span></code> を使えます。</p>
@@ -4875,7 +5974,7 @@ load --table Items
4875
5974
  ]
4876
5975
  </pre></div>
4877
5976
  </div>
4878
- <p><code class="docutils literal"><span class="pre">drilldowns[${LABEL}]</span></code> スタイルのドリルダウンの出力形式については <a class="reference internal" href="#select-drilldown-label-output-format"><span class="std std-ref">drilldowns[${LABEL}] スタイルの出力フォーマット</span></a> も見てください。</p>
5977
+ <p><code class="docutils literal"><span class="pre">drilldownss[${LABEL}]</span></code> スタイルのドリルダウンの出力形式については <a class="reference internal" href="#select-drilldowns-label-output-format"><span class="std std-ref">drilldowns[${LABEL}] スタイルの出力フォーマット</span></a> も見てください。</p>
4879
5978
  </div>
4880
5979
  <div class="section" id="see-also">
4881
5980
  <h2>7.3.54.6. 参考<a class="headerlink" href="#see-also" title="このヘッドラインへのパーマリンク">¶</a></h2>
@@ -4909,6 +6008,8 @@ load --table Items
4909
6008
  <li><a class="reference internal" href="#paging">7.3.54.3.3. ページング</a></li>
4910
6009
  <li><a class="reference internal" href="#the-total-number-of-records">7.3.54.3.4. 全レコード数</a></li>
4911
6010
  <li><a class="reference internal" href="#drilldown">7.3.54.3.5. ドリルダウン</a></li>
6011
+ <li><a class="reference internal" href="#dynamic-column">7.3.54.3.6. 動的カラム</a></li>
6012
+ <li><a class="reference internal" href="#window-function">7.3.54.3.7. ウィンドウ関数</a></li>
4912
6013
  </ul>
4913
6014
  </li>
4914
6015
  <li><a class="reference internal" href="#parameters">7.3.54.4. 引数</a><ul>
@@ -4938,29 +6039,56 @@ load --table Items
4938
6039
  <li><a class="reference internal" href="#scorer">7.3.54.4.4.6. <code class="docutils literal"><span class="pre">scorer</span></code></a></li>
4939
6040
  </ul>
4940
6041
  </li>
4941
- <li><a class="reference internal" href="#drilldown-related-parameters">7.3.54.4.5. ドリルダウン関連の引数</a><ul>
4942
- <li><a class="reference internal" href="#select-drilldown">7.3.54.4.5.1. <code class="docutils literal"><span class="pre">drilldown</span></code></a></li>
4943
- <li><a class="reference internal" href="#drilldown-sortby">7.3.54.4.5.2. <code class="docutils literal"><span class="pre">drilldown_sortby</span></code></a></li>
4944
- <li><a class="reference internal" href="#drilldown-sort-keys">7.3.54.4.5.3. <code class="docutils literal"><span class="pre">drilldown_sort_keys</span></code></a></li>
4945
- <li><a class="reference internal" href="#drilldown-output-columns">7.3.54.4.5.4. <code class="docutils literal"><span class="pre">drilldown_output_columns</span></code></a></li>
4946
- <li><a class="reference internal" href="#drilldown-offset">7.3.54.4.5.5. <code class="docutils literal"><span class="pre">drilldown_offset</span></code></a></li>
4947
- <li><a class="reference internal" href="#drilldown-limit">7.3.54.4.5.6. <code class="docutils literal"><span class="pre">drilldown_limit</span></code></a></li>
4948
- <li><a class="reference internal" href="#drilldown-calc-types">7.3.54.4.5.7. <code class="docutils literal"><span class="pre">drilldown_calc_types</span></code></a></li>
4949
- <li><a class="reference internal" href="#drilldown-calc-target">7.3.54.4.5.8. <code class="docutils literal"><span class="pre">drilldown_calc_target</span></code></a></li>
6042
+ <li><a class="reference internal" href="#dynamic-column-related-parameters">7.3.54.4.5. 動的カラム関連の引数</a><ul>
6043
+ <li><a class="reference internal" href="#columns-name-stage">7.3.54.4.5.1. <code class="docutils literal"><span class="pre">columns[${NAME}].stage</span></code></a></li>
6044
+ <li><a class="reference internal" href="#columns-name-flags">7.3.54.4.5.2. <code class="docutils literal"><span class="pre">columns[${NAME}].flags</span></code></a></li>
6045
+ <li><a class="reference internal" href="#columns-name-type">7.3.54.4.5.3. <code class="docutils literal"><span class="pre">columns[${NAME}].type</span></code></a></li>
6046
+ <li><a class="reference internal" href="#columns-name-value">7.3.54.4.5.4. <code class="docutils literal"><span class="pre">columns[${NAME}].value</span></code></a></li>
6047
+ </ul>
6048
+ </li>
6049
+ <li><a class="reference internal" href="#window-function-related-parameters">7.3.54.4.6. ウィンドウ関数関連の引数</a><ul>
6050
+ <li><a class="reference internal" href="#columns-name-window-sort-keys">7.3.54.4.6.1. <code class="docutils literal"><span class="pre">columns[${NAME}].window.sort_keys</span></code></a></li>
6051
+ <li><a class="reference internal" href="#columns-name-window-group-keys">7.3.54.4.6.2. <code class="docutils literal"><span class="pre">columns[${NAME}].window.group_keys</span></code></a></li>
6052
+ </ul>
6053
+ </li>
6054
+ <li><a class="reference internal" href="#drilldown-related-parameters">7.3.54.4.7. ドリルダウン関連の引数</a><ul>
6055
+ <li><a class="reference internal" href="#select-drilldown">7.3.54.4.7.1. <code class="docutils literal"><span class="pre">drilldown</span></code></a></li>
6056
+ <li><a class="reference internal" href="#drilldown-sortby">7.3.54.4.7.2. <code class="docutils literal"><span class="pre">drilldown_sortby</span></code></a></li>
6057
+ <li><a class="reference internal" href="#drilldown-sort-keys">7.3.54.4.7.3. <code class="docutils literal"><span class="pre">drilldown_sort_keys</span></code></a></li>
6058
+ <li><a class="reference internal" href="#drilldown-output-columns">7.3.54.4.7.4. <code class="docutils literal"><span class="pre">drilldown_output_columns</span></code></a></li>
6059
+ <li><a class="reference internal" href="#drilldown-offset">7.3.54.4.7.5. <code class="docutils literal"><span class="pre">drilldown_offset</span></code></a></li>
6060
+ <li><a class="reference internal" href="#drilldown-limit">7.3.54.4.7.6. <code class="docutils literal"><span class="pre">drilldown_limit</span></code></a></li>
6061
+ <li><a class="reference internal" href="#drilldown-calc-types">7.3.54.4.7.7. <code class="docutils literal"><span class="pre">drilldown_calc_types</span></code></a></li>
6062
+ <li><a class="reference internal" href="#drilldown-calc-target">7.3.54.4.7.8. <code class="docutils literal"><span class="pre">drilldown_calc_target</span></code></a></li>
6063
+ <li><a class="reference internal" href="#drilldown-filter">7.3.54.4.7.9. <code class="docutils literal"><span class="pre">drilldown_filter</span></code></a></li>
6064
+ </ul>
6065
+ </li>
6066
+ <li><a class="reference internal" href="#advanced-drilldown-related-parameters">7.3.54.4.8. 高度なドリルダウン関連のパラメーター</a><ul>
6067
+ <li><a class="reference internal" href="#drilldowns-label-keys">7.3.54.4.8.1. <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].keys</span></code></a></li>
6068
+ <li><a class="reference internal" href="#drilldowns-label-output-columns">7.3.54.4.8.2. <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].output_columns</span></code></a></li>
6069
+ <li><a class="reference internal" href="#drilldowns-label-columns-name-stage">7.3.54.4.8.3. <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].stage</span></code></a></li>
6070
+ <li><a class="reference internal" href="#output-format-for-drilldowns-label-style">7.3.54.4.8.4. <code class="docutils literal"><span class="pre">drilldowns[${LABEL}]</span></code> スタイルの出力フォーマット</a></li>
4950
6071
  </ul>
4951
6072
  </li>
4952
- <li><a class="reference internal" href="#advanced-drilldown-related-parameters">7.3.54.4.6. 高度なドリルダウン関連のパラメーター</a><ul>
4953
- <li><a class="reference internal" href="#drilldowns-label-keys">7.3.54.4.6.1. <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].keys</span></code></a></li>
4954
- <li><a class="reference internal" href="#drilldowns-label-output-columns">7.3.54.4.6.2. <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].output_columns</span></code></a></li>
4955
- <li><a class="reference internal" href="#output-format-for-drilldowns-label-style">7.3.54.4.6.3. <code class="docutils literal"><span class="pre">drilldowns[${LABEL}]</span></code> スタイルの出力フォーマット</a></li>
6073
+ <li><a class="reference internal" href="#slice-related-parameters">7.3.54.4.9. スライス関連の引数</a><ul>
6074
+ <li><a class="reference internal" href="#slices-label-match-columns">7.3.54.4.9.1. <code class="docutils literal"><span class="pre">slices[${LABEL}].match_columns</span></code></a></li>
6075
+ <li><a class="reference internal" href="#slices-label-query">7.3.54.4.9.2. <code class="docutils literal"><span class="pre">slices[${LABEL}].query</span></code></a></li>
6076
+ <li><a class="reference internal" href="#slices-label-filter">7.3.54.4.9.3. <code class="docutils literal"><span class="pre">slices[${LABEL}].filter</span></code></a></li>
6077
+ <li><a class="reference internal" href="#slices-label-query-expander">7.3.54.4.9.4. <code class="docutils literal"><span class="pre">slices[${LABEL}].query_expander</span></code></a></li>
6078
+ <li><a class="reference internal" href="#slices-label-query-flags">7.3.54.4.9.5. <code class="docutils literal"><span class="pre">slices[${LABEL}].query_flags</span></code></a></li>
6079
+ <li><a class="reference internal" href="#slices-label-sort-keys">7.3.54.4.9.6. <code class="docutils literal"><span class="pre">slices[${LABEL}].sort_keys</span></code></a></li>
6080
+ <li><a class="reference internal" href="#slices-label-output-columns">7.3.54.4.9.7. <code class="docutils literal"><span class="pre">slices[${LABEL}].output_columns</span></code></a></li>
6081
+ <li><a class="reference internal" href="#slices-label-offset">7.3.54.4.9.8. <code class="docutils literal"><span class="pre">slices[${LABEL}].offset</span></code></a></li>
6082
+ <li><a class="reference internal" href="#slices-label-limit">7.3.54.4.9.9. <code class="docutils literal"><span class="pre">slices[${LABEL}].limit</span></code></a></li>
6083
+ <li><a class="reference internal" href="#slices-label-table">7.3.54.4.9.10. <code class="docutils literal"><span class="pre">slices[${LABEL}].table</span></code></a></li>
4956
6084
  </ul>
4957
6085
  </li>
4958
- <li><a class="reference internal" href="#cache-related-parameter">7.3.54.4.7. キャッシュ関連の引数</a><ul>
4959
- <li><a class="reference internal" href="#cache">7.3.54.4.7.1. <code class="docutils literal"><span class="pre">cache</span></code></a></li>
6086
+ <li><a class="reference internal" href="#cache-related-parameter">7.3.54.4.10. キャッシュ関連の引数</a><ul>
6087
+ <li><a class="reference internal" href="#cache">7.3.54.4.10.1. <code class="docutils literal"><span class="pre">cache</span></code></a></li>
4960
6088
  </ul>
4961
6089
  </li>
4962
- <li><a class="reference internal" href="#score-related-parameters">7.3.54.4.8. スコアー関連の引数</a><ul>
4963
- <li><a class="reference internal" href="#adjuster">7.3.54.4.8.1. <code class="docutils literal"><span class="pre">adjuster</span></code></a></li>
6090
+ <li><a class="reference internal" href="#score-related-parameters">7.3.54.4.11. スコアー関連の引数</a><ul>
6091
+ <li><a class="reference internal" href="#adjuster">7.3.54.4.11.1. <code class="docutils literal"><span class="pre">adjuster</span></code></a></li>
4964
6092
  </ul>
4965
6093
  </li>
4966
6094
  </ul>
@@ -5010,7 +6138,7 @@ load --table Items
5010
6138
  <li class="right" >
5011
6139
  <a href="schema.html" title="7.3.53. schema"
5012
6140
  >前へ</a> |</li>
5013
- <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v6.1.3ドキュメント</a> &#187;</li>
6141
+ <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v7.0.1-160-gda23e59ドキュメント</a> &#187;</li>
5014
6142
  <li class="nav-item nav-item-1"><a href="../../reference.html" >7. リファレンスマニュアル</a> &#187;</li>
5015
6143
  <li class="nav-item nav-item-2"><a href="../command.html" >7.3. コマンド</a> &#187;</li>
5016
6144
  </ul>