rroonga 1.3.0-x86-mingw32 → 1.3.1-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (334) hide show
  1. data/Rakefile +33 -2
  2. data/benchmark/common.rb +2 -2
  3. data/benchmark/read-write-many-small-items.rb +71 -62
  4. data/benchmark/write-many-small-items.rb +61 -53
  5. data/ext/groonga/rb-grn-context.c +23 -5
  6. data/ext/groonga/rb-grn-index-column.c +2 -6
  7. data/ext/groonga/rb-grn-operator.c +31 -1
  8. data/ext/groonga/rb-grn-variable-size-column.c +77 -1
  9. data/ext/groonga/rb-grn.h +2 -11
  10. data/ext/groonga/rb-groonga.c +1 -2
  11. data/lib/1.8/groonga.so +0 -0
  12. data/lib/1.9/groonga.so +0 -0
  13. data/lib/groonga/command.rb +169 -0
  14. data/lib/groonga/context.rb +4 -124
  15. data/lib/groonga/dumper.rb +10 -8
  16. data/lib/groonga/record.rb +7 -0
  17. data/lib/groonga/schema.rb +98 -7
  18. data/rroonga-build.rb +3 -3
  19. data/test/{test-context-select.rb → test-command-select.rb} +3 -3
  20. data/test/test-record.rb +18 -1
  21. data/test/test-schema-dumper.rb +48 -0
  22. data/test/test-schema-type.rb +35 -0
  23. data/test/test-schema.rb +81 -11
  24. data/test/test-table-select.rb +49 -38
  25. data/test/test-variable-size-column.rb +30 -0
  26. data/vendor/local/bin/grntest.exe +0 -0
  27. data/vendor/local/bin/groonga.exe +0 -0
  28. data/vendor/local/bin/libgroonga-0.dll +0 -0
  29. data/vendor/local/bin/libmecab-1.dll +0 -0
  30. data/vendor/local/bin/mecab.exe +0 -0
  31. data/vendor/local/include/groonga/groonga/plugin.h +3 -2
  32. data/vendor/local/include/groonga/groonga.h +106 -78
  33. data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
  34. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
  35. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
  36. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
  37. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
  38. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
  39. data/vendor/local/lib/libgroonga.a +0 -0
  40. data/vendor/local/lib/libgroonga.dll.a +0 -0
  41. data/vendor/local/lib/libmecab.a +0 -0
  42. data/vendor/local/lib/libmecab.dll.a +0 -0
  43. data/vendor/local/lib/pkgconfig/groonga.pc +5 -2
  44. data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
  45. data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
  46. data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
  47. data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
  48. data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
  49. data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
  50. data/vendor/local/share/doc/groonga/en/html/_sources/characteristic.txt +42 -32
  51. data/vendor/local/share/doc/groonga/en/html/_sources/commands/delete.txt +5 -1
  52. data/vendor/local/share/doc/groonga/en/html/_sources/commands/table_create.txt +5 -2
  53. data/vendor/local/share/doc/groonga/en/html/_sources/community.txt +4 -3
  54. data/vendor/local/share/doc/groonga/en/html/_sources/contribution.txt +8 -6
  55. data/vendor/local/share/doc/groonga/en/html/_sources/functions/geo_distance.txt +42 -3
  56. data/vendor/local/share/doc/groonga/en/html/_sources/functions/geo_in_circle.txt +26 -1
  57. data/vendor/local/share/doc/groonga/en/html/_sources/index.txt +2 -2
  58. data/vendor/local/share/doc/groonga/en/html/_sources/install.txt +102 -27
  59. data/vendor/local/share/doc/groonga/en/html/_sources/limitations.txt +10 -10
  60. data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +130 -21
  61. data/vendor/local/share/doc/groonga/en/html/_sources/output.txt +164 -0
  62. data/vendor/local/share/doc/groonga/en/html/_sources/reference.txt +1 -0
  63. data/vendor/local/share/doc/groonga/en/html/_sources/suggest.txt +0 -5
  64. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/data.txt +6 -4
  65. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/drilldown.txt +1 -3
  66. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/index.txt +2 -1
  67. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/introduction.txt +95 -116
  68. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/match_columns.txt +1 -4
  69. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/micro_blog.txt +1 -4
  70. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/network.txt +3 -0
  71. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/patricia_trie.txt +1 -2
  72. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/query_expansion.txt +5 -0
  73. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/search.txt +3 -0
  74. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial.txt +2 -2
  75. data/vendor/local/share/doc/groonga/en/html/_sources/type.txt +3 -3
  76. data/vendor/local/share/doc/groonga/en/html/_static/basic.css +13 -1
  77. data/vendor/local/share/doc/groonga/en/html/_static/doctools.js +5 -5
  78. data/vendor/local/share/doc/groonga/en/html/_static/searchtools.js +11 -7
  79. data/vendor/local/share/doc/groonga/en/html/_static/websupport.js +1 -1
  80. data/vendor/local/share/doc/groonga/en/html/characteristic.html +60 -52
  81. data/vendor/local/share/doc/groonga/en/html/command_version.html +30 -30
  82. data/vendor/local/share/doc/groonga/en/html/commands/cache_limit.html +34 -34
  83. data/vendor/local/share/doc/groonga/en/html/commands/check.html +34 -34
  84. data/vendor/local/share/doc/groonga/en/html/commands/clearlock.html +34 -34
  85. data/vendor/local/share/doc/groonga/en/html/commands/column_create.html +34 -34
  86. data/vendor/local/share/doc/groonga/en/html/commands/column_list.html +34 -34
  87. data/vendor/local/share/doc/groonga/en/html/commands/column_remove.html +34 -34
  88. data/vendor/local/share/doc/groonga/en/html/commands/define_selector.html +36 -36
  89. data/vendor/local/share/doc/groonga/en/html/commands/defrag.html +34 -34
  90. data/vendor/local/share/doc/groonga/en/html/commands/delete.html +38 -35
  91. data/vendor/local/share/doc/groonga/en/html/commands/dump.html +32 -32
  92. data/vendor/local/share/doc/groonga/en/html/commands/load.html +36 -36
  93. data/vendor/local/share/doc/groonga/en/html/commands/log_level.html +36 -36
  94. data/vendor/local/share/doc/groonga/en/html/commands/log_put.html +36 -36
  95. data/vendor/local/share/doc/groonga/en/html/commands/log_reopen.html +38 -38
  96. data/vendor/local/share/doc/groonga/en/html/commands/quit.html +32 -32
  97. data/vendor/local/share/doc/groonga/en/html/commands/select.html +38 -38
  98. data/vendor/local/share/doc/groonga/en/html/commands/shutdown.html +32 -32
  99. data/vendor/local/share/doc/groonga/en/html/commands/status.html +34 -34
  100. data/vendor/local/share/doc/groonga/en/html/commands/suggest.html +36 -36
  101. data/vendor/local/share/doc/groonga/en/html/commands/table_create.html +38 -36
  102. data/vendor/local/share/doc/groonga/en/html/commands/table_list.html +34 -34
  103. data/vendor/local/share/doc/groonga/en/html/commands/table_remove.html +34 -34
  104. data/vendor/local/share/doc/groonga/en/html/commands/view_add.html +34 -34
  105. data/vendor/local/share/doc/groonga/en/html/commands.html +41 -41
  106. data/vendor/local/share/doc/groonga/en/html/community.html +14 -12
  107. data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +7 -7
  108. data/vendor/local/share/doc/groonga/en/html/contribution/development/document.html +7 -7
  109. data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +7 -7
  110. data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +7 -7
  111. data/vendor/local/share/doc/groonga/en/html/contribution/development.html +7 -7
  112. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +7 -7
  113. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +7 -7
  114. data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +7 -7
  115. data/vendor/local/share/doc/groonga/en/html/contribution/report.html +7 -7
  116. data/vendor/local/share/doc/groonga/en/html/contribution.html +15 -13
  117. data/vendor/local/share/doc/groonga/en/html/executables/grnslap.html +7 -7
  118. data/vendor/local/share/doc/groonga/en/html/executables/grntest.html +7 -7
  119. data/vendor/local/share/doc/groonga/en/html/executables/groonga-http.html +7 -7
  120. data/vendor/local/share/doc/groonga/en/html/executables/groonga-suggest-create-dataset.html +12 -12
  121. data/vendor/local/share/doc/groonga/en/html/executables/groonga.html +7 -7
  122. data/vendor/local/share/doc/groonga/en/html/executables.html +7 -7
  123. data/vendor/local/share/doc/groonga/en/html/expr.html +25 -25
  124. data/vendor/local/share/doc/groonga/en/html/functions/edit_distance.html +32 -32
  125. data/vendor/local/share/doc/groonga/en/html/functions/geo_distance.html +71 -36
  126. data/vendor/local/share/doc/groonga/en/html/functions/geo_in_circle.html +53 -33
  127. data/vendor/local/share/doc/groonga/en/html/functions/geo_in_rectangle.html +32 -32
  128. data/vendor/local/share/doc/groonga/en/html/functions/now.html +30 -30
  129. data/vendor/local/share/doc/groonga/en/html/functions/rand.html +32 -32
  130. data/vendor/local/share/doc/groonga/en/html/functions.html +22 -22
  131. data/vendor/local/share/doc/groonga/en/html/genindex.html +7 -7
  132. data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +7 -7
  133. data/vendor/local/share/doc/groonga/en/html/index.html +92 -87
  134. data/vendor/local/share/doc/groonga/en/html/install.html +109 -40
  135. data/vendor/local/share/doc/groonga/en/html/limitations.html +19 -19
  136. data/vendor/local/share/doc/groonga/en/html/log.html +21 -21
  137. data/vendor/local/share/doc/groonga/en/html/news/0.x.html +7 -7
  138. data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +7 -7
  139. data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +7 -7
  140. data/vendor/local/share/doc/groonga/en/html/news/senna.html +7 -7
  141. data/vendor/local/share/doc/groonga/en/html/news.html +233 -112
  142. data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
  143. data/vendor/local/share/doc/groonga/en/html/output.html +302 -0
  144. data/vendor/local/share/doc/groonga/en/html/pseudo_column.html +21 -21
  145. data/vendor/local/share/doc/groonga/en/html/reference.html +59 -55
  146. data/vendor/local/share/doc/groonga/en/html/search.html +6 -6
  147. data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
  148. data/vendor/local/share/doc/groonga/en/html/spec/search.html +11 -11
  149. data/vendor/local/share/doc/groonga/en/html/spec.html +11 -11
  150. data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +7 -7
  151. data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +7 -7
  152. data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +7 -7
  153. data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +7 -7
  154. data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +7 -7
  155. data/vendor/local/share/doc/groonga/en/html/suggest.html +7 -12
  156. data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +7 -7
  157. data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +11 -11
  158. data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +23 -23
  159. data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +10 -10
  160. data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +10 -10
  161. data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +124 -164
  162. data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +10 -10
  163. data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +10 -10
  164. data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +10 -10
  165. data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +14 -14
  166. data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +10 -10
  167. data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +11 -10
  168. data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +10 -10
  169. data/vendor/local/share/doc/groonga/en/html/tutorial.html +26 -26
  170. data/vendor/local/share/doc/groonga/en/html/type.html +31 -31
  171. data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
  172. data/vendor/local/share/doc/groonga/ja/html/_sources/characteristic.txt +42 -32
  173. data/vendor/local/share/doc/groonga/ja/html/_sources/commands/delete.txt +5 -1
  174. data/vendor/local/share/doc/groonga/ja/html/_sources/commands/table_create.txt +5 -2
  175. data/vendor/local/share/doc/groonga/ja/html/_sources/community.txt +4 -3
  176. data/vendor/local/share/doc/groonga/ja/html/_sources/contribution.txt +8 -6
  177. data/vendor/local/share/doc/groonga/ja/html/_sources/functions/geo_distance.txt +42 -3
  178. data/vendor/local/share/doc/groonga/ja/html/_sources/functions/geo_in_circle.txt +26 -1
  179. data/vendor/local/share/doc/groonga/ja/html/_sources/index.txt +2 -2
  180. data/vendor/local/share/doc/groonga/ja/html/_sources/install.txt +102 -27
  181. data/vendor/local/share/doc/groonga/ja/html/_sources/limitations.txt +10 -10
  182. data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +130 -21
  183. data/vendor/local/share/doc/groonga/ja/html/_sources/output.txt +164 -0
  184. data/vendor/local/share/doc/groonga/ja/html/_sources/reference.txt +1 -0
  185. data/vendor/local/share/doc/groonga/ja/html/_sources/suggest.txt +0 -5
  186. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/data.txt +6 -4
  187. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/drilldown.txt +1 -3
  188. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/index.txt +2 -1
  189. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/introduction.txt +95 -116
  190. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/match_columns.txt +1 -4
  191. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/micro_blog.txt +1 -4
  192. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/network.txt +3 -0
  193. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/patricia_trie.txt +1 -2
  194. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/query_expansion.txt +5 -0
  195. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/search.txt +3 -0
  196. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial.txt +2 -2
  197. data/vendor/local/share/doc/groonga/ja/html/_sources/type.txt +3 -3
  198. data/vendor/local/share/doc/groonga/ja/html/_static/basic.css +13 -1
  199. data/vendor/local/share/doc/groonga/ja/html/_static/doctools.js +5 -5
  200. data/vendor/local/share/doc/groonga/ja/html/_static/searchtools.js +11 -7
  201. data/vendor/local/share/doc/groonga/ja/html/_static/websupport.js +1 -1
  202. data/vendor/local/share/doc/groonga/ja/html/characteristic.html +55 -47
  203. data/vendor/local/share/doc/groonga/ja/html/command_version.html +30 -30
  204. data/vendor/local/share/doc/groonga/ja/html/commands/cache_limit.html +34 -34
  205. data/vendor/local/share/doc/groonga/ja/html/commands/check.html +34 -34
  206. data/vendor/local/share/doc/groonga/ja/html/commands/clearlock.html +34 -34
  207. data/vendor/local/share/doc/groonga/ja/html/commands/column_create.html +34 -34
  208. data/vendor/local/share/doc/groonga/ja/html/commands/column_list.html +34 -34
  209. data/vendor/local/share/doc/groonga/ja/html/commands/column_remove.html +34 -34
  210. data/vendor/local/share/doc/groonga/ja/html/commands/define_selector.html +36 -36
  211. data/vendor/local/share/doc/groonga/ja/html/commands/defrag.html +34 -34
  212. data/vendor/local/share/doc/groonga/ja/html/commands/delete.html +38 -35
  213. data/vendor/local/share/doc/groonga/ja/html/commands/dump.html +32 -32
  214. data/vendor/local/share/doc/groonga/ja/html/commands/load.html +36 -36
  215. data/vendor/local/share/doc/groonga/ja/html/commands/log_level.html +36 -36
  216. data/vendor/local/share/doc/groonga/ja/html/commands/log_put.html +36 -36
  217. data/vendor/local/share/doc/groonga/ja/html/commands/log_reopen.html +38 -38
  218. data/vendor/local/share/doc/groonga/ja/html/commands/quit.html +32 -32
  219. data/vendor/local/share/doc/groonga/ja/html/commands/select.html +38 -38
  220. data/vendor/local/share/doc/groonga/ja/html/commands/shutdown.html +32 -32
  221. data/vendor/local/share/doc/groonga/ja/html/commands/status.html +34 -34
  222. data/vendor/local/share/doc/groonga/ja/html/commands/suggest.html +36 -36
  223. data/vendor/local/share/doc/groonga/ja/html/commands/table_create.html +38 -36
  224. data/vendor/local/share/doc/groonga/ja/html/commands/table_list.html +34 -34
  225. data/vendor/local/share/doc/groonga/ja/html/commands/table_remove.html +34 -34
  226. data/vendor/local/share/doc/groonga/ja/html/commands/view_add.html +34 -34
  227. data/vendor/local/share/doc/groonga/ja/html/commands.html +41 -41
  228. data/vendor/local/share/doc/groonga/ja/html/community.html +10 -8
  229. data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +7 -7
  230. data/vendor/local/share/doc/groonga/ja/html/contribution/development/document.html +7 -7
  231. data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +7 -7
  232. data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +7 -7
  233. data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +7 -7
  234. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +7 -7
  235. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +7 -7
  236. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +7 -7
  237. data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +7 -7
  238. data/vendor/local/share/doc/groonga/ja/html/contribution.html +7 -7
  239. data/vendor/local/share/doc/groonga/ja/html/executables/grnslap.html +7 -7
  240. data/vendor/local/share/doc/groonga/ja/html/executables/grntest.html +7 -7
  241. data/vendor/local/share/doc/groonga/ja/html/executables/groonga-http.html +7 -7
  242. data/vendor/local/share/doc/groonga/ja/html/executables/groonga-suggest-create-dataset.html +12 -12
  243. data/vendor/local/share/doc/groonga/ja/html/executables/groonga.html +7 -7
  244. data/vendor/local/share/doc/groonga/ja/html/executables.html +7 -7
  245. data/vendor/local/share/doc/groonga/ja/html/expr.html +25 -25
  246. data/vendor/local/share/doc/groonga/ja/html/functions/edit_distance.html +32 -32
  247. data/vendor/local/share/doc/groonga/ja/html/functions/geo_distance.html +71 -36
  248. data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_circle.html +53 -33
  249. data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_rectangle.html +32 -32
  250. data/vendor/local/share/doc/groonga/ja/html/functions/now.html +30 -30
  251. data/vendor/local/share/doc/groonga/ja/html/functions/rand.html +32 -32
  252. data/vendor/local/share/doc/groonga/ja/html/functions.html +22 -22
  253. data/vendor/local/share/doc/groonga/ja/html/genindex.html +7 -7
  254. data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +7 -7
  255. data/vendor/local/share/doc/groonga/ja/html/index.html +84 -79
  256. data/vendor/local/share/doc/groonga/ja/html/install.html +92 -16
  257. data/vendor/local/share/doc/groonga/ja/html/limitations.html +13 -13
  258. data/vendor/local/share/doc/groonga/ja/html/log.html +21 -21
  259. data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +7 -7
  260. data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +7 -7
  261. data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +7 -7
  262. data/vendor/local/share/doc/groonga/ja/html/news/senna.html +7 -7
  263. data/vendor/local/share/doc/groonga/ja/html/news.html +202 -99
  264. data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
  265. data/vendor/local/share/doc/groonga/ja/html/output.html +287 -0
  266. data/vendor/local/share/doc/groonga/ja/html/pseudo_column.html +21 -21
  267. data/vendor/local/share/doc/groonga/ja/html/reference.html +59 -55
  268. data/vendor/local/share/doc/groonga/ja/html/search.html +6 -6
  269. data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
  270. data/vendor/local/share/doc/groonga/ja/html/spec/search.html +7 -7
  271. data/vendor/local/share/doc/groonga/ja/html/spec.html +11 -11
  272. data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +7 -7
  273. data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +7 -7
  274. data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +7 -7
  275. data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +7 -7
  276. data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +7 -7
  277. data/vendor/local/share/doc/groonga/ja/html/suggest.html +7 -11
  278. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +7 -7
  279. data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +7 -7
  280. data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +20 -20
  281. data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +7 -7
  282. data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +7 -7
  283. data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +93 -115
  284. data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +7 -7
  285. data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +7 -7
  286. data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +7 -7
  287. data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +8 -8
  288. data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +7 -7
  289. data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +8 -7
  290. data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +7 -7
  291. data/vendor/local/share/doc/groonga/ja/html/tutorial.html +21 -21
  292. data/vendor/local/share/doc/groonga/ja/html/type.html +31 -31
  293. data/vendor/local/share/doc/groonga/source/characteristic.txt +42 -32
  294. data/vendor/local/share/doc/groonga/source/commands/delete.txt +5 -1
  295. data/vendor/local/share/doc/groonga/source/commands/table_create.txt +5 -2
  296. data/vendor/local/share/doc/groonga/source/community.txt +4 -3
  297. data/vendor/local/share/doc/groonga/source/contribution.txt +8 -6
  298. data/vendor/local/share/doc/groonga/source/example/tutorial/data-1.log +8 -8
  299. data/vendor/local/share/doc/groonga/source/example/tutorial/data-2.log +4 -4
  300. data/vendor/local/share/doc/groonga/source/example/tutorial/data-3.log +4 -4
  301. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-1.log +3 -15
  302. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-2.log +2 -7
  303. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-3.log +2 -7
  304. data/vendor/local/share/doc/groonga/source/functions/geo_distance.txt +42 -3
  305. data/vendor/local/share/doc/groonga/source/functions/geo_in_circle.txt +26 -1
  306. data/vendor/local/share/doc/groonga/source/index.txt +2 -2
  307. data/vendor/local/share/doc/groonga/source/install.txt +102 -27
  308. data/vendor/local/share/doc/groonga/source/limitations.txt +10 -10
  309. data/vendor/local/share/doc/groonga/source/news.txt +130 -21
  310. data/vendor/local/share/doc/groonga/source/output.txt +164 -0
  311. data/vendor/local/share/doc/groonga/source/reference.txt +1 -0
  312. data/vendor/local/share/doc/groonga/source/suggest.txt +0 -5
  313. data/vendor/local/share/doc/groonga/source/tutorial/data.txt +6 -4
  314. data/vendor/local/share/doc/groonga/source/tutorial/drilldown.txt +1 -3
  315. data/vendor/local/share/doc/groonga/source/tutorial/index.txt +2 -1
  316. data/vendor/local/share/doc/groonga/source/tutorial/introduction.txt +95 -116
  317. data/vendor/local/share/doc/groonga/source/tutorial/match_columns.txt +1 -4
  318. data/vendor/local/share/doc/groonga/source/tutorial/micro_blog.txt +1 -4
  319. data/vendor/local/share/doc/groonga/source/tutorial/network.txt +3 -0
  320. data/vendor/local/share/doc/groonga/source/tutorial/patricia_trie.txt +1 -2
  321. data/vendor/local/share/doc/groonga/source/tutorial/query_expansion.txt +5 -0
  322. data/vendor/local/share/doc/groonga/source/tutorial/search.txt +3 -0
  323. data/vendor/local/share/doc/groonga/source/tutorial.txt +2 -2
  324. data/vendor/local/share/doc/groonga/source/type.txt +3 -3
  325. data/vendor/local/share/groonga/examples/dictionary/html/js/dictionary.js +1 -0
  326. data/vendor/local/share/groonga/html/admin/index.html +40 -0
  327. data/vendor/local/share/groonga/html/admin/js/jquery.flot-0.7.min.js +6 -0
  328. data/vendor/local/share/groonga/html/admin/js/jquery.flot.license.txt +22 -0
  329. data/vendor/local/share/man/ja/man1/groonga.1 +560 -138
  330. data/vendor/local/share/man/man1/groonga.1 +637 -223
  331. metadata +887 -898
  332. data/ext/groonga/Makefile +0 -184
  333. data/ext/groonga/rb-grn-query.c +0 -260
  334. data/test/test-query.rb +0 -22
