rroonga 3.0.9-x86-mingw32 → 3.1.0-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (438) hide show
  1. checksums.yaml +4 -4
  2. data/README.textile +10 -10
  3. data/bin/groonga-database-inspect +40 -0
  4. data/doc/text/news.textile +19 -0
  5. data/ext/groonga/extconf.rb +3 -1
  6. data/ext/groonga/rb-grn-expression.c +1 -1
  7. data/ext/groonga/rb-grn-operator.c +218 -8
  8. data/ext/groonga/rb-grn.h +4 -2
  9. data/lib/1.9/groonga.so +0 -0
  10. data/lib/2.0/groonga.so +0 -0
  11. data/lib/2.1/groonga.so +0 -0
  12. data/lib/groonga.rb +4 -1
  13. data/lib/groonga/column.rb +25 -0
  14. data/lib/groonga/database-inspector.rb +279 -0
  15. data/lib/groonga/database.rb +32 -2
  16. data/lib/groonga/dumper.rb +7 -13
  17. data/lib/groonga/index-column.rb +11 -1
  18. data/lib/groonga/statistic-measurer.rb +37 -0
  19. data/lib/groonga/table.rb +25 -0
  20. data/rroonga-build.rb +2 -2
  21. data/test/groonga-test-utils.rb +10 -10
  22. data/test/test-column.rb +26 -0
  23. data/test/test-database-inspector.rb +676 -0
  24. data/test/test-database.rb +25 -1
  25. data/test/test-expression-builder.rb +1 -0
  26. data/test/test-expression.rb +73 -0
  27. data/test/test-index-column.rb +23 -0
  28. data/test/test-statistic-measurer.rb +55 -0
  29. data/test/test-table.rb +40 -0
  30. data/vendor/local/bin/groonga-benchmark.exe +0 -0
  31. data/vendor/local/bin/groonga.exe +0 -0
  32. data/vendor/local/bin/libgroonga-0.dll +0 -0
  33. data/vendor/local/bin/libmecab-1.dll +0 -0
  34. data/vendor/local/bin/libmsgpack-3.dll +0 -0
  35. data/vendor/local/bin/libmsgpackc-2.dll +0 -0
  36. data/vendor/local/bin/mecab-config +0 -0
  37. data/vendor/local/bin/mecab.exe +0 -0
  38. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
  39. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
  40. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
  41. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.la +0 -0
  42. data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
  43. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
  44. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
  45. data/vendor/local/lib/groonga/plugins/suggest/suggest.la +0 -0
  46. data/vendor/local/lib/groonga/plugins/table/table.a +0 -0
  47. data/vendor/local/lib/groonga/plugins/table/table.dll +0 -0
  48. data/vendor/local/lib/groonga/plugins/table/table.dll.a +0 -0
  49. data/vendor/local/lib/groonga/plugins/table/table.la +0 -0
  50. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
  51. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
  52. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
  53. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.la +0 -0
  54. data/vendor/local/lib/libgroonga.a +0 -0
  55. data/vendor/local/lib/libgroonga.dll.a +0 -0
  56. data/vendor/local/lib/libgroonga.la +0 -0
  57. data/vendor/local/lib/libmecab.a +0 -0
  58. data/vendor/local/lib/libmecab.dll.a +0 -0
  59. data/vendor/local/lib/libmecab.la +0 -0
  60. data/vendor/local/lib/libmsgpack.a +0 -0
  61. data/vendor/local/lib/libmsgpack.dll.a +0 -0
  62. data/vendor/local/lib/libmsgpack.la +0 -0
  63. data/vendor/local/lib/libmsgpackc.a +0 -0
  64. data/vendor/local/lib/libmsgpackc.dll.a +0 -0
  65. data/vendor/local/lib/libmsgpackc.la +0 -0
  66. data/vendor/local/lib/pkgconfig/groonga.pc +2 -2
  67. data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
  68. data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
  69. data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
  70. data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
  71. data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
  72. data/vendor/local/sbin/groonga-httpd-restart +0 -0
  73. data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
  74. data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +7 -7
  75. data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +3 -3
  76. data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +3 -3
  77. data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +3 -3
  78. data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +3 -3
  79. data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +3 -3
  80. data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +3 -3
  81. data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +25 -39
  82. data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +41 -0
  83. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/ruby_load.txt +1 -1
  84. data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-benchmark.txt +273 -0
  85. data/vendor/local/share/doc/groonga/en/html/_sources/suggest/completion.txt +16 -6
  86. data/vendor/local/share/doc/groonga/en/html/characteristic.html +5 -5
  87. data/vendor/local/share/doc/groonga/en/html/community.html +5 -5
  88. data/vendor/local/share/doc/groonga/en/html/contribution.html +5 -5
  89. data/vendor/local/share/doc/groonga/en/html/contribution/development.html +5 -5
  90. data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +5 -5
  91. data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +5 -5
  92. data/vendor/local/share/doc/groonga/en/html/contribution/development/document.html +5 -5
  93. data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +5 -5
  94. data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +5 -5
  95. data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +5 -5
  96. data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +5 -5
  97. data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +5 -5
  98. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +5 -5
  99. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +5 -5
  100. data/vendor/local/share/doc/groonga/en/html/contribution/report.html +5 -5
  101. data/vendor/local/share/doc/groonga/en/html/development.html +5 -5
  102. data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +5 -5
  103. data/vendor/local/share/doc/groonga/en/html/genindex.html +19 -19
  104. data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +5 -5
  105. data/vendor/local/share/doc/groonga/en/html/index.html +7 -7
  106. data/vendor/local/share/doc/groonga/en/html/install.html +5 -5
  107. data/vendor/local/share/doc/groonga/en/html/install/centos.html +10 -10
  108. data/vendor/local/share/doc/groonga/en/html/install/debian.html +8 -8
  109. data/vendor/local/share/doc/groonga/en/html/install/fedora.html +8 -8
  110. data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +8 -8
  111. data/vendor/local/share/doc/groonga/en/html/install/others.html +8 -8
  112. data/vendor/local/share/doc/groonga/en/html/install/solaris.html +8 -8
  113. data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +8 -8
  114. data/vendor/local/share/doc/groonga/en/html/install/windows.html +50 -45
  115. data/vendor/local/share/doc/groonga/en/html/limitations.html +5 -5
  116. data/vendor/local/share/doc/groonga/en/html/news.html +220 -172
  117. data/vendor/local/share/doc/groonga/en/html/news/0.x.html +5 -5
  118. data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +6 -6
  119. data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +5 -5
  120. data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +5 -5
  121. data/vendor/local/share/doc/groonga/en/html/news/senna.html +5 -5
  122. data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
  123. data/vendor/local/share/doc/groonga/en/html/reference.html +7 -7
  124. data/vendor/local/share/doc/groonga/en/html/reference/api.html +5 -5
  125. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +5 -5
  126. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +5 -5
  127. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +5 -5
  128. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +5 -5
  129. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +5 -5
  130. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +5 -5
  131. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +5 -5
  132. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +5 -5
  133. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +5 -5
  134. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +5 -5
  135. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +5 -5
  136. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +5 -5
  137. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +5 -5
  138. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +5 -5
  139. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +5 -5
  140. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +5 -5
  141. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +5 -5
  142. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +5 -5
  143. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +5 -5
  144. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +5 -5
  145. data/vendor/local/share/doc/groonga/en/html/reference/cast.html +5 -5
  146. data/vendor/local/share/doc/groonga/en/html/reference/command.html +5 -5
  147. data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +5 -5
  148. data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +5 -5
  149. data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +5 -5
  150. data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +5 -5
  151. data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +5 -5
  152. data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +5 -5
  153. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +5 -5
  154. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +5 -5
  155. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +5 -5
  156. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +5 -5
  157. data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +5 -5
  158. data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +5 -5
  159. data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +5 -5
  160. data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +5 -5
  161. data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +5 -5
  162. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +5 -5
  163. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +5 -5
  164. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +5 -5
  165. data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +5 -5
  166. data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +5 -5
  167. data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +5 -5
  168. data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +5 -5
  169. data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +12 -5
  170. data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +5 -5
  171. data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +5 -5
  172. data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +10 -10
  173. data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +5 -5
  174. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +5 -5
  175. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +5 -5
  176. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +5 -5
  177. data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +5 -5
  178. data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +5 -5
  179. data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/add.html +5 -5
  180. data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/get.html +5 -5
  181. data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/set.html +5 -5
  182. data/vendor/local/share/doc/groonga/en/html/reference/executables.html +7 -7
  183. data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +10 -10
  184. data/vendor/local/share/doc/groonga/en/html/reference/executables/grntest.html +5 -5
  185. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +410 -0
  186. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +14 -14
  187. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +5 -5
  188. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
  189. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +5 -5
  190. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +5 -5
  191. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +33 -33
  192. data/vendor/local/share/doc/groonga/en/html/reference/function.html +5 -5
  193. data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +5 -5
  194. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +5 -5
  195. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +5 -5
  196. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +5 -5
  197. data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +5 -5
  198. data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +5 -5
  199. data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +5 -5
  200. data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +5 -5
  201. data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +5 -5
  202. data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +5 -5
  203. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +5 -5
  204. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +5 -5
  205. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +5 -5
  206. data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +5 -5
  207. data/vendor/local/share/doc/groonga/en/html/reference/log.html +5 -5
  208. data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +5 -5
  209. data/vendor/local/share/doc/groonga/en/html/reference/output.html +5 -5
  210. data/vendor/local/share/doc/groonga/en/html/reference/pseudo_column.html +5 -5
  211. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +5 -5
  212. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +5 -5
  213. data/vendor/local/share/doc/groonga/en/html/reference/tables.html +5 -5
  214. data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +5 -5
  215. data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +5 -5
  216. data/vendor/local/share/doc/groonga/en/html/reference/types.html +5 -5
  217. data/vendor/local/share/doc/groonga/en/html/search.html +5 -5
  218. data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
  219. data/vendor/local/share/doc/groonga/en/html/server.html +5 -5
  220. data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +5 -5
  221. data/vendor/local/share/doc/groonga/en/html/server/http.html +5 -5
  222. data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +5 -5
  223. data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +5 -5
  224. data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +5 -5
  225. data/vendor/local/share/doc/groonga/en/html/server/package.html +5 -5
  226. data/vendor/local/share/doc/groonga/en/html/spec.html +5 -5
  227. data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +5 -5
  228. data/vendor/local/share/doc/groonga/en/html/spec/search.html +5 -5
  229. data/vendor/local/share/doc/groonga/en/html/suggest.html +5 -5
  230. data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +21 -11
  231. data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +5 -5
  232. data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +5 -5
  233. data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +5 -5
  234. data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +5 -5
  235. data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +5 -5
  236. data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
  237. data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +5 -5
  238. data/vendor/local/share/doc/groonga/en/html/tutorial.html +5 -5
  239. data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +5 -5
  240. data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +5 -5
  241. data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +5 -5
  242. data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +8 -8
  243. data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +5 -5
  244. data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +5 -5
  245. data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +5 -5
  246. data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +12 -12
  247. data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +5 -5
  248. data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +5 -5
  249. data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +5 -5
  250. data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
  251. data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +7 -7
  252. data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +3 -3
  253. data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +3 -3
  254. data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +3 -3
  255. data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +3 -3
  256. data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +3 -3
  257. data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +3 -3
  258. data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +25 -39
  259. data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +41 -0
  260. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/ruby_load.txt +1 -1
  261. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-benchmark.txt +273 -0
  262. data/vendor/local/share/doc/groonga/ja/html/_sources/suggest/completion.txt +16 -6
  263. data/vendor/local/share/doc/groonga/ja/html/characteristic.html +5 -5
  264. data/vendor/local/share/doc/groonga/ja/html/community.html +5 -5
  265. data/vendor/local/share/doc/groonga/ja/html/contribution.html +5 -5
  266. data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +5 -5
  267. data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +5 -5
  268. data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +5 -5
  269. data/vendor/local/share/doc/groonga/ja/html/contribution/development/document.html +5 -5
  270. data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +5 -5
  271. data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +5 -5
  272. data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +5 -5
  273. data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +5 -5
  274. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +5 -5
  275. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +5 -5
  276. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +5 -5
  277. data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +5 -5
  278. data/vendor/local/share/doc/groonga/ja/html/development.html +5 -5
  279. data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +5 -5
  280. data/vendor/local/share/doc/groonga/ja/html/genindex.html +19 -19
  281. data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +5 -5
  282. data/vendor/local/share/doc/groonga/ja/html/index.html +7 -7
  283. data/vendor/local/share/doc/groonga/ja/html/install.html +5 -5
  284. data/vendor/local/share/doc/groonga/ja/html/install/centos.html +10 -10
  285. data/vendor/local/share/doc/groonga/ja/html/install/debian.html +8 -8
  286. data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +8 -8
  287. data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +8 -8
  288. data/vendor/local/share/doc/groonga/ja/html/install/others.html +8 -8
  289. data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +8 -8
  290. data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +8 -8
  291. data/vendor/local/share/doc/groonga/ja/html/install/windows.html +39 -38
  292. data/vendor/local/share/doc/groonga/ja/html/limitations.html +5 -5
  293. data/vendor/local/share/doc/groonga/ja/html/news.html +234 -173
  294. data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +5 -5
  295. data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +6 -6
  296. data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +5 -5
  297. data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +5 -5
  298. data/vendor/local/share/doc/groonga/ja/html/news/senna.html +5 -5
  299. data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
  300. data/vendor/local/share/doc/groonga/ja/html/reference.html +7 -7
  301. data/vendor/local/share/doc/groonga/ja/html/reference/api.html +5 -5
  302. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +5 -5
  303. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +5 -5
  304. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +5 -5
  305. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +5 -5
  306. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +5 -5
  307. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +5 -5
  308. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +5 -5
  309. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +5 -5
  310. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +5 -5
  311. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +5 -5
  312. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +5 -5
  313. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +5 -5
  314. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +5 -5
  315. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +5 -5
  316. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +5 -5
  317. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +5 -5
  318. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +5 -5
  319. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +5 -5
  320. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +5 -5
  321. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +5 -5
  322. data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +5 -5
  323. data/vendor/local/share/doc/groonga/ja/html/reference/command.html +5 -5
  324. data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +5 -5
  325. data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +5 -5
  326. data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +5 -5
  327. data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +5 -5
  328. data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +5 -5
  329. data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +5 -5
  330. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +5 -5
  331. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +5 -5
  332. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +5 -5
  333. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +5 -5
  334. data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +5 -5
  335. data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +5 -5
  336. data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +5 -5
  337. data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +5 -5
  338. data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +5 -5
  339. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +5 -5
  340. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +5 -5
  341. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +5 -5
  342. data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +5 -5
  343. data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +5 -5
  344. data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +5 -5
  345. data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +5 -5
  346. data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +12 -5
  347. data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +5 -5
  348. data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +5 -5
  349. data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +10 -10
  350. data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +5 -5
  351. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +5 -5
  352. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +5 -5
  353. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +5 -5
  354. data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +5 -5
  355. data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +5 -5
  356. data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/add.html +5 -5
  357. data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/get.html +5 -5
  358. data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/set.html +5 -5
  359. data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +7 -7
  360. data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +10 -10
  361. data/vendor/local/share/doc/groonga/ja/html/reference/executables/grntest.html +5 -5
  362. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +411 -0
  363. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +14 -14
  364. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +5 -5
  365. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
  366. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +5 -5
  367. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +5 -5
  368. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +33 -33
  369. data/vendor/local/share/doc/groonga/ja/html/reference/function.html +5 -5
  370. data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +5 -5
  371. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +5 -5
  372. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +5 -5
  373. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +5 -5
  374. data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +5 -5
  375. data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +5 -5
  376. data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +5 -5
  377. data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +5 -5
  378. data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +5 -5
  379. data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +5 -5
  380. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +5 -5
  381. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +5 -5
  382. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +5 -5
  383. data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +5 -5
  384. data/vendor/local/share/doc/groonga/ja/html/reference/log.html +5 -5
  385. data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +5 -5
  386. data/vendor/local/share/doc/groonga/ja/html/reference/output.html +5 -5
  387. data/vendor/local/share/doc/groonga/ja/html/reference/pseudo_column.html +5 -5
  388. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +5 -5
  389. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +5 -5
  390. data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +5 -5
  391. data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +5 -5
  392. data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +5 -5
  393. data/vendor/local/share/doc/groonga/ja/html/reference/types.html +5 -5
  394. data/vendor/local/share/doc/groonga/ja/html/search.html +5 -5
  395. data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
  396. data/vendor/local/share/doc/groonga/ja/html/server.html +5 -5
  397. data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +5 -5
  398. data/vendor/local/share/doc/groonga/ja/html/server/http.html +5 -5
  399. data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +5 -5
  400. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +5 -5
  401. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +5 -5
  402. data/vendor/local/share/doc/groonga/ja/html/server/package.html +5 -5
  403. data/vendor/local/share/doc/groonga/ja/html/spec.html +5 -5
  404. data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +5 -5
  405. data/vendor/local/share/doc/groonga/ja/html/spec/search.html +5 -5
  406. data/vendor/local/share/doc/groonga/ja/html/suggest.html +5 -5
  407. data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +21 -11
  408. data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +5 -5
  409. data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +5 -5
  410. data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +5 -5
  411. data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +5 -5
  412. data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +5 -5
  413. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
  414. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +5 -5
  415. data/vendor/local/share/doc/groonga/ja/html/tutorial.html +5 -5
  416. data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +5 -5
  417. data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +5 -5
  418. data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +5 -5
  419. data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +8 -8
  420. data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +5 -5
  421. data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +5 -5
  422. data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +5 -5
  423. data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +12 -12
  424. data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +5 -5
  425. data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +5 -5
  426. data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +5 -5
  427. data/vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh +0 -0
  428. data/vendor/local/share/groonga/examples/dictionary/edict/edict2grn.rb +0 -0
  429. data/vendor/local/share/groonga/examples/dictionary/eijiro/eijiro-import.sh +0 -0
  430. data/vendor/local/share/groonga/examples/dictionary/eijiro/eijiro2grn.rb +0 -0
  431. data/vendor/local/share/groonga/examples/dictionary/gene95/gene-import.sh +0 -0
  432. data/vendor/local/share/groonga/examples/dictionary/gene95/gene2grn.rb +0 -0
  433. data/vendor/local/share/groonga/examples/dictionary/init-db.sh +0 -0
  434. data/vendor/local/share/groonga/examples/dictionary/jmdict/jmdict.rb +0 -0
  435. data/vendor/local/share/man/ja/man1/groonga.1 +489 -491
  436. data/vendor/local/share/man/man1/groonga.1 +500 -498
  437. metadata +21 -8
  438. data/lib/groonga/view-record.rb +0 -50
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rroonga
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.9
4
+ version: 3.1.0
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - Kouhei Sutou
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2013-10-29 00:00:00.000000000 Z
15
+ date: 2013-11-29 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: pkg-config
@@ -183,9 +183,9 @@ dependencies:
183
183
  - !ruby/object:Gem::Version
