rroonga 2.0.0-x86-mingw32 → 2.0.1-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (357) hide show
  1. data/Rakefile +3 -2
  2. data/ext/groonga/rb-grn-expression.c +4 -3
  3. data/ext/groonga/rb-grn-object.c +13 -0
  4. data/ext/groonga/rb-grn-snippet.c +32 -126
  5. data/ext/groonga/rb-grn.h +14 -11
  6. data/lib/1.8/groonga.so +0 -0
  7. data/lib/1.9/groonga.so +0 -0
  8. data/rroonga-build.rb +1 -1
  9. data/vendor/local/bin/{grntest.exe → groonga-benchmark.exe} +0 -0
  10. data/vendor/local/bin/groonga.exe +0 -0
  11. data/vendor/local/bin/libgroonga-0.dll +0 -0
  12. data/vendor/local/bin/libmecab-1.dll +0 -0
  13. data/vendor/local/bin/libmsgpack-3.dll +0 -0
  14. data/vendor/local/bin/libmsgpackc-2.dll +0 -0
  15. data/vendor/local/bin/mecab.exe +0 -0
  16. data/vendor/local/include/groonga/groonga/plugin.h +1 -1
  17. data/vendor/local/include/groonga/groonga.h +10 -3
  18. data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
  19. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
  20. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
  21. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
  22. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
  23. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
  24. data/vendor/local/lib/libgroonga.a +0 -0
  25. data/vendor/local/lib/libgroonga.dll.a +0 -0
  26. data/vendor/local/lib/libmecab.a +0 -0
  27. data/vendor/local/lib/libmecab.dll.a +0 -0
  28. data/vendor/local/lib/libmsgpack.a +0 -0
  29. data/vendor/local/lib/libmsgpack.dll.a +0 -0
  30. data/vendor/local/lib/libmsgpackc.a +0 -0
  31. data/vendor/local/lib/libmsgpackc.dll.a +0 -0
  32. data/vendor/local/lib/pkgconfig/groonga.pc +2 -2
  33. data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
  34. data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
  35. data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
  36. data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
  37. data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
  38. data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
  39. data/vendor/local/share/doc/groonga/en/html/_sources/commands/suggest.txt +19 -0
  40. data/vendor/local/share/doc/groonga/en/html/_sources/community.txt +2 -2
  41. data/vendor/local/share/doc/groonga/en/html/_sources/install.txt +72 -8
  42. data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +45 -1
  43. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/data.txt +112 -33
  44. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/introduction.txt +109 -99
  45. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/network.txt +76 -40
  46. data/vendor/local/share/doc/groonga/en/html/_sources/type.txt +30 -21
  47. data/vendor/local/share/doc/groonga/en/html/_static/favicon.ico +0 -0
  48. data/vendor/local/share/doc/groonga/en/html/_static/groonga.css +309 -101
  49. data/vendor/local/share/doc/groonga/en/html/_static/jquery.js +4 -154
  50. data/vendor/local/share/doc/groonga/en/html/_static/logo.png +0 -0
  51. data/vendor/local/share/doc/groonga/en/html/_static/navigation-bar.png +0 -0
  52. data/vendor/local/share/doc/groonga/en/html/_static/underscore.js +29 -21
  53. data/vendor/local/share/doc/groonga/en/html/characteristic.html +1 -1
  54. data/vendor/local/share/doc/groonga/en/html/command_version.html +1 -1
  55. data/vendor/local/share/doc/groonga/en/html/commands/cache_limit.html +1 -1
  56. data/vendor/local/share/doc/groonga/en/html/commands/check.html +1 -1
  57. data/vendor/local/share/doc/groonga/en/html/commands/clearlock.html +1 -1
  58. data/vendor/local/share/doc/groonga/en/html/commands/column_create.html +1 -1
  59. data/vendor/local/share/doc/groonga/en/html/commands/column_list.html +1 -1
  60. data/vendor/local/share/doc/groonga/en/html/commands/column_remove.html +1 -1
  61. data/vendor/local/share/doc/groonga/en/html/commands/define_selector.html +1 -1
  62. data/vendor/local/share/doc/groonga/en/html/commands/defrag.html +1 -1
  63. data/vendor/local/share/doc/groonga/en/html/commands/delete.html +1 -1
  64. data/vendor/local/share/doc/groonga/en/html/commands/dump.html +1 -1
  65. data/vendor/local/share/doc/groonga/en/html/commands/load.html +1 -1
  66. data/vendor/local/share/doc/groonga/en/html/commands/log_level.html +1 -1
  67. data/vendor/local/share/doc/groonga/en/html/commands/log_put.html +1 -1
  68. data/vendor/local/share/doc/groonga/en/html/commands/log_reopen.html +1 -1
  69. data/vendor/local/share/doc/groonga/en/html/commands/quit.html +1 -1
  70. data/vendor/local/share/doc/groonga/en/html/commands/select.html +1 -1
  71. data/vendor/local/share/doc/groonga/en/html/commands/shutdown.html +1 -1
  72. data/vendor/local/share/doc/groonga/en/html/commands/status.html +1 -1
  73. data/vendor/local/share/doc/groonga/en/html/commands/suggest.html +21 -1
  74. data/vendor/local/share/doc/groonga/en/html/commands/table_create.html +1 -1
  75. data/vendor/local/share/doc/groonga/en/html/commands/table_list.html +1 -1
  76. data/vendor/local/share/doc/groonga/en/html/commands/table_remove.html +1 -1
  77. data/vendor/local/share/doc/groonga/en/html/commands/view_add.html +1 -1
  78. data/vendor/local/share/doc/groonga/en/html/commands.html +1 -1
  79. data/vendor/local/share/doc/groonga/en/html/community.html +3 -3
  80. data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +1 -1
  81. data/vendor/local/share/doc/groonga/en/html/contribution/development/document.html +1 -1
  82. data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +1 -1
  83. data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +1 -1
  84. data/vendor/local/share/doc/groonga/en/html/contribution/development.html +1 -1
  85. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +1 -1
  86. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +1 -1
  87. data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +1 -1
  88. data/vendor/local/share/doc/groonga/en/html/contribution/report.html +1 -1
  89. data/vendor/local/share/doc/groonga/en/html/contribution.html +1 -1
  90. data/vendor/local/share/doc/groonga/en/html/executables/grnslap.html +1 -1
  91. data/vendor/local/share/doc/groonga/en/html/executables/grntest.html +1 -1
  92. data/vendor/local/share/doc/groonga/en/html/executables/groonga-http.html +1 -1
  93. data/vendor/local/share/doc/groonga/en/html/executables/groonga-suggest-create-dataset.html +1 -1
  94. data/vendor/local/share/doc/groonga/en/html/executables/groonga.html +1 -1
  95. data/vendor/local/share/doc/groonga/en/html/executables.html +1 -1
  96. data/vendor/local/share/doc/groonga/en/html/expr.html +1 -1
  97. data/vendor/local/share/doc/groonga/en/html/functions/edit_distance.html +1 -1
  98. data/vendor/local/share/doc/groonga/en/html/functions/geo_distance.html +1 -1
  99. data/vendor/local/share/doc/groonga/en/html/functions/geo_in_circle.html +1 -1
  100. data/vendor/local/share/doc/groonga/en/html/functions/geo_in_rectangle.html +1 -1
  101. data/vendor/local/share/doc/groonga/en/html/functions/now.html +1 -1
  102. data/vendor/local/share/doc/groonga/en/html/functions/rand.html +1 -1
  103. data/vendor/local/share/doc/groonga/en/html/functions.html +1 -1
  104. data/vendor/local/share/doc/groonga/en/html/genindex.html +1 -1
  105. data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +1 -1
  106. data/vendor/local/share/doc/groonga/en/html/index.html +25 -18
  107. data/vendor/local/share/doc/groonga/en/html/indexing.html +1 -1
  108. data/vendor/local/share/doc/groonga/en/html/install.html +59 -9
  109. data/vendor/local/share/doc/groonga/en/html/limitations.html +1 -1
  110. data/vendor/local/share/doc/groonga/en/html/log.html +1 -1
  111. data/vendor/local/share/doc/groonga/en/html/news/0.x.html +1 -1
  112. data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +1 -1
  113. data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +1 -1
  114. data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +1 -1
  115. data/vendor/local/share/doc/groonga/en/html/news/senna.html +1 -1
  116. data/vendor/local/share/doc/groonga/en/html/news.html +66 -15
  117. data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
  118. data/vendor/local/share/doc/groonga/en/html/output.html +1 -1
  119. data/vendor/local/share/doc/groonga/en/html/pseudo_column.html +1 -1
  120. data/vendor/local/share/doc/groonga/en/html/reference.html +1 -1
  121. data/vendor/local/share/doc/groonga/en/html/search.html +1 -1
  122. data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
  123. data/vendor/local/share/doc/groonga/en/html/spec/search.html +1 -1
  124. data/vendor/local/share/doc/groonga/en/html/spec.html +1 -1
  125. data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +1 -1
  126. data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +1 -1
  127. data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +1 -1
  128. data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +1 -1
  129. data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +1 -1
  130. data/vendor/local/share/doc/groonga/en/html/suggest.html +1 -1
  131. data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +1 -1
  132. data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +1 -1
  133. data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +141 -53
  134. data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +1 -1
  135. data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +1 -1
  136. data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +112 -106
  137. data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +1 -1
  138. data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +1 -1
  139. data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +2 -2
  140. data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +92 -58
  141. data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +1 -1
  142. data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +1 -1
  143. data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +5 -5
  144. data/vendor/local/share/doc/groonga/en/html/tutorial.html +21 -14
  145. data/vendor/local/share/doc/groonga/en/html/type.html +30 -22
  146. data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
  147. data/vendor/local/share/doc/groonga/ja/html/_sources/commands/suggest.txt +19 -0
  148. data/vendor/local/share/doc/groonga/ja/html/_sources/community.txt +2 -2
  149. data/vendor/local/share/doc/groonga/ja/html/_sources/install.txt +72 -8
  150. data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +45 -1
  151. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/data.txt +112 -33
  152. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/introduction.txt +109 -99
  153. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/network.txt +76 -40
  154. data/vendor/local/share/doc/groonga/ja/html/_sources/type.txt +30 -21
  155. data/vendor/local/share/doc/groonga/ja/html/_static/favicon.ico +0 -0
  156. data/vendor/local/share/doc/groonga/ja/html/_static/groonga.css +309 -101
  157. data/vendor/local/share/doc/groonga/ja/html/_static/jquery.js +4 -154
  158. data/vendor/local/share/doc/groonga/ja/html/_static/logo.png +0 -0
  159. data/vendor/local/share/doc/groonga/ja/html/_static/navigation-bar.png +0 -0
  160. data/vendor/local/share/doc/groonga/ja/html/_static/underscore.js +29 -21
  161. data/vendor/local/share/doc/groonga/ja/html/characteristic.html +1 -1
  162. data/vendor/local/share/doc/groonga/ja/html/command_version.html +1 -1
  163. data/vendor/local/share/doc/groonga/ja/html/commands/cache_limit.html +1 -1
  164. data/vendor/local/share/doc/groonga/ja/html/commands/check.html +1 -1
  165. data/vendor/local/share/doc/groonga/ja/html/commands/clearlock.html +1 -1
  166. data/vendor/local/share/doc/groonga/ja/html/commands/column_create.html +1 -1
  167. data/vendor/local/share/doc/groonga/ja/html/commands/column_list.html +1 -1
  168. data/vendor/local/share/doc/groonga/ja/html/commands/column_remove.html +1 -1
  169. data/vendor/local/share/doc/groonga/ja/html/commands/define_selector.html +1 -1
  170. data/vendor/local/share/doc/groonga/ja/html/commands/defrag.html +1 -1
  171. data/vendor/local/share/doc/groonga/ja/html/commands/delete.html +1 -1
  172. data/vendor/local/share/doc/groonga/ja/html/commands/dump.html +1 -1
  173. data/vendor/local/share/doc/groonga/ja/html/commands/load.html +1 -1
  174. data/vendor/local/share/doc/groonga/ja/html/commands/log_level.html +1 -1
  175. data/vendor/local/share/doc/groonga/ja/html/commands/log_put.html +1 -1
  176. data/vendor/local/share/doc/groonga/ja/html/commands/log_reopen.html +1 -1
  177. data/vendor/local/share/doc/groonga/ja/html/commands/quit.html +1 -1
  178. data/vendor/local/share/doc/groonga/ja/html/commands/select.html +1 -1
  179. data/vendor/local/share/doc/groonga/ja/html/commands/shutdown.html +1 -1
  180. data/vendor/local/share/doc/groonga/ja/html/commands/status.html +1 -1
  181. data/vendor/local/share/doc/groonga/ja/html/commands/suggest.html +19 -1
  182. data/vendor/local/share/doc/groonga/ja/html/commands/table_create.html +1 -1
  183. data/vendor/local/share/doc/groonga/ja/html/commands/table_list.html +1 -1
  184. data/vendor/local/share/doc/groonga/ja/html/commands/table_remove.html +1 -1
  185. data/vendor/local/share/doc/groonga/ja/html/commands/view_add.html +1 -1
  186. data/vendor/local/share/doc/groonga/ja/html/commands.html +1 -1
  187. data/vendor/local/share/doc/groonga/ja/html/community.html +3 -3
  188. data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +1 -1
  189. data/vendor/local/share/doc/groonga/ja/html/contribution/development/document.html +1 -1
  190. data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +1 -1
  191. data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +1 -1
  192. data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +1 -1
  193. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +1 -1
  194. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +1 -1
  195. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +1 -1
  196. data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +1 -1
  197. data/vendor/local/share/doc/groonga/ja/html/contribution.html +1 -1
  198. data/vendor/local/share/doc/groonga/ja/html/executables/grnslap.html +1 -1
  199. data/vendor/local/share/doc/groonga/ja/html/executables/grntest.html +1 -1
  200. data/vendor/local/share/doc/groonga/ja/html/executables/groonga-http.html +1 -1
  201. data/vendor/local/share/doc/groonga/ja/html/executables/groonga-suggest-create-dataset.html +1 -1
  202. data/vendor/local/share/doc/groonga/ja/html/executables/groonga.html +1 -1
  203. data/vendor/local/share/doc/groonga/ja/html/executables.html +1 -1
  204. data/vendor/local/share/doc/groonga/ja/html/expr.html +1 -1
  205. data/vendor/local/share/doc/groonga/ja/html/functions/edit_distance.html +1 -1
  206. data/vendor/local/share/doc/groonga/ja/html/functions/geo_distance.html +1 -1
  207. data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_circle.html +1 -1
  208. data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_rectangle.html +1 -1
  209. data/vendor/local/share/doc/groonga/ja/html/functions/now.html +1 -1
  210. data/vendor/local/share/doc/groonga/ja/html/functions/rand.html +1 -1
  211. data/vendor/local/share/doc/groonga/ja/html/functions.html +1 -1
  212. data/vendor/local/share/doc/groonga/ja/html/genindex.html +1 -1
  213. data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +1 -1
  214. data/vendor/local/share/doc/groonga/ja/html/index.html +25 -18
  215. data/vendor/local/share/doc/groonga/ja/html/indexing.html +1 -1
  216. data/vendor/local/share/doc/groonga/ja/html/install.html +72 -22
  217. data/vendor/local/share/doc/groonga/ja/html/limitations.html +1 -1
  218. data/vendor/local/share/doc/groonga/ja/html/log.html +1 -1
  219. data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +1 -1
  220. data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +1 -1
  221. data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +1 -1
  222. data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +1 -1
  223. data/vendor/local/share/doc/groonga/ja/html/news/senna.html +1 -1
  224. data/vendor/local/share/doc/groonga/ja/html/news.html +60 -14
  225. data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
  226. data/vendor/local/share/doc/groonga/ja/html/output.html +1 -1
  227. data/vendor/local/share/doc/groonga/ja/html/pseudo_column.html +1 -1
  228. data/vendor/local/share/doc/groonga/ja/html/reference.html +1 -1
  229. data/vendor/local/share/doc/groonga/ja/html/search.html +1 -1
  230. data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
  231. data/vendor/local/share/doc/groonga/ja/html/spec/search.html +1 -1
  232. data/vendor/local/share/doc/groonga/ja/html/spec.html +1 -1
  233. data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +1 -1
  234. data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +1 -1
  235. data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +1 -1
  236. data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +1 -1
  237. data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +1 -1
  238. data/vendor/local/share/doc/groonga/ja/html/suggest.html +1 -1
  239. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +1 -1
  240. data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +1 -1
  241. data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +141 -53
  242. data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +1 -1
  243. data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +1 -1
  244. data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +108 -102
  245. data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +1 -1
  246. data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +1 -1
  247. data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +2 -2
  248. data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +92 -55
  249. data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +1 -1
  250. data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +1 -1
  251. data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +5 -5
  252. data/vendor/local/share/doc/groonga/ja/html/tutorial.html +21 -14
  253. data/vendor/local/share/doc/groonga/ja/html/type.html +30 -22
  254. data/vendor/local/share/doc/groonga/source/commands/suggest.txt +19 -0
  255. data/vendor/local/share/doc/groonga/source/community.txt +2 -2
  256. data/vendor/local/share/doc/groonga/source/example/tutorial/data-1.log +2 -15
  257. data/vendor/local/share/doc/groonga/source/example/tutorial/data-2.log +11 -7
  258. data/vendor/local/share/doc/groonga/source/example/tutorial/data-3.log +13 -7
  259. data/vendor/local/share/doc/groonga/source/example/tutorial/data-4.log +13 -0
  260. data/vendor/local/share/doc/groonga/source/example/tutorial/data-5.log +13 -0
  261. data/vendor/local/share/doc/groonga/source/example/tutorial/data-6.log +13 -0
  262. data/vendor/local/share/doc/groonga/source/example/tutorial/data-7.log +10 -0
  263. data/vendor/local/share/doc/groonga/source/example/tutorial/data-8.log +10 -0
  264. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-1.log +0 -2
  265. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-10.log +2 -2
  266. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-11.log +2 -2
  267. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-12.log +2 -2
  268. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-13.log +2 -2
  269. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-14.log +2 -6
  270. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-15.log +6 -2
  271. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-16.log +2 -2
  272. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-17.log +2 -2
  273. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-18.log +5 -0
  274. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-2.log +3 -2
  275. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-3.log +2 -2
  276. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-4.log +1 -3
  277. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-5.log +4 -2
  278. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-6.log +13 -2
  279. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-7.log +2 -13
  280. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-8.log +2 -2
  281. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-9.log +2 -2
  282. data/vendor/local/share/doc/groonga/source/example/tutorial/network-1.log +1 -1
  283. data/vendor/local/share/doc/groonga/source/example/tutorial/network-3.log +6 -6
  284. data/vendor/local/share/doc/groonga/source/install.txt +72 -8
  285. data/vendor/local/share/doc/groonga/source/news.txt +45 -1
  286. data/vendor/local/share/doc/groonga/source/tutorial/data.txt +112 -33
  287. data/vendor/local/share/doc/groonga/source/tutorial/introduction.txt +109 -99
  288. data/vendor/local/share/doc/groonga/source/tutorial/network.txt +76 -40
  289. data/vendor/local/share/doc/groonga/source/type.txt +30 -21
  290. data/vendor/local/share/groonga/html/admin/css/admin.css +1 -1
  291. data/vendor/local/share/groonga/html/admin/favicon.ico +0 -0
  292. data/vendor/local/share/groonga/html/admin/favicon.png +0 -0
  293. data/vendor/local/share/groonga/html/admin/favicon.svg +107 -547
  294. data/vendor/local/share/groonga/html/admin/images/groonga.png +0 -0
  295. data/vendor/local/share/groonga/html/admin/index.html +1 -1
  296. data/vendor/local/share/groonga/images/logo/groonga-icon-foreground-white.png +0 -0
  297. data/vendor/local/share/groonga/images/logo/groonga-icon-foreground-white.svg +118 -0
  298. data/vendor/local/share/groonga/images/logo/groonga-icon-full-size.png +0 -0
  299. data/vendor/local/share/groonga/images/logo/groonga-icon-full-size.svg +97 -0
  300. data/vendor/local/share/groonga/images/logo/groonga-icon.png +0 -0
  301. data/vendor/local/share/groonga/images/logo/groonga-icon.svg +93 -0
  302. data/vendor/local/share/groonga/images/logo/groonga-logo-foreground-white.png +0 -0
  303. data/vendor/local/share/groonga/images/logo/groonga-logo-foreground-white.svg +108 -0
  304. data/vendor/local/share/groonga/images/logo/groonga-logo.png +0 -0
  305. data/vendor/local/share/groonga/images/logo/groonga-logo.svg +118 -0
  306. data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-bar-foreground-white.png +0 -0
  307. data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-bar-foreground-white.svg +170 -0
  308. data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-bar.png +0 -0
  309. data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-bar.svg +186 -0
  310. data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-foreground-white.png +0 -0
  311. data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-foreground-white.svg +183 -0
  312. data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-large.png +0 -0
  313. data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-large.svg +179 -0
  314. data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner.png +0 -0
  315. data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner.svg +201 -0
  316. data/vendor/local/share/groonga/images/logo/mroonga-icon-foreground-white.png +0 -0
  317. data/vendor/local/share/groonga/images/logo/mroonga-icon-foreground-white.svg +106 -0
  318. data/vendor/local/share/groonga/images/logo/mroonga-icon-full-size.png +0 -0
  319. data/vendor/local/share/groonga/images/logo/mroonga-icon-full-size.svg +97 -0
  320. data/vendor/local/share/groonga/images/logo/mroonga-icon.png +0 -0
  321. data/vendor/local/share/groonga/images/logo/mroonga-icon.svg +93 -0
  322. data/vendor/local/share/groonga/images/logo/mroonga-logo-foreground-white.png +0 -0
  323. data/vendor/local/share/groonga/images/logo/mroonga-logo-foreground-white.svg +122 -0
  324. data/vendor/local/share/groonga/images/logo/mroonga-logo.png +0 -0
  325. data/vendor/local/share/groonga/images/logo/mroonga-logo.svg +106 -0
  326. data/vendor/local/share/groonga/images/logo/nroonga-icon-foreground-white.png +0 -0
  327. data/vendor/local/share/groonga/images/logo/nroonga-icon-foreground-white.svg +106 -0
  328. data/vendor/local/share/groonga/images/logo/nroonga-icon-full-size.png +0 -0
  329. data/vendor/local/share/groonga/images/logo/nroonga-icon-full-size.svg +107 -0
  330. data/vendor/local/share/groonga/images/logo/nroonga-icon.png +0 -0
  331. data/vendor/local/share/groonga/images/logo/nroonga-icon.svg +93 -0
  332. data/vendor/local/share/groonga/images/logo/nroonga-logo-foreground-white.png +0 -0
  333. data/vendor/local/share/groonga/images/logo/nroonga-logo-foreground-white.svg +122 -0
  334. data/vendor/local/share/groonga/images/logo/nroonga-logo.png +0 -0
  335. data/vendor/local/share/groonga/images/logo/nroonga-logo.svg +117 -0
  336. data/vendor/local/share/groonga/images/logo/rroonga-icon-foreground-white.png +0 -0
  337. data/vendor/local/share/groonga/images/logo/rroonga-icon-foreground-white.svg +106 -0
  338. data/vendor/local/share/groonga/images/logo/rroonga-icon-full-size.png +0 -0
  339. data/vendor/local/share/groonga/images/logo/rroonga-icon-full-size.svg +107 -0
  340. data/vendor/local/share/groonga/images/logo/rroonga-icon.png +0 -0
  341. data/vendor/local/share/groonga/images/logo/rroonga-icon.svg +93 -0
  342. data/vendor/local/share/groonga/images/logo/rroonga-logo-foreground-white.png +0 -0
  343. data/vendor/local/share/groonga/images/logo/rroonga-logo-foreground-white.svg +122 -0
  344. data/vendor/local/share/groonga/images/logo/rroonga-logo.png +0 -0
  345. data/vendor/local/share/groonga/images/logo/rroonga-logo.svg +117 -0
  346. data/vendor/local/share/man/ja/man1/groonga.1 +510 -214
  347. data/vendor/local/share/man/man1/groonga.1 +510 -211
  348. metadata +62 -15
  349. data/vendor/local/bin/groonga-query-log-analyzer +0 -1419
  350. data/vendor/local/share/doc/groonga/en/html/_static/default.css +0 -278
  351. data/vendor/local/share/doc/groonga/en/html/_static/footer-bar.png +0 -0
  352. data/vendor/local/share/doc/groonga/en/html/_static/menu-header.png +0 -0
  353. data/vendor/local/share/doc/groonga/en/html/_static/sidebar.js +0 -151
  354. data/vendor/local/share/doc/groonga/ja/html/_static/default.css +0 -278
  355. data/vendor/local/share/doc/groonga/ja/html/_static/footer-bar.png +0 -0
  356. data/vendor/local/share/doc/groonga/ja/html/_static/menu-header.png +0 -0
  357. data/vendor/local/share/doc/groonga/ja/html/_static/sidebar.js +0 -151