@@ -28,6 +28,29 @@ class SchemaDumperTest < Test::Unit::TestCase
28
28
  end
29
29
  end
30
30
 
31
+ def define_built_in_types_schema
32
+ Groonga::Schema.define do |schema|
33
+ schema.create_table("Posts") do |table|
34
+ table.boolean :public
35
+ table.int8 :int8
36
+ table.uint8 :uint8
37
+ table.int16 :int16
38
+ table.uint16 :uint16
39
+ table.int32 :int32
40
+ table.uint32 :uint32
41
+ table.int64 :int64
42
+ table.uint64 :uint64
43
+ table.float :vote_average
44
+ table.time :published_at
45
+ table.short_text :title
46
+ table.text :content
47
+ table.long_text :attachment
48
+ table.tokyo_geo_point :location_tokyo
49
+ table.wgs84_geo_point :location_wgs84
50
+ end
51
+ end
52
+ end
53
+
31
54
  def define_reference_schema
32
55
  Groonga::Schema.define do |schema|
33
56
  schema.create_table("Items") do |table|
@@ -79,6 +102,31 @@ end
79
102
  EOS
80
103
  end
81
104
 
105
+ def test_built_in_types
106
+ define_built_in_types_schema
107
+ assert_equal(<<-EOS, dump)
108
+ create_table("Posts",
109
+ :force => true) do |table|
110
+ table.long_text("attachment")
111
+ table.text("content")
112
+ table.integer16("int16")
113
+ table.integer32("int32")
114
+ table.integer64("int64")
115
+ table.integer8("int8")
116
+ table.tokyo_geo_point("location_tokyo")
117
+ table.wgs84_geo_point("location_wgs84")
118
+ table.boolean("public")
119
+ table.time("published_at")
120
+ table.short_text("title")
121
+ table.unsigned_integer16("uint16")
122
+ table.unsigned_integer32("uint32")
123
+ table.unsigned_integer64("uint64")
124
+ table.unsigned_integer8("uint8")
125
+ table.float("vote_average")
126
+ end
127
+ EOS
128
+ end
129
+
82
130
  def test_reference