184
184
  version: '0'
185
185
  description: |-
186
- rroonga is an extension library to use groonga's DB-API
187
- layer. rroonga provides Rubyish readable and writable API
188
- not C like API. You can use groonga's fast and highly
186
+ Rroonga is an extension library to use Groonga's DB-API
187
+ layer. Rroonga provides Rubyish readable and writable API
188
+ not C like API. You can use Groonga's fast and highly
189
189
  functional features from Ruby with Rubyish form.
190
190
  email:
191
191
  - kou@clear-code.com
@@ -194,6 +194,7 @@ email:
194
194
  - y.hayamizu@gmail.com
195
195
  - dara@shidara.net
196
196
  executables:
197
+ - groonga-database-inspect
197
198
  - groonga-index-dump
198
199
  - grntest-log-analyze
199
200
  - grndump
@@ -217,15 +218,18 @@ files:
217
218
  - lib/groonga/sub-records.rb
218
219
  - lib/groonga/pagination.rb
219
220
  - lib/groonga/index-column.rb
220
- - lib/groonga/view-record.rb
221
221
  - lib/groonga/patricia-trie.rb
222
+ - lib/groonga/database-inspector.rb
222
223
  - lib/groonga/context/command-executor.rb
224
+ - lib/groonga/statistic-measurer.rb
223
225
  - lib/groonga/grntest-log.rb