@@ -45,7 +45,7 @@
45
45
 
46
46
  <div class="other-language-links">
47
47
  <ul>
48
- <li><a href="../../../en/html/spec/search.html"><img src="../_static/us.png" alt="English"></a></li>
48
+ <li><a href="../../../en/html/spec/search.html"><img src="../_static/us.png" alt="English">English page</a></li>
49
49
  </ul>
50
50
  </div>
51
51
  </div>
@@ -44,7 +44,7 @@
44
44
 
45
45
  <div class="other-language-links">
46
46
  <ul>
47
- <li><a href="../../en/html/spec.html"><img src="_static/us.png" alt="English"></a></li>
47
+ <li><a href="../../en/html/spec.html"><img src="_static/us.png" alt="English">English page</a></li>
48
48
  </ul>
49
49
  </div>
50
50
  </div>
@@ -45,7 +45,7 @@
45
45
 
46
46
  <div class="other-language-links">
47
47
  <ul>
48
- <li><a href="../../../en/html/suggest/completion.html"><img src="../_static/us.png" alt="English"></a></li>
48
+ <li><a href="../../../en/html/suggest/completion.html"><img src="../_static/us.png" alt="English">English page</a></li>
49
49
  </ul>
50
50
  </div>
51
51
  </div>
@@ -45,7 +45,7 @@
45
45
 