83
131
  define_reference_schema
84
132
  assert_equal(<<-EOS, dump)
@@ -33,6 +33,18 @@ class SchemaTypeTest < Test::Unit::TestCase
33
33
  assert_normalize_type("LongText", "LongText")
34
34
  end
35
35
 
36
+ def test_normalize_integer8
37
+ assert_normalize_type("Int8", "int8")
38
+ assert_normalize_type("Int8", "integer8")
39
+ assert_normalize_type("Int8", "Int8")
40
+ end
41
+
42
+ def test_normalize_integer16
43
+ assert_normalize_type("Int16", "int16")
44
+ assert_normalize_type("Int16", "integer16")
45
+ assert_normalize_type("Int16", "Int16")
46
+ end
47
+
36
48
  def test_normalize_integer32
37
49
  assert_normalize_type("Int32", "int")
38
50
  assert_normalize_type("Int32", "integer")
@@ -47,6 +59,18 @@ class SchemaTypeTest < Test::Unit::TestCase
47
59
  assert_normalize_type("Int64", "Int64")
48
60
  end
49
61
 
62
+ def test_normalize_unsigned_integer8
63
+ assert_normalize_type("UInt8", "uint8")
64
+ assert_normalize_type("UInt8", "unsigned_integer8")
65
+ assert_normalize_type("UInt8", "UInt8")
66
+ end
67
+
68
+ def test_normalize_unsigned_integer16
69
+ assert_normalize_type("UInt16", "uint16")
70
+ assert_normalize_type("UInt16", "unsigned_integer16")
71
+ assert_normalize_type("UInt16", "UInt16")
72
+ end
73
+
50
74
  def test_normalize_unsigned_integer32