224
226
  - lib/groonga/dumper.rb
225
227
  - lib/groonga/posting.rb
226
228
  - lib/groonga/memory-pool.rb
229
+ - lib/groonga/table.rb
227
230
  - lib/groonga/query-logger.rb
228
231
  - lib/groonga/context.rb
232
+ - lib/groonga/column.rb
229
233
  - lib/groonga/record.rb
230
234
  - lib/groonga/expression-builder.rb
231
235
  - lib/groonga/logger.rb
@@ -287,6 +291,7 @@ files:
287
291
  - test/test-vector-column.rb
288
292
  - test/test-schema-dumper.rb
289
293
  - test/run-test.rb
294
+ - test/test-database-inspector.rb
290
295
  - test/test-procedure.rb
291
296
  - test/test-hash.rb
292
297
  - test/test-expression.rb
@@ -297,6 +302,7 @@ files:
297
302
  - test/test-sub-records.rb
298
303
  - test/test-encoding.rb
299
304
  - test/test-snippet.rb
305
+ - test/test-statistic-measurer.rb
300
306
  - test/test-index-cursor.rb
301
307
  - test/test-type.rb
302
308
  - test/test-table-dumper.rb
@@ -332,6 +338,7 @@ files:
332
338
  - test/test-database.rb
333
339
  - test/test-double-array-trie.rb