46
46
  <div class="other-language-links">
47
47
  <ul>
48
- <li><a href="../../../en/html/suggest/correction.html"><img src="../_static/us.png" alt="English"></a></li>
48
+ <li><a href="../../../en/html/suggest/correction.html"><img src="../_static/us.png" alt="English">English page</a></li>
49
49
  </ul>
50
50
  </div>
51
51
  </div>
@@ -45,7 +45,7 @@
45
45
 
46
46
  <div class="other-language-links">
47
47
  <ul>
48
- <li><a href="../../../en/html/suggest/introduction.html"><img src="../_static/us.png" alt="English"></a></li>
48
+ <li><a href="../../../en/html/suggest/introduction.html"><img src="../_static/us.png" alt="English">English page</a></li>
49
49
  </ul>
50
50
  </div>
51
51
  </div>
@@ -45,7 +45,7 @@
45
45
 
46
46
  <div class="other-language-links">
47
47
  <ul>
48
- <li><a href="../../../en/html/suggest/suggestion.html"><img src="../_static/us.png" alt="English"></a></li>
48
+ <li><a href="../../../en/html/suggest/suggestion.html"><img src="../_static/us.png" alt="English">English page</a></li>
49
49
  </ul>
50
50
  </div>
51
51
  </div>
@@ -45,7 +45,7 @@
45
45
 