51
75
  assert_normalize_type("UInt32", "uint")
52
76
  assert_normalize_type("UInt32", "unsigned_integer")
@@ -79,6 +103,17 @@ class SchemaTypeTest < Test::Unit::TestCase
79
103
  assert_normalize_type("Bool", "Bool")
80
104
  end
81
105
 
106
+ def test_normalize_tokyo_geo_point
107
+ assert_normalize_type("TokyoGeoPoint", "tokyo_geo_point")
108
+ assert_normalize_type("TokyoGeoPoint", "TokyoGeoPoint")
109
+ end
110
+
111
+ def test_normalize_wgs84_geo_point
112
+ assert_normalize_type("WGS84GeoPoint", "geo_point")
113
+ assert_normalize_type("WGS84GeoPoint", "wgs84_geo_point")
114
+ assert_normalize_type("WGS84GeoPoint", "WGS84GeoPoint")
115
+ end
116
+
82
117
  def test_normalize_delimit
83
118
  assert_normalize_type("TokenDelimit", "delimit")
84
119
  assert_normalize_type("TokenDelimit", "token_delimit")
data/test/test-schema.rb CHANGED
@@ -343,6 +343,22 @@ class SchemaTest < Test::Unit::TestCase
343
343
  end
344
344
  end
345
345
 