334
340
  - test/test-record.rb
341
+ - bin/groonga-database-inspect
335
342
  - bin/groonga-index-dump
336
343
  - bin/grntest-log-analyze
337
344
  - bin/grndump
@@ -530,6 +537,7 @@ files:
530
537
  - vendor/local/share/doc/groonga/en/html/_sources/reference/commands_not_implemented/set.txt
531
538
  - vendor/local/share/doc/groonga/en/html/_sources/reference/executables/grnslap.txt
532
539
  - vendor/local/share/doc/groonga/en/html/_sources/reference/executables/grntest.txt
540
+ - vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-benchmark.txt
533
541
  - vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-httpd.txt
534
542
  - vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-server-http.txt
535
543
  - vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-suggest-create-dataset.txt
@@ -716,6 +724,7 @@ files:
716
724
  - vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/set.html
717
725
  - vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html
718
726
  - vendor/local/share/doc/groonga/en/html/reference/executables/grntest.html
727
+ - vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html
719
728
  - vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html
720
729
  - vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html
721
730
  - vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html
@@ -879,6 +888,7 @@ files:
879
888
  - vendor/local/share/doc/groonga/ja/html/_sources/reference/commands_not_implemented/set.txt
880
889
  - vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/grnslap.txt
881
890
  - vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/grntest.txt