46
46
  <div class="other-language-links">
47
47
  <ul>
48
- <li><a href="../../../en/html/suggest/tutorial.html"><img src="../_static/us.png" alt="English"></a></li>
48
+ <li><a href="../../../en/html/suggest/tutorial.html"><img src="../_static/us.png" alt="English">English page</a></li>
49
49
  </ul>
50
50
  </div>
51
51
  </div>
@@ -44,7 +44,7 @@
44
44
 
45
45
  <div class="other-language-links">
46
46
  <ul>
47
- <li><a href="../../en/html/suggest.html"><img src="_static/us.png" alt="English"></a></li>
47
+ <li><a href="../../en/html/suggest.html"><img src="_static/us.png" alt="English">English page</a></li>
48
48
  </ul>
49
49
  </div>
50
50
  </div>
@@ -45,7 +45,7 @@
45
45
 
46
46
  <div class="other-language-links">
47
47
  <ul>
48
- <li><a href="../../../en/html/troubleshooting/different_results_with_the_same_keyword.html"><img src="../_static/us.png" alt="English"></a></li>
48
+ <li><a href="../../../en/html/troubleshooting/different_results_with_the_same_keyword.html"><img src="../_static/us.png" alt="English">English page</a></li>
49
49
  </ul>
50
50
  </div>
51
51
  </div>
@@ -44,7 +44,7 @@
44
44
 
45
45
  <div class="other-language-links">
46
46
  <ul>
47
- <li><a href="../../en/html/troubleshooting.html"><img src="_static/us.png" alt="English"></a></li>
47
+ <li><a href="../../en/html/troubleshooting.html"><img src="_static/us.png" alt="English">English page</a></li>
48
48
  </ul>
49
49
  </div>
50
50
  </div>
@@ -9,7 +9,7 @@
9
9
  <head>
10
10
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
11
11
 
12
- <title>4.3. さまざまな種類をもったデータの保存 &mdash; groonga v2.0.0ドキュメント</title>
12
+ <title>4.3. いろいろなデータの保存 &mdash; groonga v2.0.0ドキュメント</title>
13
13
 
14
14
  <link rel="stylesheet" href="../_static/groonga.css" type="text/css" />
15
15
  <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