346
+ def test_integer8_column
347
+ assert_nil(context["Posts.rate"])
348
+ Groonga::Schema.create_table("Posts") do |table|
349
+ table.integer8 :rate
350
+ end
351
+ assert_equal(context["Int8"], context["Posts.rate"].range)
352
+ end
353
+
354
+ def test_integer16_column
355
+ assert_nil(context["Posts.rate"])
356
+ Groonga::Schema.create_table("Posts") do |table|
357
+ table.integer16 :rate
358
+ end
359
+ assert_equal(context["Int16"], context["Posts.rate"].range)
360
+ end
361
+
346
362
  def test_integer32_column
347
363
  assert_nil(context["Posts.rate"])
348
364
  Groonga::Schema.create_table("Posts") do |table|
@@ -359,6 +375,22 @@ class SchemaTest < Test::Unit::TestCase
359
375
  assert_equal(context["Int64"], context["Posts.rate"].range)
360
376
  end
361
377
 
378
+ def test_unsigned_integer8_column
379
+ assert_nil(context["Posts.n_viewed"])
380
+ Groonga::Schema.create_table("Posts") do |table|
381
+ table.unsigned_integer8 :n_viewed
382
+ end
383
+ assert_equal(context["UInt8"], context["Posts.n_viewed"].range)
384
+ end
385
+
386
+ def test_unsigned_integer16_column
387
+ assert_nil(context["Posts.n_viewed"])
388
+ Groonga::Schema.create_table("Posts") do |table|
389
+ table.unsigned_integer16 :n_viewed
390
+ end
391
+ assert_equal(context["UInt16"], context["Posts.n_viewed"].range)
392
+ end
393
+
362
394
  def test_unsigned_integer32_column