891
+ - vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-benchmark.txt
882
892
  - vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-httpd.txt
883
893
  - vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-server-http.txt
884
894
  - vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-suggest-create-dataset.txt
@@ -1065,6 +1075,7 @@ files:
1065
1075
  - vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/set.html
1066
1076
  - vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html
1067
1077
  - vendor/local/share/doc/groonga/ja/html/reference/executables/grntest.html
1078
+ - vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html
1068
1079
  - vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html
1069
1080
  - vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html
1070
1081
  - vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html
@@ -1289,10 +1300,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1289
1300
  version: '0'
1290
1301
  requirements: []
1291
1302
  rubyforge_project: groonga
1292
- rubygems_version: 2.0.7
1303
+ rubygems_version: 2.0.13
1293
1304
  signing_key:
1294
1305
  specification_version: 4
1295
- summary: Ruby bindings for groonga that provide full text search and column store
1306
+ summary: Ruby bindings for Groonga that provide full text search and column store
1296
1307
  features.
1297
1308
  test_files:
1298
1309
  - test/test-normalizer.rb
@@ -1300,6 +1311,7 @@ test_files:
1300
1311
  - test/test-vector-column.rb
1301
1312
  - test/test-schema-dumper.rb
1302
1313
  - test/run-test.rb
1314
+ - test/test-database-inspector.rb
1303
1315
  - test/test-procedure.rb