@@ -31,7 +31,7 @@
31
31
  <link rel="top" title="groonga v2.0.0ドキュメント" href="../index.html" />
32
32
  <link rel="up" title="4. チュートリアル" href="../tutorial.html" />
33
33
  <link rel="next" title="4.4. さまざまな検索条件の指定" href="search.html" />
34
- <link rel="prev" title="4.2. ネットワークを通じた利用" href="network.html" />
34
+ <link rel="prev" title="4.2. リモートアクセス" href="network.html" />
35
35
  </head>
36
36
  <body>
37
37
  <div class="header">
@@ -45,7 +45,7 @@
45
45
 
46
46
  <div class="other-language-links">
47
47
  <ul>
48
- <li><a href="../../../en/html/tutorial/data.html"><img src="../_static/us.png" alt="English"></a></li>
48
+ <li><a href="../../../en/html/tutorial/data.html"><img src="../_static/us.png" alt="English">English page</a></li>
49
49
  </ul>
50
50
  </div>
51
51
  </div>
@@ -61,7 +61,7 @@
61
61
  <a href="search.html" title="4.4. さまざまな検索条件の指定"
62
62
  accesskey="N">次へ</a> |</li>
63
63
  <li class="right" >
64
- <a href="network.html" title="4.2. ネットワークを通じた利用"
64
+ <a href="network.html" title="4.2. リモートアクセス"
65
65
  accesskey="P">前へ</a> |</li>
66
66
  <li><a href="../index.html">groonga v2.0.0ドキュメント</a> &raquo;</li>
67
67
  <li><a href="../tutorial.html" accesskey="U">4. チュートリアル</a> &raquo;</li>
@@ -73,68 +73,151 @@
73
73
  <div class="bodywrapper">
74
74
  <div class="body">
75
75
 
76
- <div class="section" id="id1">
77
- <h1>4.3. さまざまな種類をもったデータの保存<a class="headerlink" href="#id1" title="このヘッドラインへのパーマリンク">¶</a></h1>
78
- <p>groongaでは、さまざまなデータを格納させることが出来ます。</p>
79
- <div class="section" id="id2">
80
- <h2>4.3.1. データ型<a class="headerlink" href="#id2" title="このヘッドラインへのパーマリンク">¶</a></h2>
81
- <p>groongaでは、数値(整数・小数)や文字列や時刻や経緯度などの情報を格納することができます。</p>
82
- <p>ここでは、Int32型のカラムに整数を格納、Float型のカラムに浮動小数点の小数を、ShortText型のカラムに文字列を、Time型のカラムに時間を格納する例を示します。経緯度の格納については、のちのチュートリアルで触れます。</p>
83
- <p>その他のデータ型の一覧は、 <a class="reference internal" href="../type.html"><em>データ型</em></a> を参照してください。</p>
76
+ <div class="section" id="various-data-types">
77
+ <h1>4.3. いろいろなデータの保存<a class="headerlink" href="#various-data-types" title="このヘッドラインへのパーマリンク">¶</a></h1>
78
+ <p>groongaは全文検索エンジンを起源として独自のカラムストアを持つに至るわけですが、索引語や文書を保存するだけでなく、数値や文字列、日時や経緯度など、いろいろなデータを保存することができます。本チュートリアルでは、groongaで保存できるデータの種類、およびに保存の方法を説明します。</p>
79
+ <div class="section" id="overview">
80
+ <h2>4.3.1. データの種類<a class="headerlink" href="#overview" title="このヘッドラインへのパーマリンク">¶</a></h2>
81
+ <p>groongaにおいて利用できる基本型は、真偽値、数値、文字列、日時、経緯度の5種類に大別できます。基本型において、数値は整数・浮動小数点数の違い、符号の有無と割り当てるビット数によって細分化できるほか、文字列は長さの上限によって細分化できます。また、経緯度には測地系による分類があります。詳しくは <a class="reference internal" href="../type.html"><em>データ型</em></a> を参照してください。</p>
82
+ <p>拡張型としては、別テーブルを参照するための情報であるテーブル参照を保存することができます。また、基本型もしくはテーブル参照を複数まとめて保存できるように、ベクターカラムをサポートしています。</p>
83
+ <p>それでは、本チュートリアルで使用するテーブルを作成しておきましょう。</p>
84
84
  <p>実行例:</p>
85
- <div class="highlight-none"><div class="highlight"><pre>&gt; table_create --name Type --flags TABLE_HASH_KEY --key_type ShortText
86
- [[0,1322616293.7274,0.012551106],true]
87
- &gt; column_create --table Type --name number --type Int32
88
- [[0,1322616293.94115,0.008619605],true]
89
- &gt; column_create --table Type --name float --type Float
90
- [[0,1322616294.15095,0.004959989],true]
91
- &gt; column_create --table Type --name string --type ShortText
92
- [[0,1322616294.35693,0.005551818],true]
93
- &gt; column_create --table Type --name time --type Time
94
- [[0,1322616294.56333,0.006356953],true]
95
- &gt; load --table Type
96
- &gt; [{&quot;_key&quot;:&quot;sample&quot;,&quot;number&quot;:12345,&quot;float&quot;:42.195,&quot;string&quot;:&quot;GROONGA&quot;,&quot;time&quot;:1234567890.12}]
97
- [[0,1322616294.77086,0.202357708],1]
98
- &gt; select --table Type
99
- [[0,1322616295.1744,0.000340057],[[[1],[[&quot;_id&quot;,&quot;UInt32&quot;],[&quot;_key&quot;,&quot;ShortText&quot;],[&quot;float&quot;,&quot;Float&quot;],[&quot;number&quot;,&quot;Int32&quot;],[&quot;string&quot;,&quot;ShortText&quot;],[&quot;time&quot;,&quot;Time&quot;]],[1,&quot;sample&quot;,42.195,12345,&quot;GROONGA&quot;,1234567890.12]]]]
85
+ <div class="highlight-none"><div class="highlight"><pre>&gt; table_create --name ToyBox --flags TABLE_HASH_KEY --key_type ShortText
86
+ [[0,1332498286.03578,0.00542259216308594],true]
100
87
  </pre></div>
101
88
  </div>
102
89
  </div>