363
395
  assert_nil(context["Posts.n_viewed"])
364
396
  Groonga::Schema.create_table("Posts") do |table|
@@ -433,6 +465,30 @@ class SchemaTest < Test::Unit::TestCase
433
465
  assert_equal(context["Bool"], context["Posts.public"].range)
434
466
  end
435
467
 
468
+ def test_tokyo_geo_point_column
469
+ assert_nil(context["Posts.location"])
470
+ Groonga::Schema.create_table("Posts") do |table|
471
+ table.tokyo_geo_point :location
472
+ end
473
+ assert_equal(context["TokyoGeoPoint"], context["Posts.location"].range)
474
+ end
475
+
476
+ def test_wgs84_geo_point_column
477
+ assert_nil(context["Posts.location"])
478
+ Groonga::Schema.create_table("Posts") do |table|
479
+ table.wgs84_geo_point :location
480
+ end
481
+ assert_equal(context["WGS84GeoPoint"], context["Posts.location"].range)
482
+ end
483
+
484
+ def test_geo_point_column
485
+ assert_nil(context["Posts.location"])
486
+ Groonga::Schema.create_table("Posts") do |table|
487
+ table.geo_point :location
488
+ end
489
+ assert_equal(context["WGS84GeoPoint"], context["Posts.location"].range)
490
+ end
491
+
436
492
  def test_remove_column
437
493
  Groonga::Schema.create_table("Posts") do |table|
438
494
  table.long_text :content
@@ -456,26 +512,40 @@ class SchemaTest < Test::Unit::TestCase
456
512
  assert_equal("Posts.body", content.name)