1304
1316
  - test/test-hash.rb
1305
1317
  - test/test-expression.rb
@@ -1310,6 +1322,7 @@ test_files:
1310
1322
  - test/test-sub-records.rb
1311
1323
  - test/test-encoding.rb
1312
1324
  - test/test-snippet.rb
1325
+ - test/test-statistic-measurer.rb
1313
1326
  - test/test-index-cursor.rb
1314
1327
  - test/test-type.rb
1315
1328
  - test/test-table-dumper.rb
@@ -1,50 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- #
3
- # Copyright (C) 2010 Kouhei Sutou <kou@clear-code.com>
4
- #
5
- # This library is free software; you can redistribute it and/or
6
- # modify it under the terms of the GNU Lesser General Public
7
- # License version 2.1 as published by the Free Software Foundation.
8
- #
9
- # This library is distributed in the hope that it will be useful,
10
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
- # Lesser General Public License for more details.
13
- #
14
- # You should have received a copy of the GNU Lesser General Public
15
- # License along with this library; if not, write to the Free Software
16
- # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
-
18
- module Groonga
19
- class ViewRecord
20
- # レコードが所属するビュー
21
- attr_reader :view
22
- # レコードのID
23
- attr_reader :id
24
-
25
- # _table_ の _id_ に対応するレコードを作成する。
26
- def initialize(view, id)
27
- @view = view
28
- @id = id
29
- end
30
-
31
- # _record_ と _other_ が同じgroongaのレコードなら +true+ を返し、
32
- # そうでなければ +false+ を返す。
33
- def ==(other)
34
- self.class == other.class and
35
- [view, id] == [other.view, other.id]
36
- end
37
-
38
- # このレコードの _column_name_ で指定されたカラムの値を返す。
39
- def [](column_name)
40
- @view.column_value(@id, column_name)
41
- end
42
-
43
- private
44
- def method_missing(name, *args, &block)
45
- return super if /(?:=|\?)\z/ =~ name.to_s
46
- return super unless args.empty?
47
- self[name.to_s]
48
- end
49
- end
50
- end