103
- <div class="section" id="id3">
104
- <h2>4.3.2. テーブル型<a class="headerlink" href="#id3" title="このヘッドラインへのパーマリンク">¶</a></h2>
105
- <p>table_createで作成したテーブルを、カラムの型として使うことが出来ます。</p>
106
- <p>また、output_columnsにおいて「.」を区切りとして、参照先のテーブルに存在するカラムを指定すると、指定したカラムの値を表示することができます。</p>
107
- <p>ここでは、先のチュートリアルで作成したSiteテーブルに手を加え、どのサイトをリンクしているのかを保存してみましょう。</p>
108
- <p>他のテーブルを参照するカラムにデータを入力する場合には、参照先のテーブルの_keyカラムの値を代入する必要があります。</p>
90
+ <div class="section" id="boolean-type">
91
+ <h2>4.3.2. 真偽値<a class="headerlink" href="#boolean-type" title="このヘッドラインへのパーマリンク">¶</a></h2>
92
+ <p>ブール型は真偽値(true/false)を表現するための型です。ブール型のカラムを作成するには、 <a class="reference internal" href="../commands/column_create.html"><em>column_create</em></a> コマンドの <cite>type</cite> 引数に Bool を指定します。ブール型のデフォルト値はfalseです。</p>
93
+ <p>以下の例では、ブール型のカラムを作成し、3つのレコードを追加します。3番目のレコードについては、値を省略しているため、デフォルト値が格納されます。</p>
94
+ <p>実行例:</p>
95
+ <div class="highlight-none"><div class="highlight"><pre>&gt; column_create --table ToyBox --name is_animal --type Bool
96
+ [[0,1332498286.2427,0.00578594207763672],true]
97
+ &gt; load --table ToyBox
98
+ &gt; [
99
+ &gt; {&quot;_key&quot;:&quot;Monkey&quot;,&quot;is_animal&quot;:true}
100
+ &gt; {&quot;_key&quot;:&quot;Flower&quot;,&quot;is_animal&quot;:false}
101
+ &gt; {&quot;_key&quot;:&quot;Block&quot;}
102
+ &gt; ]
103
+ [[0,1332498286.44978,1.00197458267212],3]
104
+ &gt; select --table ToyBox --output_columns _key,is_animal
105
+ [[0,1332498287.65257,0.000472545623779297],[[[3],[[&quot;_key&quot;,&quot;ShortText&quot;],[&quot;is_animal&quot;,&quot;Bool&quot;]],[&quot;Monkey&quot;,true],[&quot;Flower&quot;,false],[&quot;Block&quot;,false]]]]
106
+ </pre></div>
107
+ </div>
108
+ </div>
109
+ <div class="section" id="numeric-types">
110
+ <h2>4.3.3. 数値<a class="headerlink" href="#numeric-types" title="このヘッドラインへのパーマリンク">¶</a></h2>
111
+ <p>数値型は、整数と浮動小数点数に分けることができます。整数は、符号付き整数と符号なし整数に分けることができるだけでなく、割り当てるビット数によっても分けることができます。割り当てるビット数を大きくすると、カラムのサイズは大きくなってしまいますが、表現できる整数の範囲を大きくすることができます。詳しくは <a class="reference internal" href="../type.html"><em>データ型</em></a> を参照してください。数値型のデフォルト値はいずれも0です。</p>
112
+ <p>以下の例では、Int8型のカラムとFloat型のカラムを作成し、既存のレコードを更新します。weightカラムについては、指定した値が問題なく格納されています。一方、priceカラムに指定した小数については、小数点以下を切り捨てた値が格納されています。また、表現できる範囲を超える値を格納しようとした2番目のレコードについては、指定した値とは異なる値が格納されています。このように、表現できる範囲を超える値を指定すると、操作後の値は未定義になるので注意してください。</p>
113
+ <p>実行例:</p>
114
+ <div class="highlight-none"><div class="highlight"><pre>&gt; column_create --table ToyBox --name price --type Int8
115
+ [[0,1332498287.85609,0.00574946403503418],true]
116
+ &gt; column_create --table ToyBox --name weight --type Float
117
+ [[0,1332498288.06304,0.00493621826171875],true]
118
+ &gt; load --table ToyBox
119
+ &gt; [
120
+ &gt; {&quot;_key&quot;:&quot;Monkey&quot;,&quot;price&quot;:15.9}
121
+ &gt; {&quot;_key&quot;:&quot;Flower&quot;,&quot;price&quot;:200,&quot;weight&quot;:0.13}
122
+ &gt; {&quot;_key&quot;:&quot;Block&quot;,&quot;weight&quot;:25.7}
123
+ &gt; ]
124
+ [[0,1332498288.26924,1.00213837623596],3]
125
+ &gt; select --table ToyBox --output_columns _key,price,weight
126
+ [[0,1332498289.47254,0.000308036804199219],[[[3],[[&quot;_key&quot;,&quot;ShortText&quot;],[&quot;price&quot;,&quot;Int8&quot;],[&quot;weight&quot;,&quot;Float&quot;]],[&quot;Monkey&quot;,15,0.0],[&quot;Flower&quot;,-56,0.13],[&quot;Block&quot;,0,25.7]]]]
127
+ </pre></div>
128
+ </div>
129
+ </div>
130
+ <div class="section" id="string-types">
131
+ <h2>4.3.4. 文字列<a class="headerlink" href="#string-types" title="このヘッドラインへのパーマリンク">¶</a></h2>
132
+ <p>文字列型は、長さの上限によって分けることができます。詳しくは <a class="reference internal" href="../type.html"><em>データ型</em></a> を参照してください。文字列型のデフォルト値は長さ0の文字列です。</p>
133
+ <p>以下の例では、ShortText型のカラムを作成し、IDが1と2のレコードを更新します。更新しないレコードについては、デフォルト値のままとなります。</p>
134
+ <p>実行例:</p>
135
+ <div class="highlight-none"><div class="highlight"><pre>&gt; column_create --table ToyBox --name name --type ShortText
136
+ [[0,1332498289.67627,0.00676369667053223],true]
137
+ &gt; load --table ToyBox
138
+ &gt; [
139
+ &gt; {&quot;_key&quot;:&quot;Monkey&quot;,&quot;name&quot;:&quot;Grease&quot;}
140
+ &gt; {&quot;_key&quot;:&quot;Flower&quot;,&quot;name&quot;:&quot;Rose&quot;}
141
+ &gt; ]
142
+ [[0,1332498289.88434,0.801783800125122],2]
143
+ &gt; select --table ToyBox --output_columns _key,name
144
+ [[0,1332498290.88724,0.000265598297119141],[[[3],[[&quot;_key&quot;,&quot;ShortText&quot;],[&quot;name&quot;,&quot;ShortText&quot;]],[&quot;Monkey&quot;,&quot;Grease&quot;],[&quot;Flower&quot;,&quot;Rose&quot;],[&quot;Block&quot;,&quot;&quot;]]]]
145
+ </pre></div>
146
+ </div>
147
+ </div>
148
+ <div class="section" id="date-and-time-type">
149
+ <h2>4.3.5. 日時<a class="headerlink" href="#date-and-time-type" title="このヘッドラインへのパーマリンク">¶</a></h2>
150
+ <p>日時を表現するための型はTimeです。内部では1970年1月1日0時0分0秒を基準とする経過時間をマイクロ秒単位で表現します。符号付きの整数を用いるため、1970年以前の日時も表現することができます。内部表現はマイクロ秒単位の整数ですが、 <a class="reference internal" href="../commands/load.html"><em>load</em></a> コマンドおよび <a class="reference internal" href="../commands/select.html"><em>select</em></a> コマンドでは、経過秒数による指定・表示となります。デフォルト値は1970年1月1日0時0分0秒のことを表す0.0です。</p>
151
+ <p>以下の例では、Time型のカラムを作成し、IDが2と3のレコードを更新します。更新しないレコードについては、デフォルト値のままとなります。</p>
152
+ <p>実行例:</p>
153
+ <div class="highlight-none"><div class="highlight"><pre>&gt; column_create --table ToyBox --name time --type Time
154
+ [[0,1332498291.0906,0.00631809234619141],true]
155
+ &gt; load --table ToyBox
156
+ &gt; [
157
+ &gt; {&quot;_key&quot;:&quot;Flower&quot;,&quot;time&quot;:1234567890.1234569999}
158
+ &gt; {&quot;_key&quot;:&quot;Block&quot;,&quot;time&quot;:-1234567890}
159
+ &gt; ]
160
+ [[0,1332498291.29814,0.801807641983032],2]
161
+ &gt; select --table ToyBox --output_columns _key,time
162
+ [[0,1332498292.30117,0.000299692153930664],[[[3],[[&quot;_key&quot;,&quot;ShortText&quot;],[&quot;time&quot;,&quot;Time&quot;]],[&quot;Monkey&quot;,0.0],[&quot;Flower&quot;,1234567890.12346],[&quot;Block&quot;,-1234567890.0]]]]
163
+ </pre></div>
164
+ </div>
165
+ </div>
166
+ <div class="section" id="longitude-and-latitude-types">
167
+ <h2>4.3.6. 経緯度<a class="headerlink" href="#longitude-and-latitude-types" title="このヘッドラインへのパーマリンク">¶</a></h2>
168
+ <p>経緯度を表現するための型は、測地系によって分けることができます。詳しくは <a class="reference internal" href="../type.html"><em>データ型</em></a> を参照してください。経緯度の指定・表示には、以下に示す形式の文字列を使います。</p>
169
+ <ul class="simple">
170
+ <li>&quot;経度のミリ秒表記x緯度のミリ秒表記&quot; (例: &quot;128452975x503157902&quot;)</li>
171
+ <li>&quot;経度の度数表記x緯度の度数表記&quot; (例: &quot;35.6813819x139.7660839&quot;)</li>
172
+ </ul>
173
+ <p>小数点を含んでいなければミリ秒表記、小数点を含んでいれば度数表記として扱われます。ミリ秒表記と度数表記を混ぜたときの動作は未定義なので注意してください。経度と緯度の区切りとしては、'x' のほかに ',' を使うことができます。経緯度のデフォルト値は &quot;0x0&quot; です。</p>
174
+ <p>以下の例では、世界測地系を用いるWGS84GeoPoint型のカラムを作成し、IDが1と3のレコードを更新します。更新しないレコードについては、デフォルト値のままとなります。</p>
175
+ <p>実行例:</p>
176
+ <div class="highlight-none"><div class="highlight"><pre>&gt; column_create --table ToyBox --name location --type WGS84GeoPoint
177
+ [[0,1332498292.50467,0.0079643726348877],true]
178
+ &gt; load --table ToyBox
179
+ &gt; [
180
+ &gt; {&quot;_key&quot;:&quot;Monkey&quot;,&quot;location&quot;:&quot;128452975x503157902&quot;}
181
+ &gt; {&quot;_key&quot;:&quot;Block&quot;,&quot;location&quot;:&quot;35.6813819x139.7660839&quot;}
182
+ &gt; ]
183
+ [[0,1332498292.71385,0.801813840866089],2]
184
+ &gt; select --table ToyBox --output_columns _key,location
185
+ [[0,1332498293.71678,0.000298976898193359],[[[3],[[&quot;_key&quot;,&quot;ShortText&quot;],[&quot;location&quot;,&quot;WGS84GeoPoint&quot;]],[&quot;Monkey&quot;,&quot;128452975x503157902&quot;],[&quot;Flower&quot;,&quot;0x0&quot;],[&quot;Block&quot;,&quot;128452975x503157902&quot;]]]]
186
+ </pre></div>
187
+ </div>
188
+ </div>
189
+ <div class="section" id="reference-types">
190
+ <h2>4.3.7. テーブル参照<a class="headerlink" href="#reference-types" title="このヘッドラインへのパーマリンク">¶</a></h2>
191
+ <p>groongaでは、テーブル参照のカラム、すなわち関連付けたテーブルを参照するカラムを作成できます。より正確には、カラム作成時に参照先となるテーブルとの関連付けをおこない、参照先テーブルにおけるレコードIDを格納しておくことにより、参照先のレコードにアクセスできるようにします。</p>
192
+ <p>テーブル参照のカラムがあるときは、 <cite>output_columns</cite> 引数に &quot;参照元カラム.参照先カラム&quot; と指定することにより、参照先カラムの値を取り出すことができます。参照元カラムのみを指定したときは、 &quot;参照元カラム名._key&quot; と同様の扱いとなり、参照先レコードの主キーが取り出されます。テーブル参照が有効なレコードを指していないときは、参照先カラムのデフォルト値が取り出されるようになっています。</p>
193
+ <p>ここでは、先のチュートリアルで作成したSiteテーブルにlinkという新たなカラムを作成し、サイト間のリンク関係を保存できるようにしてみましょう。</p>
109
194
  <p>実行例:</p>