457
513
  end
458
514
 
459
- def test_column_again
460
- Groonga::Schema.create_table("Posts") do |table|
461
- table.text :content
515
+ class DefineColumnAgainTest < self
516
+ def test_same_option
517
+ Groonga::Schema.create_table("Posts") do |table|
518
+ table.text :content
519
+ end
520
+
521
+ assert_nothing_raised do
522
+ Groonga::Schema.create_table("Posts") do |table|
523
+ table.text :content
524
+ end
525
+ end
462
526
  end
463
527
 
464
- assert_nothing_raised do
528
+ def test_difference_type
465
529
  Groonga::Schema.create_table("Posts") do |table|
466
530
  table.text :content
467
531
  end
468
- end
469
- end
470
532
 
471
- def test_column_again_with_difference_type
472
- Groonga::Schema.create_table("Posts") do |table|
473
- table.text :content
533
+ assert_raise(Groonga::Schema::ColumnCreationWithDifferentOptions) do
534
+ Groonga::Schema.create_table("Posts") do |table|
535
+ table.integer :content
536
+ end
537
+ end
474
538
  end
475
539
 
476
- assert_raise(Groonga::Schema::ColumnCreationWithDifferentOptions) do
540
+ def test_same_option_by_groonga_object
477
541
  Groonga::Schema.create_table("Posts") do |table|
478
- table.integer :content
542
+ table.text :content
543
+ end
544
+
545
+ assert_nothing_raised do
546
+ Groonga::Schema.create_table("Posts") do |table|
547
+ table.column(:content, Groonga["Text"])
548
+ end
479
549
  end
480
550
  end
481
551
  end
@@ -53,27 +53,37 @@ class TableSelectTest < Test::Unit::TestCase
53
53
  :user => "darashi")
54
54
  end
55
55
 
56
+ setup
57
+ def setup_variables
58
+ @result = nil
59
+ end
60
+
61
+ teardown
62
+ def teardown_expression_close
63
+ @result.expression.close if @result # TODO: We want to remove it.
64
+ end
65
+
56
66
  def test_sub_expression
57
- result = @comments.select do |record|
67
+ @result = @comments.select do |record|
58
68
  record.match("Hello", "content") &
59
69
  (record["created_at"] < Time.parse("2009-08-01"))
60
70
  end
61
- assert_equal_select_result([@comment2], result)
71
+ assert_equal_select_result([@comment2], @result)
62
72
  end
63
73
 
64
74
  def test_query
65
- result = @comments.select("content:@Hello")
66
- assert_equal_select_result([@comment1, @comment2], result)
75
+ @result = @comments.select("content:@Hello")
76
+ assert_equal_select_result([@comment1, @comment2], @result)
67
77
  end
68
78
 
69
79
  def test_query_with_parser
70
- result = @comments.select("content @ \"Hello\"", :syntax => :script)
71
- assert_equal_select_result([@comment1, @comment2], result)
80
+ @result = @comments.select("content @ \"Hello\"", :syntax => :script)
81
+ assert_equal_select_result([@comment1, @comment2], @result)
72
82
  end
73
83
 
74
84
  def test_query_with_default_column
75
- result = @comments.select("Hello", {:default_column => 'content'})
76
- assert_equal_select_result([@comment1, @comment2], result)
85
+ @result = @comments.select("Hello", {:default_column => 'content'})
86
+ assert_equal_select_result([@comment1, @comment2], @result)
77
87
  end
78
88
 
79
89
  def test_expression
@@ -82,104 +92,105 @@ class TableSelectTest < Test::Unit::TestCase
82
92
  expression.append_object(variable)
83
93
  expression.parse("content:@Hello", :syntax => :query)
84
94
  expression.compile
85
- result = @comments.select(expression)
86
- assert_equal(expression, result.expression)
87
- assert_equal_select_result([@comment1, @comment2], result)
95
+ @result = @comments.select(expression)
96
+ assert_equal(expression, @result.expression)
97
+ assert_equal_select_result([@comment1, @comment2], @result)
88
98
  end
89
99
 
90
100
  def test_query_with_block
91
- result = @comments.select("content:@Hello") do |record|
101
+ @result = @comments.select("content:@Hello") do |record|
92
102
  record["created_at"] < Time.parse("2009-08-01")
93
103
  end
94
- assert_equal_select_result([@comment2], result)
104
+ assert_equal_select_result([@comment2], @result)
95
105
  end
96
106
 
97
107
  def test_query_with_block_match
98
- result = @comments.select("content:@Hello") do |record|
108
+ @result = @comments.select("content:@Hello") do |record|
99
109
  record.match("World", "content")
100
110
  end
101
- assert_equal_select_result([@comment2], result)
111
+ assert_equal_select_result([@comment2], @result)
102
112
  end
103
113
 
104
114
  def test_without_block
115
+ @result = @comments.select
105
116
  assert_equal_select_result([@comment1, @comment2,
106
117
  @comment3, @japanese_comment],
107
- @comments.select)
118
+ @result)
108
119
  end
109
120
 
110
121
  def test_query_japanese
111
- result = @comments.select("content:@ボロTV")
112
- assert_equal_select_result([@japanese_comment], result)
122
+ @result = @comments.select("content:@ボロTV")
123
+ assert_equal_select_result([@japanese_comment], @result)
113
124
  end