110
195
  <div class="highlight-none"><div class="highlight"><pre>&gt; column_create --table Site --name link --type Site
111
- [[0,1322616295.37864,0.005674045],true]
196
+ [[0,1332498293.92066,0.00589966773986816],true]
112
197
  &gt; load --table Site
113
198
  &gt; [{&quot;_key&quot;:&quot;http://example.org/&quot;,&quot;link&quot;:&quot;http://example.net/&quot;}]
114
- [[0,1322616295.5854,0.200879317],1]
199
+ [[0,1332498294.1274,0.201014280319214],1]
115
200
  &gt; select --table Site --output_columns _key,title,link._key,link.title --query title:@this
116
- [[0,1322616295.98732,0.000872177],[[[1],[[&quot;_key&quot;,&quot;ShortText&quot;],[&quot;title&quot;,&quot;ShortText&quot;],[&quot;link._key&quot;,&quot;ShortText&quot;],[&quot;link.title&quot;,&quot;ShortText&quot;]],[&quot;http://example.org/&quot;,&quot;This is test record 1!&quot;,&quot;http://example.net/&quot;,&quot;test record 2.&quot;]]]]
201
+ [[0,1332498294.52959,0.00171041488647461],[[[1],[[&quot;_key&quot;,&quot;ShortText&quot;],[&quot;title&quot;,&quot;ShortText&quot;],[&quot;link._key&quot;,&quot;ShortText&quot;],[&quot;link.title&quot;,&quot;ShortText&quot;]],[&quot;http://example.org/&quot;,&quot;This is test record 1!&quot;,&quot;http://example.net/&quot;,&quot;test record 2.&quot;]]]]
117
202
  </pre></div>
118
203
  </div>
119
- <p>このように、linkカラムに他のサイトへの参照を保存することができました。また、参照先の_keyとtitleカラムの内容を表示することができました。</p>
204
+ <p>テーブル参照のカラムを作成するときは、 <cite>type</cite> 引数に参照先テーブルを指定します。この例では、同じテーブルに含まれる別のレコードを参照させたいので、Siteを指定することになります。次に、 &quot;<a class="reference external" href="http://example.org/">http://example.org/</a>&quot; から &quot;<a class="reference external" href="http://example.net/">http://example.net/</a>&quot; へのリンクを登録しています。テーブル参照を作成するときは、IDではなく主キーを指定することに注意してください。最後に、リンクの内容を確認しています。この例では、 <cite>output_columns</cite> 引数に link._key link.title を指定しているので、参照先の主キーとタイトルが表示されています。</p>
120
205
  </div>
121
- <div class="section" id="id4">
122
- <h2>4.3.3. ベクターカラム<a class="headerlink" href="#id4" title="このヘッドラインへのパーマリンク">¶</a></h2>
123
- <p>column_createコマンドでカラムを作成するとき、--flagsオプションでCOLUMN_VECTORフラグを指定すると、複数の値を配列で格納できるカラムが作成されます。</p>
124
- <p>テーブル型で配列を格納するカラムは、1対多の参照関係を表すのに有効です。</p>
125
- <p>テーブル型のチュートリアルでは、Siteテーブルに手を加え、どのサイトをリンクしているのかを保存しました。しかし、通常は1つのサイトから多くのサイトにリンクが張られています。複数のリンク情報を格納するために、複数の参照関係を保存するカラムを作成してみましょう。</p>
126
- <p>他のテーブルを参照するベクターカラムにデータを入力する場合には、参照先のテーブルの_keyカラムの値の「配列」を代入する必要があります。</p>
206
+ <div class="section" id="vector-types">
207
+ <h2>4.3.8. ベクターカラム<a class="headerlink" href="#vector-types" title="このヘッドラインへのパーマリンク">¶</a></h2>
208
+ <p><a class="reference internal" href="../commands/column_create.html"><em>column_create</em></a> コマンドでカラムを作成するとき、 <cite>flags</cite> 引数にCOLUMN_VECTORフラグを指定すると、 <cite>type</cite> 引数に指定した型の配列を格納するカラムになります。このようなカラムのことは、ベクターカラムと呼びます。ベクターカラムは、各レコードに複数の値を格納できるため、一対多の参照関係を表すのに便利です。</p>
209
+ <p>さきほどテーブル参照の例として作成したカラムでは、各サイトに一つのリンクしか保存できませんでした。通常は一つのサイトから多くのサイトにリンクが張られているので、これでは残念な仕様になってしまいます。そこで、ベクターカラムを使って、複数のリンクを保存できるようにしてみましょう。</p>
127
210
  <p>実行例:</p>
128
211
  <div class="highlight-none"><div class="highlight"><pre>&gt; column_create --table Site --name links --flags COLUMN_VECTOR --type Site
129
- [[0,1322616296.19238,0.007598942],true]
212
+ [[0,1332498294.7353,0.00729537010192871],true]
130
213
  &gt; load --table Site
131
214
  &gt; [{&quot;_key&quot;:&quot;http://example.org/&quot;,&quot;links&quot;:[&quot;http://example.net/&quot;,&quot;http://example.org/&quot;,&quot;http://example.com/&quot;]}]
132
- [[0,1322616296.40092,0.201036234],1]
215
+ [[0,1332498294.94353,0.200709581375122],1]
133
216
  &gt; select --table Site --output_columns _key,title,links._key,links.title --query title:@this
134
- [[0,1322616296.80305,0.000899975],[[[1],[[&quot;_key&quot;,&quot;ShortText&quot;],[&quot;title&quot;,&quot;ShortText&quot;],[&quot;links._key&quot;,&quot;ShortText&quot;],[&quot;links.title&quot;,&quot;ShortText&quot;]],[&quot;http://example.org/&quot;,&quot;This is test record 1!&quot;,[&quot;http://example.net/&quot;,&quot;http://example.org/&quot;,&quot;http://example.com/&quot;],[&quot;test record 2.&quot;,&quot;This is test record 1!&quot;,&quot;test test record three.&quot;]]]]]
217
+ [[0,1332498295.34514,0.00077366828918457],[[[1],[[&quot;_key&quot;,&quot;ShortText&quot;],[&quot;title&quot;,&quot;ShortText&quot;],[&quot;links._key&quot;,&quot;ShortText&quot;],[&quot;links.title&quot;,&quot;ShortText&quot;]],[&quot;http://example.org/&quot;,&quot;This is test record 1!&quot;,[&quot;http://example.net/&quot;,&quot;http://example.org/&quot;,&quot;http://example.com/&quot;],[&quot;test record 2.&quot;,&quot;This is test record 1!&quot;,&quot;test test record three.&quot;]]]]]
135
218
  </pre></div>
136
219
  </div>
137
- <p>このように、複数の参照関係が保存できました。また、output_columnsによって、複数の参照先のカラム値も表示させることができました。</p>
220
+ <p>新たなカラムにはSiteテーブルに対する参照の配列を格納するので、 <cite>type</cite> 引数にSiteを指定するとともに、 <cite>flags</cite> 引数にCOLUMN_VECTORフラグを指定しています。次に、 <a class="reference internal" href="../commands/load.html"><em>load</em></a> による更新では、 &quot;<a class="reference external" href="http://example.org/">http://example.org/</a>&quot; から &quot;<a class="reference external" href="http://example.net/">http://example.net/</a>&quot; へのリンクに加えて、 &quot;<a class="reference external" href="http://example.org/">http://example.org/</a>&quot; と &quot;<a class="reference external" href="http://example.com/">http://example.com/</a>&quot; へのリンクも登録しています。そして、最後にリンクの内容を確認しています。この例では、 <cite>output_columns</cite> 引数に links._key と links.title を指定しているので、参照先の主キーとタイトルをそれぞれ配列にしたものが表示されています。</p>
138
221
  </div>
139
222
  </div>
140
223
 
@@ -146,17 +229,22 @@
146
229
  <div class="sphinxsidebarwrapper">
147
230
  <h3><a href="../index.html">目次</a></h3>
148
231
  <ul>
149
- <li><a class="reference internal" href="#">4.3. さまざまな種類をもったデータの保存</a><ul>
150
- <li><a class="reference internal" href="#id2">4.3.1. データ型</a></li>
151
- <li><a class="reference internal" href="#id3">4.3.2. テーブル型</a></li>
152
- <li><a class="reference internal" href="#id4">4.3.3. ベクターカラム</a></li>
232
+ <li><a class="reference internal" href="#">4.3. いろいろなデータの保存</a><ul>
233
+ <li><a class="reference internal" href="#overview">4.3.1. データの種類</a></li>
234
+ <li><a class="reference internal" href="#boolean-type">4.3.2. 真偽値</a></li>
235
+ <li><a class="reference internal" href="#numeric-types">4.3.3. 数値</a></li>
236
+ <li><a class="reference internal" href="#string-types">4.3.4. 文字列</a></li>
237
+ <li><a class="reference internal" href="#date-and-time-type">4.3.5. 日時</a></li>
238
+ <li><a class="reference internal" href="#longitude-and-latitude-types">4.3.6. 経緯度</a></li>
239
+ <li><a class="reference internal" href="#reference-types">4.3.7. テーブル参照</a></li>
240
+ <li><a class="reference internal" href="#vector-types">4.3.8. ベクターカラム</a></li>
153
241
  </ul>
154
242
  </li>
155
243
  </ul>
156
244
 
157
245
  <h4>前のトピックへ</h4>
158
246
  <p class="topless"><a href="network.html"
159
- title="前の章へ">4.2. ネットワークを通じた利用</a></p>
247
+ title="前の章へ">4.2. リモートアクセス</a></p>
160
248
  <h4>次のトピックへ</h4>
161
249
  <p class="topless"><a href="search.html"
162
250
  title="次の章へ">4.4. さまざまな検索条件の指定</a></p>
@@ -192,7 +280,7 @@
192
280
  <a href="search.html" title="4.4. さまざまな検索条件の指定"
193
281
  >次へ</a> |</li>
194
282
  <li class="right" >
195
- <a href="network.html" title="4.2. ネットワークを通じた利用"
283
+ <a href="network.html" title="4.2. リモートアクセス"
196
284
  >前へ</a> |</li>
197
285
  <li><a href="../index.html">groonga v2.0.0ドキュメント</a> &raquo;</li>
198
286
  <li><a href="../tutorial.html" >4. チュートリアル</a> &raquo;</li>
@@ -45,7 +45,7 @@
45
45
 
46
46
  <div class="other-language-links">
47
47
  <ul>
48
- <li><a href="../../../en/html/tutorial/drilldown.html"><img src="../_static/us.png" alt="English"></a></li>
48
+ <li><a href="../../../en/html/tutorial/drilldown.html"><img src="../_static/us.png" alt="English">English page</a></li>
49
49
  </ul>
50
50
  </div>
51
51
  </div>
@@ -45,7 +45,7 @@
45
45
 
46
46
  <div class="other-language-links">
47
47
  <ul>
48
- <li><a href="../../../en/html/tutorial/index.html"><img src="../_static/us.png" alt="English"></a></li>
48
+ <li><a href="../../../en/html/tutorial/index.html"><img src="../_static/us.png" alt="English">English page</a></li>
49
49
  </ul>
50
50
  </div>
51
51
  </div>