114
125
 
115
126
  def test_but_query
116
- result = @comments.select do |record|
127
+ @result = @comments.select do |record|
117
128
  record["content"].match "Hello -World"
118
129
  end
119
- assert_equal_select_result([@comment1], result)
130
+ assert_equal_select_result([@comment1], @result)
120
131
  end
121
132
 
122
133
  def test_query_with_three_terms
123
- result = @comments.select do |record|
134
+ @result = @comments.select do |record|
124
135
  record["content"].match "Say Hello World"
125
136
  end
126
- assert_equal_select_result([], result)
137
+ assert_equal_select_result([], @result)
127
138
  end
128
139
 
129
140
  def test_query_with_brackets
130
- result = @comments.select do |record|
141
+ @result = @comments.select do |record|
131
142
  record["content"].match "Say (Hello World)"
132
143
  end
133
- assert_equal_select_result([], result)
144
+ assert_equal_select_result([], @result)
134
145
  end
135
146
 
136
147
  def test_equal_reference_column_by_key
137
- result = @comments.select do |record|
148
+ @result = @comments.select do |record|
138
149
  record["user"] == "darashi"
139
150
  end
140
- assert_equal_select_result([@japanese_comment], result)
151
+ assert_equal_select_result([@japanese_comment], @result)
141
152
  end
142
153
 
143
154
  def test_not_equal_reference_column_by_key
144
- result = @comments.select('user != "darashi"', :syntax => :script)
155
+ @result = @comments.select('user != "darashi"', :syntax => :script)
145
156
  assert_equal_select_result([@comment1, @comment2, @comment3],
146
- result)
157
+ @result)
147
158
  end
148
159
 
149
160
  def test_not_equal_block
150
161
  only_ruby19
151
- result = @comments.select do |record|
162
+ @result = @comments.select do |record|
152
163
  record.user != "darashi"
153
164
  end
154
165
  assert_equal_select_result([@comment1, @comment2, @comment3],
155
- result)
166
+ @result)
156
167
  end
157
168
 
158
169
  def test_equal_reference_column_by_nonexistent_key
159
- result = @comments.select do |record|
170
+ @result = @comments.select do |record|
160
171
  record["user"] == "nonexistent"
161
172
  end
162
- assert_equal_select_result([], result)
173
+ assert_equal_select_result([], @result)
163
174
  end
164
175
 
165
176
  def test_query_key
166
- result = @users.select do |record|
177
+ @result = @users.select do |record|
167
178
  record["_key"] =~ "mori"
168
179
  end
169
- assert_equal_select_result([@users["morita"]], result)
180
+ assert_equal_select_result([@users["morita"]], @result)
170
181
  end
171
182
 
172
183
  def test_symbol
173
- result = @comments.select do |record|
184
+ @result = @comments.select do |record|
174
185
  record[:content].match("Say Hello World")
175
186
  end
176
- assert_equal_select_result([], result)
187
+ assert_equal_select_result([], @result)
177
188
  end
178
189
 
179
190
  def test_method
180
- result = @comments.select do |record|
191
+ @result = @comments.select do |record|
181
192
  record.content.match("Say Hello World")
182
193
  end
183
- assert_equal_select_result([], result)
194
+ assert_equal_select_result([], @result)
184
195
  end
185
196
  end
@@ -62,6 +62,36 @@ class VariableSizeColumnTest < Test::Unit::TestCase
62
62
  assert_not_predicate(@nick_names, :scalar?)
63
63
  end
64
64
 
65
+ def test_compressed?
66
+ description = @users.define_column("description", "ShortText",
67
+ :compress => :zlib)
68
+ if context.support_zlib?
69
+ assert_predicate(description, :compressed?)
70
+ else
71
+ assert_not_predicate(description, :compressed?)
72
+ end
73
+ end
74
+
75
+ def test_compressed_zlib?
76
+ description = @users.define_column("description", "ShortText",
77
+ :compress => :zlib)
78
+ if context.support_zlib?
79
+ assert_send([description, :compressed?, :zlib])
80
+ else
81
+ assert_not_send([description, :compressed?, :zlib])
82
+ end
83
+ end
84
+
85
+ def test_compressed_lzo?
86
+ description = @users.define_column("description", "ShortText",
87
+ :compress => :lzo)
88
+ if context.support_lzo?
89
+ assert_send([description, :compressed?, :lzo])
90
+ else
91
+ assert_not_send([description, :compressed?, :lzo])
92
+ end
93
+ end
94
+
65
95
  def test_inspect
66
96
  assert_equal("#<Groonga::VariableSizeColumn " +
67
97
  "id: <#{@name.id}>, " +
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,5 +1,6 @@
1
1
  /* -*- c-basic-offset: 2 -*- */
2
- /* Copyright(C) 2010 Brazil
2
+ /*
3
+ Copyright(C) 2010-2012 Brazil
3
4
 
4
5
  This library is free software; you can redistribute it and/or
5
6
  modify it under the terms of the GNU Lesser General Public
@@ -17,7 +18,7 @@
17
18
  #ifndef GRN_PLUGIN_H
18
19
  #define GRN_PLUGIN_H
19
20
 
20
- #include "groonga.h"
21
+ #include <groonga.h>
21
22
 
22
23
  #ifdef __cplusplus
23
24
  extern "C" {