rroonga 1.0.1-x86-mingw32 → 1.1.0-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (387) hide show
  1. data/NEWS.ja.rdoc +146 -0
  2. data/NEWS.rdoc +146 -0
  3. data/README.ja.rdoc +7 -5
  4. data/README.rdoc +6 -5
  5. data/Rakefile +170 -18
  6. data/benchmark/create-wikipedia-database.rb +212 -0
  7. data/benchmark/read-write-many-small-items.rb +0 -0
  8. data/benchmark/repeat-load.rb +213 -0
  9. data/benchmark/select.rb +1052 -0
  10. data/benchmark/write-many-small-items.rb +0 -0
  11. data/example/bookmark.rb +94 -91
  12. data/example/index-html.rb +0 -0
  13. data/ext/groonga/extconf.rb +6 -6
  14. data/ext/groonga/rb-grn-accessor.c +1 -1
  15. data/ext/groonga/rb-grn-array.c +1 -1
  16. data/ext/groonga/rb-grn-column.c +201 -10
  17. data/ext/groonga/rb-grn-context.c +119 -20
  18. data/ext/groonga/rb-grn-database.c +27 -4
  19. data/ext/groonga/rb-grn-exception.c +15 -0
  20. data/ext/groonga/rb-grn-expression.c +14 -10
  21. data/ext/groonga/rb-grn-hash.c +4 -4
  22. data/ext/groonga/rb-grn-index-column.c +10 -6
  23. data/ext/groonga/rb-grn-logger.c +2 -2
  24. data/ext/groonga/rb-grn-object.c +33 -29
  25. data/ext/groonga/{rb-grn-operation.c → rb-grn-operator.c} +89 -87
  26. data/ext/groonga/rb-grn-patricia-trie.c +12 -12
  27. data/ext/groonga/rb-grn-plugin.c +134 -0
  28. data/ext/groonga/rb-grn-procedure.c +1 -1
  29. data/ext/groonga/rb-grn-query.c +7 -7
  30. data/ext/groonga/rb-grn-snippet.c +4 -3
  31. data/ext/groonga/rb-grn-table-cursor.c +1 -1
  32. data/ext/groonga/rb-grn-table-key-support.c +27 -24
  33. data/ext/groonga/rb-grn-table.c +119 -58
  34. data/ext/groonga/rb-grn-type.c +1 -1
  35. data/ext/groonga/rb-grn-utils.c +20 -19
  36. data/ext/groonga/rb-grn-variable.c +1 -1
  37. data/ext/groonga/rb-grn-view-accessor.c +1 -1
  38. data/ext/groonga/rb-grn-view.c +1 -1
  39. data/ext/groonga/rb-grn.h +26 -20
  40. data/ext/groonga/rb-groonga.c +6 -4
  41. data/extconf.rb +10 -4
  42. data/html/developer.html +8 -2
  43. data/html/favicon.ico +0 -0
  44. data/html/favicon.svg +591 -0
  45. data/html/index.html +78 -12
  46. data/html/logo.svg +612 -0
  47. data/html/ranguba.css +92 -7
  48. data/html/readme.svg +256 -0
  49. data/lib/groonga.so +0 -0
  50. data/lib/groonga/context.rb +52 -1
  51. data/lib/groonga/expression-builder.rb +42 -6
  52. data/lib/groonga/record.rb +84 -15
  53. data/lib/groonga/schema.rb +524 -122
  54. data/pkg/rroonga-1.1.0-x86-mingw32/NEWS.ja.rdoc +326 -0
  55. data/pkg/rroonga-1.1.0-x86-mingw32/NEWS.rdoc +328 -0
  56. data/pkg/rroonga-1.1.0-x86-mingw32/README.ja.rdoc +68 -0
  57. data/pkg/rroonga-1.1.0-x86-mingw32/README.rdoc +68 -0
  58. data/pkg/rroonga-1.1.0-x86-mingw32/text/expression.rdoc +285 -0
  59. data/{text/TUTORIAL.ja.rdoc → pkg/rroonga-1.1.0-x86-mingw32/text/tutorial.ja.rdoc} +165 -126
  60. data/pkg/rroonga-1.1.0/NEWS.ja.rdoc +326 -0
  61. data/pkg/rroonga-1.1.0/NEWS.rdoc +328 -0
  62. data/pkg/rroonga-1.1.0/README.ja.rdoc +68 -0
  63. data/pkg/rroonga-1.1.0/README.rdoc +68 -0
  64. data/pkg/rroonga-1.1.0/text/expression.rdoc +285 -0
  65. data/pkg/rroonga-1.1.0/text/tutorial.ja.rdoc +433 -0
  66. data/rroonga-build.rb +3 -3
  67. data/test/run-test.rb +1 -1
  68. data/test/test-array.rb +4 -0
  69. data/test/test-column.rb +31 -1
  70. data/test/test-context-select.rb +45 -14
  71. data/test/test-context.rb +44 -0
  72. data/test/test-database.rb +21 -1
  73. data/test/test-expression-builder.rb +46 -5
  74. data/test/test-fix-size-column.rb +12 -0
  75. data/test/test-hash.rb +10 -4
  76. data/test/test-index-column.rb +33 -0
  77. data/test/test-patricia-trie.rb +6 -0
  78. data/test/test-plugin.rb +29 -0
  79. data/test/test-record.rb +84 -1
  80. data/test/test-remote.rb +3 -2
  81. data/test/test-schema-create-table.rb +32 -2
  82. data/test/test-schema-type.rb +167 -0
  83. data/test/test-schema.rb +159 -12
  84. data/test/test-table-select-weight.rb +20 -1
  85. data/test/test-table-select.rb +12 -0
  86. data/test/test-table.rb +65 -0
  87. data/test/test-variable-size-column.rb +12 -0
  88. data/text/tutorial.ja.rdoc +433 -0
  89. data/vendor/local/bin/grntest.exe +0 -0
  90. data/vendor/local/bin/groonga.exe +0 -0
  91. data/vendor/local/bin/libgroonga-0.dll +0 -0
  92. data/vendor/local/etc/groonga/init.d/redhat/groonga +1 -9
  93. data/vendor/local/include/groonga/groonga.h +156 -6
  94. data/vendor/local/include/groonga/groonga/plugin.h +44 -0
  95. data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
  96. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
  97. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
  98. data/vendor/local/lib/groonga/{modules → plugins}/suggest/suggest.la +2 -2
  99. data/vendor/local/lib/libgroonga.a +0 -0
  100. data/vendor/local/lib/libgroonga.dll.a +0 -0
  101. data/vendor/local/lib/libgroonga.la +1 -1
  102. data/vendor/local/lib/pkgconfig/groonga.pc +3 -2
  103. data/vendor/local/share/groonga/examples/dictionary/edict/edict_import.sh +14 -3
  104. data/vendor/local/share/groonga/examples/dictionary/eijiro/eijiro_import.sh +3 -1
  105. data/vendor/local/share/groonga/examples/dictionary/gene95/gene_import.sh +19 -3
  106. data/vendor/local/share/groonga/munin/plugins/groonga_cpu_load +0 -0
  107. data/vendor/local/share/groonga/munin/plugins/groonga_cpu_time +0 -0
  108. data/vendor/local/share/groonga/munin/plugins/groonga_disk +0 -0
  109. data/vendor/local/share/groonga/munin/plugins/groonga_memory +0 -0
  110. data/vendor/local/share/groonga/munin/plugins/groonga_n_records +0 -0
  111. data/vendor/local/share/groonga/munin/plugins/groonga_query_performance +0 -0
  112. data/vendor/local/share/groonga/munin/plugins/groonga_status +0 -0
  113. metadata +91 -341
  114. data/html/favicon.xcf +0 -0
  115. data/html/logo.xcf +0 -0
  116. data/lib/1.8/groonga.so +0 -0
  117. data/lib/1.9/groonga.so +0 -0
  118. data/license/GPL +0 -340
  119. data/license/RUBY +0 -59
  120. data/vendor/local/lib/groonga/modules/suggest/suggest.a +0 -0
  121. data/vendor/local/lib/groonga/modules/suggest/suggest.dll +0 -0
  122. data/vendor/local/lib/groonga/modules/suggest/suggest.dll.a +0 -0
  123. data/vendor/local/share/groonga/doc/ja/html/.buildinfo +0 -4
  124. data/vendor/local/share/groonga/doc/ja/html/_sources/characteristic.txt +0 -56
  125. data/vendor/local/share/groonga/doc/ja/html/_sources/commands.txt +0 -10
  126. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/cache_limit.txt +0 -52
  127. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/check.txt +0 -164
  128. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/clearlock.txt +0 -61
  129. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/column_create.txt +0 -93
  130. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/column_list.txt +0 -97
  131. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/column_remove.txt +0 -58
  132. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/define_selector.txt +0 -114
  133. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/defrag.txt +0 -57
  134. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/delete.txt +0 -68
  135. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/dump.txt +0 -62
  136. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/load.txt +0 -98
  137. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/log_level.txt +0 -65
  138. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/log_put.txt +0 -69
  139. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/log_reopen.txt +0 -66
  140. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/quit.txt +0 -38
  141. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/select.txt +0 -247
  142. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/shutdown.txt +0 -38
  143. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/status.txt +0 -59
  144. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/suggest.txt +0 -79
  145. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/table_create.txt +0 -111
  146. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/table_list.txt +0 -87
  147. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/table_remove.txt +0 -50
  148. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/view_add.txt +0 -53
  149. data/vendor/local/share/groonga/doc/ja/html/_sources/commands_not_implemented/add.txt +0 -102
  150. data/vendor/local/share/groonga/doc/ja/html/_sources/commands_not_implemented/get.txt +0 -78
  151. data/vendor/local/share/groonga/doc/ja/html/_sources/commands_not_implemented/set.txt +0 -103
  152. data/vendor/local/share/groonga/doc/ja/html/_sources/developer.txt +0 -10
  153. data/vendor/local/share/groonga/doc/ja/html/_sources/developer/com.txt +0 -18
  154. data/vendor/local/share/groonga/doc/ja/html/_sources/developer/document.txt +0 -38
  155. data/vendor/local/share/groonga/doc/ja/html/_sources/developer/query.txt +0 -212
  156. data/vendor/local/share/groonga/doc/ja/html/_sources/developer/test.txt +0 -114
  157. data/vendor/local/share/groonga/doc/ja/html/_sources/execfile.txt +0 -226
  158. data/vendor/local/share/groonga/doc/ja/html/_sources/expr.txt +0 -43
  159. data/vendor/local/share/groonga/doc/ja/html/_sources/functions.txt +0 -10
  160. data/vendor/local/share/groonga/doc/ja/html/_sources/functions/edit_distance.txt +0 -48
  161. data/vendor/local/share/groonga/doc/ja/html/_sources/functions/geo_distance.txt +0 -51
  162. data/vendor/local/share/groonga/doc/ja/html/_sources/functions/geo_in_circle.txt +0 -54
  163. data/vendor/local/share/groonga/doc/ja/html/_sources/functions/geo_in_rectangle.txt +0 -55
  164. data/vendor/local/share/groonga/doc/ja/html/_sources/functions/now.txt +0 -34
  165. data/vendor/local/share/groonga/doc/ja/html/_sources/functions/rand.txt +0 -41
  166. data/vendor/local/share/groonga/doc/ja/html/_sources/grnslap.txt +0 -64
  167. data/vendor/local/share/groonga/doc/ja/html/_sources/grntest.txt +0 -259
  168. data/vendor/local/share/groonga/doc/ja/html/_sources/http.txt +0 -52
  169. data/vendor/local/share/groonga/doc/ja/html/_sources/index.txt +0 -21
  170. data/vendor/local/share/groonga/doc/ja/html/_sources/install.txt +0 -114
  171. data/vendor/local/share/groonga/doc/ja/html/_sources/news.txt +0 -199
  172. data/vendor/local/share/groonga/doc/ja/html/_sources/process.txt +0 -12
  173. data/vendor/local/share/groonga/doc/ja/html/_sources/pseudo_column.txt +0 -38
  174. data/vendor/local/share/groonga/doc/ja/html/_sources/reference.txt +0 -14
  175. data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial.txt +0 -10
  176. data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial01.txt +0 -293
  177. data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial02.txt +0 -100
  178. data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial03.txt +0 -72
  179. data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial04.txt +0 -111
  180. data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial05.txt +0 -65
  181. data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial06.txt +0 -91
  182. data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial07.txt +0 -92
  183. data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial08.txt +0 -53
  184. data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial09.txt +0 -9
  185. data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial10.txt +0 -486
  186. data/vendor/local/share/groonga/doc/ja/html/_sources/type.txt +0 -118
  187. data/vendor/local/share/groonga/doc/ja/html/_static/basic.css +0 -509
  188. data/vendor/local/share/groonga/doc/ja/html/_static/default.css +0 -277
  189. data/vendor/local/share/groonga/doc/ja/html/_static/doctools.js +0 -247
  190. data/vendor/local/share/groonga/doc/ja/html/_static/file.png +0 -0
  191. data/vendor/local/share/groonga/doc/ja/html/_static/jquery.js +0 -6240
  192. data/vendor/local/share/groonga/doc/ja/html/_static/minus.png +0 -0
  193. data/vendor/local/share/groonga/doc/ja/html/_static/plus.png +0 -0
  194. data/vendor/local/share/groonga/doc/ja/html/_static/pygments.css +0 -61
  195. data/vendor/local/share/groonga/doc/ja/html/_static/searchtools.js +0 -518
  196. data/vendor/local/share/groonga/doc/ja/html/_static/sidebar.js +0 -147
  197. data/vendor/local/share/groonga/doc/ja/html/_static/underscore.js +0 -16
  198. data/vendor/local/share/groonga/doc/ja/html/characteristic.html +0 -162
  199. data/vendor/local/share/groonga/doc/ja/html/commands.html +0 -139
  200. data/vendor/local/share/groonga/doc/ja/html/commands/cache_limit.html +0 -173
  201. data/vendor/local/share/groonga/doc/ja/html/commands/check.html +0 -285
  202. data/vendor/local/share/groonga/doc/ja/html/commands/clearlock.html +0 -180
  203. data/vendor/local/share/groonga/doc/ja/html/commands/column_create.html +0 -210
  204. data/vendor/local/share/groonga/doc/ja/html/commands/column_list.html +0 -220
  205. data/vendor/local/share/groonga/doc/ja/html/commands/column_remove.html +0 -183
  206. data/vendor/local/share/groonga/doc/ja/html/commands/define_selector.html +0 -221
  207. data/vendor/local/share/groonga/doc/ja/html/commands/defrag.html +0 -177
  208. data/vendor/local/share/groonga/doc/ja/html/commands/delete.html +0 -182
  209. data/vendor/local/share/groonga/doc/ja/html/commands/dump.html +0 -177
  210. data/vendor/local/share/groonga/doc/ja/html/commands/load.html +0 -208
  211. data/vendor/local/share/groonga/doc/ja/html/commands/log_level.html +0 -187
  212. data/vendor/local/share/groonga/doc/ja/html/commands/log_put.html +0 -190
  213. data/vendor/local/share/groonga/doc/ja/html/commands/log_reopen.html +0 -188
  214. data/vendor/local/share/groonga/doc/ja/html/commands/quit.html +0 -156
  215. data/vendor/local/share/groonga/doc/ja/html/commands/select.html +0 -331
  216. data/vendor/local/share/groonga/doc/ja/html/commands/shutdown.html +0 -156
  217. data/vendor/local/share/groonga/doc/ja/html/commands/status.html +0 -179
  218. data/vendor/local/share/groonga/doc/ja/html/commands/suggest.html +0 -191
  219. data/vendor/local/share/groonga/doc/ja/html/commands/table_create.html +0 -222
  220. data/vendor/local/share/groonga/doc/ja/html/commands/table_list.html +0 -202
  221. data/vendor/local/share/groonga/doc/ja/html/commands/table_remove.html +0 -173
  222. data/vendor/local/share/groonga/doc/ja/html/commands/view_add.html +0 -175
  223. data/vendor/local/share/groonga/doc/ja/html/commands_not_implemented/add.html +0 -180
  224. data/vendor/local/share/groonga/doc/ja/html/commands_not_implemented/get.html +0 -161
  225. data/vendor/local/share/groonga/doc/ja/html/commands_not_implemented/set.html +0 -182
  226. data/vendor/local/share/groonga/doc/ja/html/developer.html +0 -118
  227. data/vendor/local/share/groonga/doc/ja/html/developer/com.html +0 -136
  228. data/vendor/local/share/groonga/doc/ja/html/developer/document.html +0 -159
  229. data/vendor/local/share/groonga/doc/ja/html/developer/query.html +0 -336
  230. data/vendor/local/share/groonga/doc/ja/html/developer/test.html +0 -220
  231. data/vendor/local/share/groonga/doc/ja/html/execfile.html +0 -370
  232. data/vendor/local/share/groonga/doc/ja/html/expr.html +0 -157
  233. data/vendor/local/share/groonga/doc/ja/html/functions.html +0 -122
  234. data/vendor/local/share/groonga/doc/ja/html/functions/edit_distance.html +0 -162
  235. data/vendor/local/share/groonga/doc/ja/html/functions/geo_distance.html +0 -170
  236. data/vendor/local/share/groonga/doc/ja/html/functions/geo_in_circle.html +0 -173
  237. data/vendor/local/share/groonga/doc/ja/html/functions/geo_in_rectangle.html +0 -172
  238. data/vendor/local/share/groonga/doc/ja/html/functions/now.html +0 -152
  239. data/vendor/local/share/groonga/doc/ja/html/functions/rand.html +0 -159
  240. data/vendor/local/share/groonga/doc/ja/html/genindex.html +0 -227
  241. data/vendor/local/share/groonga/doc/ja/html/grnslap.html +0 -183
  242. data/vendor/local/share/groonga/doc/ja/html/grntest.html +0 -368
  243. data/vendor/local/share/groonga/doc/ja/html/http.html +0 -163
  244. data/vendor/local/share/groonga/doc/ja/html/index.html +0 -291
  245. data/vendor/local/share/groonga/doc/ja/html/install.html +0 -228
  246. data/vendor/local/share/groonga/doc/ja/html/news.html +0 -310
  247. data/vendor/local/share/groonga/doc/ja/html/objects.inv +0 -0
  248. data/vendor/local/share/groonga/doc/ja/html/process.html +0 -120
  249. data/vendor/local/share/groonga/doc/ja/html/pseudo_column.html +0 -147
  250. data/vendor/local/share/groonga/doc/ja/html/reference.html +0 -174
  251. data/vendor/local/share/groonga/doc/ja/html/search.html +0 -96
  252. data/vendor/local/share/groonga/doc/ja/html/searchindex.js +0 -1
  253. data/vendor/local/share/groonga/doc/ja/html/tutorial.html +0 -172
  254. data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial01.html +0 -388
  255. data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial02.html +0 -214
  256. data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial03.html +0 -183
  257. data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial04.html +0 -212
  258. data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial05.html +0 -169
  259. data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial06.html +0 -209
  260. data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial07.html +0 -212
  261. data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial08.html +0 -139
  262. data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial09.html +0 -114
  263. data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial10.html +0 -458
  264. data/vendor/local/share/groonga/doc/ja/html/type.html +0 -217
  265. data/vendor/local/share/groonga/doc/ja/source/__init__.py +0 -0
  266. data/vendor/local/share/groonga/doc/ja/source/characteristic.txt +0 -56
  267. data/vendor/local/share/groonga/doc/ja/source/commands.txt +0 -10
  268. data/vendor/local/share/groonga/doc/ja/source/commands/cache_limit.txt +0 -52
  269. data/vendor/local/share/groonga/doc/ja/source/commands/check.txt +0 -164
  270. data/vendor/local/share/groonga/doc/ja/source/commands/clearlock.txt +0 -61
  271. data/vendor/local/share/groonga/doc/ja/source/commands/column_create.txt +0 -93
  272. data/vendor/local/share/groonga/doc/ja/source/commands/column_list.txt +0 -97
  273. data/vendor/local/share/groonga/doc/ja/source/commands/column_remove.txt +0 -58
  274. data/vendor/local/share/groonga/doc/ja/source/commands/define_selector.txt +0 -114
  275. data/vendor/local/share/groonga/doc/ja/source/commands/defrag.txt +0 -57
  276. data/vendor/local/share/groonga/doc/ja/source/commands/delete.txt +0 -68
  277. data/vendor/local/share/groonga/doc/ja/source/commands/dump.txt +0 -62
  278. data/vendor/local/share/groonga/doc/ja/source/commands/load.txt +0 -98
  279. data/vendor/local/share/groonga/doc/ja/source/commands/log_level.txt +0 -65
  280. data/vendor/local/share/groonga/doc/ja/source/commands/log_put.txt +0 -69
  281. data/vendor/local/share/groonga/doc/ja/source/commands/log_reopen.txt +0 -66
  282. data/vendor/local/share/groonga/doc/ja/source/commands/quit.txt +0 -38
  283. data/vendor/local/share/groonga/doc/ja/source/commands/select.txt +0 -247
  284. data/vendor/local/share/groonga/doc/ja/source/commands/shutdown.txt +0 -38
  285. data/vendor/local/share/groonga/doc/ja/source/commands/status.txt +0 -59
  286. data/vendor/local/share/groonga/doc/ja/source/commands/table_create.txt +0 -111
  287. data/vendor/local/share/groonga/doc/ja/source/commands/table_list.txt +0 -87
  288. data/vendor/local/share/groonga/doc/ja/source/commands/table_remove.txt +0 -50
  289. data/vendor/local/share/groonga/doc/ja/source/commands/view_add.txt +0 -53
  290. data/vendor/local/share/groonga/doc/ja/source/commands_not_implemented/add.txt +0 -102
  291. data/vendor/local/share/groonga/doc/ja/source/commands_not_implemented/get.txt +0 -78
  292. data/vendor/local/share/groonga/doc/ja/source/commands_not_implemented/set.txt +0 -103
  293. data/vendor/local/share/groonga/doc/ja/source/conf.py +0 -265
  294. data/vendor/local/share/groonga/doc/ja/source/developer.txt +0 -10
  295. data/vendor/local/share/groonga/doc/ja/source/developer/com.txt +0 -18
  296. data/vendor/local/share/groonga/doc/ja/source/developer/document.txt +0 -38
  297. data/vendor/local/share/groonga/doc/ja/source/developer/query.txt +0 -212
  298. data/vendor/local/share/groonga/doc/ja/source/developer/test.txt +0 -114
  299. data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-1.log +0 -6
  300. data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-10.log +0 -5
  301. data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-11.log +0 -5
  302. data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-12.log +0 -5
  303. data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-13.log +0 -5
  304. data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-14.log +0 -9
  305. data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-15.log +0 -5
  306. data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-16.log +0 -5
  307. data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-17.log +0 -5
  308. data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-2.log +0 -5
  309. data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-3.log +0 -5
  310. data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-4.log +0 -7
  311. data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-5.log +0 -5
  312. data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-6.log +0 -5
  313. data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-7.log +0 -16
  314. data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-8.log +0 -5
  315. data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-9.log +0 -5
  316. data/vendor/local/share/groonga/doc/ja/source/example/tutorial02-1.log +0 -8
  317. data/vendor/local/share/groonga/doc/ja/source/example/tutorial02-2.log +0 -6
  318. data/vendor/local/share/groonga/doc/ja/source/example/tutorial02-3.log +0 -12
  319. data/vendor/local/share/groonga/doc/ja/source/example/tutorial03-1.log +0 -18
  320. data/vendor/local/share/groonga/doc/ja/source/example/tutorial03-2.log +0 -10
  321. data/vendor/local/share/groonga/doc/ja/source/example/tutorial03-3.log +0 -10
  322. data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-1.log +0 -5
  323. data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-2.log +0 -7
  324. data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-3.log +0 -7
  325. data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-4.log +0 -13
  326. data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-5.log +0 -5
  327. data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-6.log +0 -5
  328. data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-7.log +0 -5
  329. data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-1.log +0 -24
  330. data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-2.log +0 -5
  331. data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-3.log +0 -5
  332. data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-4.log +0 -5
  333. data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-5.log +0 -5
  334. data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-6.log +0 -5
  335. data/vendor/local/share/groonga/doc/ja/source/example/tutorial06-1.log +0 -25
  336. data/vendor/local/share/groonga/doc/ja/source/example/tutorial06-2.log +0 -9
  337. data/vendor/local/share/groonga/doc/ja/source/example/tutorial06-3.log +0 -21
  338. data/vendor/local/share/groonga/doc/ja/source/example/tutorial06-4.log +0 -7
  339. data/vendor/local/share/groonga/doc/ja/source/example/tutorial06-5.log +0 -5
  340. data/vendor/local/share/groonga/doc/ja/source/example/tutorial07-1.log +0 -22
  341. data/vendor/local/share/groonga/doc/ja/source/example/tutorial07-2.log +0 -9
  342. data/vendor/local/share/groonga/doc/ja/source/example/tutorial07-3.log +0 -20
  343. data/vendor/local/share/groonga/doc/ja/source/example/tutorial07-4.log +0 -9
  344. data/vendor/local/share/groonga/doc/ja/source/example/tutorial08-1.log +0 -14
  345. data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-1.log +0 -5
  346. data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-10.log +0 -5
  347. data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-2.log +0 -5
  348. data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-3.log +0 -5
  349. data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-4.log +0 -5
  350. data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-5.log +0 -5
  351. data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-6.log +0 -5
  352. data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-7.log +0 -5
  353. data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-8.log +0 -5
  354. data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-9.log +0 -5
  355. data/vendor/local/share/groonga/doc/ja/source/execfile.txt +0 -226
  356. data/vendor/local/share/groonga/doc/ja/source/expr.txt +0 -43
  357. data/vendor/local/share/groonga/doc/ja/source/functions.txt +0 -10
  358. data/vendor/local/share/groonga/doc/ja/source/functions/edit_distance.txt +0 -48
  359. data/vendor/local/share/groonga/doc/ja/source/functions/geo_distance.txt +0 -51
  360. data/vendor/local/share/groonga/doc/ja/source/functions/geo_in_circle.txt +0 -54
  361. data/vendor/local/share/groonga/doc/ja/source/functions/geo_in_rectangle.txt +0 -55
  362. data/vendor/local/share/groonga/doc/ja/source/functions/now.txt +0 -34
  363. data/vendor/local/share/groonga/doc/ja/source/functions/rand.txt +0 -41
  364. data/vendor/local/share/groonga/doc/ja/source/grnslap.txt +0 -64
  365. data/vendor/local/share/groonga/doc/ja/source/grntest.txt +0 -259
  366. data/vendor/local/share/groonga/doc/ja/source/http.txt +0 -52
  367. data/vendor/local/share/groonga/doc/ja/source/index.txt +0 -21
  368. data/vendor/local/share/groonga/doc/ja/source/install.txt +0 -114
  369. data/vendor/local/share/groonga/doc/ja/source/news.txt +0 -199
  370. data/vendor/local/share/groonga/doc/ja/source/process.txt +0 -12
  371. data/vendor/local/share/groonga/doc/ja/source/pseudo_column.txt +0 -38
  372. data/vendor/local/share/groonga/doc/ja/source/rdoc.py +0 -762
  373. data/vendor/local/share/groonga/doc/ja/source/reference.txt +0 -14
  374. data/vendor/local/share/groonga/doc/ja/source/tutorial.txt +0 -10
  375. data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial01.txt +0 -293
  376. data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial02.txt +0 -100
  377. data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial03.txt +0 -72
  378. data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial04.txt +0 -111
  379. data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial05.txt +0 -65
  380. data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial06.txt +0 -91
  381. data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial07.txt +0 -92
  382. data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial08.txt +0 -53
  383. data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial09.txt +0 -9
  384. data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial10.txt +0 -486
  385. data/vendor/local/share/groonga/doc/ja/source/type.txt +0 -118
  386. data/vendor/local/share/groonga/doc/ja/source/update_execution_example.py +0 -113
  387. data/vendor/local/share/man/man1/groonga.1 +0 -5498
@@ -368,7 +368,7 @@ static VALUE
368
368
  rb_grn_logger_s_set_path (VALUE klass, VALUE rb_path,
369
369
  const char **path, const char *class_variable_name)
370
370
  {
371
- rb_grn_boolean need_reopen = RB_GRN_FALSE;
371
+ grn_bool need_reopen = GRN_FALSE;
372
372
 
373
373
  if (NIL_P(rb_path)) {
374
374
  need_reopen = *path != NULL;
@@ -377,7 +377,7 @@ rb_grn_logger_s_set_path (VALUE klass, VALUE rb_path,
377
377
  const char *current_path = *path;
378
378
  *path = RSTRING_PTR(rb_path);
379
379
  if (!current_path || strcmp(*path, current_path) != 0) {
380
- need_reopen = RB_GRN_TRUE;
380
+ need_reopen = GRN_TRUE;
381
381
  }
382
382
  }
383
383
  rb_cv_set(klass, class_variable_name, rb_path);
@@ -19,7 +19,7 @@
19
19
  /*
20
20
  * Document-class: Groonga::Object
21
21
  *
22
- * Ruby/groongaが提供するクラスのベースとなるクラス。
22
+ * rroongaが提供するクラスのベースとなるクラス。
23
23
  * Groonga::ContextとGroonga::Logger以外はGroonga::Objectを継
24
24
  * 承している。
25
25
  */
@@ -248,7 +248,7 @@ rb_grn_object_to_ruby_class (grn_obj *object)
248
248
 
249
249
  VALUE
250
250
  rb_grn_object_to_ruby_object (VALUE klass, grn_ctx *context, grn_obj *object,
251
- rb_grn_boolean owner)
251
+ grn_bool owner)
252
252
  {
253
253
  RbGrnContext *rb_grn_context;
254
254
  VALUE rb_object, rb_context = Qnil;
@@ -290,8 +290,8 @@ rb_grn_object_bind_common (VALUE klass, VALUE self, VALUE rb_context,
290
290
  rb_grn_object->context = context;
291
291
  rb_grn_object->object = object;
292
292
  rb_grn_object->self = self;
293
- rb_grn_object->need_close = RB_GRN_TRUE;
294
- rb_grn_object->have_finalizer = RB_GRN_FALSE;
293
+ rb_grn_object->need_close = GRN_TRUE;
294
+ rb_grn_object->have_finalizer = GRN_FALSE;
295
295
 
296
296
  user_data = grn_obj_user_data(context, object);
297
297
  if (user_data) {
@@ -300,17 +300,17 @@ rb_grn_object_bind_common (VALUE klass, VALUE self, VALUE rb_context,
300
300
  object->header.type);
301
301
  user_data->ptr = rb_grn_object;
302
302
  grn_obj_set_finalizer(context, object, rb_grn_object_finalizer);
303
- rb_grn_object->have_finalizer = RB_GRN_TRUE;
303
+ rb_grn_object->have_finalizer = GRN_TRUE;
304
304
  }
305
305
 
306
306
  switch (object->header.type) {
307
307
  case GRN_PROC:
308
308
  case GRN_TYPE:
309
- rb_grn_object->need_close = RB_GRN_FALSE;
309
+ rb_grn_object->need_close = GRN_FALSE;
310
310
  break;
311
311
  default:
312
312
  if (klass == rb_cGrnVariable)
313
- rb_grn_object->need_close = RB_GRN_FALSE;
313
+ rb_grn_object->need_close = GRN_FALSE;
314
314
  break;
315
315
  }
316
316
 
@@ -331,7 +331,6 @@ rb_grn_object_bind_common (VALUE klass, VALUE self, VALUE rb_context,
331
331
  rb_grn_object->range = grn_ctx_at(context, rb_grn_object->range_id);
332
332
 
333
333
  DATA_PTR(self) = rb_grn_object;
334
- rb_iv_set(self, "@context", rb_context);
335
334
  }
336
335
 
337
336
  void
@@ -398,6 +397,8 @@ rb_grn_object_assign (VALUE klass, VALUE self, VALUE rb_context,
398
397
  object->header.type);
399
398
  }
400
399
 
400
+ rb_iv_set(self, "@context", rb_context);
401
+
401
402
  debug("assign: %p:%p:%p 0x%x\n", context, object, rb_grn_object,
402
403
  object->header.type);
403
404
  }
@@ -528,7 +529,7 @@ rb_grn_object_inspect_object (VALUE inspected, grn_ctx *context, grn_obj *object
528
529
  {
529
530
  VALUE rb_object;
530
531
 
531
- rb_object = GRNOBJECT2RVAL(Qnil, context, object, RB_GRN_FALSE);
532
+ rb_object = GRNOBJECT2RVAL(Qnil, context, object, GRN_FALSE);
532
533
  rb_str_concat(inspected, rb_inspect(rb_object));
533
534
 
534
535
  return inspected;
@@ -829,7 +830,9 @@ rb_grn_object_inspect_content (VALUE self, VALUE inspected)
829
830
  object = rb_grn_object->object;
830
831
 
831
832
  rb_str_cat2(inspected, " ");
832
- if (object) {
833
+ if (rb_grn_exited) {
834
+ rb_str_cat2(inspected, "(finished)");
835
+ } else if (object) {
833
836
  rb_grn_object_inspect_object_content(inspected, context, object);
834
837
  } else {
835
838
  rb_str_cat2(inspected, "(closed)");
@@ -994,7 +997,7 @@ rb_grn_object_get_domain (VALUE self)
994
997
 
995
998
  domain_object = grn_ctx_at(context, domain);
996
999
  if (domain_object)
997
- return GRNOBJECT2RVAL(Qnil, context, domain_object, RB_GRN_FALSE);
1000
+ return GRNOBJECT2RVAL(Qnil, context, domain_object, GRN_FALSE);
998
1001
  else
999
1002
  return UINT2NUM(domain);
1000
1003
  }
@@ -1068,7 +1071,7 @@ rb_grn_object_get_range (VALUE self)
1068
1071
 
1069
1072
  range_object = grn_ctx_at(context, range);
1070
1073
  if (range_object)
1071
- return GRNOBJECT2RVAL(Qnil, context, range_object, RB_GRN_FALSE);
1074
+ return GRNOBJECT2RVAL(Qnil, context, range_object, GRN_FALSE);
1072
1075
  else
1073
1076
  return UINT2NUM(range);
1074
1077
  }
@@ -1178,7 +1181,7 @@ rb_grn_object_array_reference (VALUE self, VALUE rb_id)
1178
1181
  return rb_value;
1179
1182
  }
1180
1183
 
1181
- static rb_grn_boolean
1184
+ static grn_bool
1182
1185
  rb_uvector_value_p (RbGrnObject *rb_grn_object, VALUE rb_value)
1183
1186
  {
1184
1187
  VALUE first_element;
@@ -1188,7 +1191,7 @@ rb_uvector_value_p (RbGrnObject *rb_grn_object, VALUE rb_value)
1188
1191
  /* TODO: support not sizeof(grn_id) uvector. */
1189
1192
  /*
1190
1193
  if (!(rb_grn_object->range->header.flags | GRN_OBJ_KEY_VAR_SIZE)) {
1191
- return RB_GRN_TRUE;
1194
+ return GRN_TRUE;
1192
1195
  }
1193
1196
  */
1194
1197
  break;
@@ -1197,15 +1200,15 @@ rb_uvector_value_p (RbGrnObject *rb_grn_object, VALUE rb_value)
1197
1200
  case GRN_TABLE_NO_KEY:
1198
1201
  case GRN_TABLE_VIEW:
1199
1202
  first_element = rb_ary_entry(rb_value, 0);
1200
- if (RVAL2CBOOL(rb_obj_is_kind_of(first_element, rb_cGrnRecord))) {
1201
- return RB_GRN_TRUE;
1203
+ if (rb_respond_to(first_element, rb_intern("record_raw_id"))) {
1204
+ return GRN_TRUE;
1202
1205
  }
1203
1206
  break;
1204
1207
  default:
1205
1208
  break;
1206
1209
  }
1207
1210
 
1208
- return RB_GRN_FALSE;
1211
+ return GRN_FALSE;
1209
1212
  }
1210
1213
 
1211
1214
  VALUE
@@ -1215,25 +1218,26 @@ rb_grn_object_set_raw (RbGrnObject *rb_grn_object, grn_id id,
1215
1218
  grn_ctx *context;
1216
1219
  grn_obj value;
1217
1220
  grn_rc rc;
1218
- VALUE exception;
1221
+ VALUE exception, rb_values;
1219
1222
 
1220
1223
  context = rb_grn_object->context;
1221
- if (RVAL2CBOOL(rb_obj_is_kind_of(rb_value, rb_cArray))) {
1222
- if (rb_uvector_value_p(rb_grn_object, rb_value)) {
1223
- GRN_OBJ_INIT(&value, GRN_UVECTOR, 0,
1224
- rb_grn_object->object->header.domain);
1225
- RVAL2GRNUVECTOR(rb_value, context, &value, related_object);
1226
- } else {
1227
- GRN_OBJ_INIT(&value, GRN_VECTOR, 0, GRN_ID_NIL);
1228
- RVAL2GRNVECTOR(rb_value, context, &value);
1229
- }
1230
- } else {
1224
+ rb_values = rb_check_array_type(rb_value);
1225
+ if (NIL_P(rb_values)) {
1231
1226
  if (NIL_P(rb_value)) {
1232
1227
  GRN_OBJ_INIT(&value, GRN_BULK, 0, GRN_ID_NIL);
1233
1228
  } else {
1234
1229
  GRN_OBJ_INIT(&value, GRN_BULK, 0, GRN_ID_NIL);
1235
1230
  RVAL2GRNBULK(rb_value, context, &value);
1236
1231
  }
1232
+ } else {
1233
+ if (rb_uvector_value_p(rb_grn_object, rb_values)) {
1234
+ GRN_OBJ_INIT(&value, GRN_UVECTOR, 0,
1235
+ rb_grn_object->object->header.domain);
1236
+ RVAL2GRNUVECTOR(rb_values, context, &value, related_object);
1237
+ } else {
1238
+ GRN_OBJ_INIT(&value, GRN_VECTOR, 0, GRN_ID_NIL);
1239
+ RVAL2GRNVECTOR(rb_values, context, &value);
1240
+ }
1237
1241
  }
1238
1242
  rc = grn_obj_set_value(context, rb_grn_object->object, id,
1239
1243
  &value, flags);
@@ -1341,7 +1345,7 @@ rb_grn_init_object (VALUE mGrn)
1341
1345
  rb_cGrnObject = rb_define_class_under(mGrn, "Object", rb_cObject);
1342
1346
  rb_define_alloc_func(rb_cGrnObject, rb_grn_object_alloc);
1343
1347
 
1344
- rb_define_attr(rb_cGrnObject, "context", RB_GRN_TRUE, RB_GRN_FALSE);
1348
+ rb_define_attr(rb_cGrnObject, "context", GRN_TRUE, GRN_FALSE);
1345
1349
 
1346
1350
  rb_define_method(rb_cGrnObject, "inspect", rb_grn_object_inspect, 0);
1347
1351
 
@@ -1,6 +1,6 @@
1
1
  /* -*- c-file-style: "ruby" -*- */
2
2
  /*
3
- Copyright (C) 2009 Kouhei Sutou <kou@clear-code.com>
3
+ Copyright (C) 2009-2011 Kouhei Sutou <kou@clear-code.com>
4
4
 
5
5
  This library is free software; you can redistribute it and/or
6
6
  modify it under the terms of the GNU Lesser General Public
@@ -18,181 +18,183 @@
18
18
 
19
19
  #include "rb-grn.h"
20
20
 
21
- VALUE rb_mGrnOperation;
21
+ VALUE rb_mGrnOperator;
22
22
 
23
23
  void
24
- rb_grn_init_operation (VALUE mGrn)
24
+ rb_grn_init_operator (VALUE mGrn)
25
25
  {
26
- rb_mGrnOperation = rb_define_module_under(mGrn, "Operation");
26
+ rb_mGrnOperator = rb_define_module_under(mGrn, "Operator");
27
+ /* deprecated: backward compatibility. */
28
+ rb_define_const(mGrn, "Operation", rb_mGrnOperator);
27
29
 
28
- rb_define_const(rb_mGrnOperation, "PUSH",
30
+ rb_define_const(rb_mGrnOperator, "PUSH",
29
31
  UINT2NUM(GRN_OP_PUSH));
30
- rb_define_const(rb_mGrnOperation, "POP",
32
+ rb_define_const(rb_mGrnOperator, "POP",
31
33
  UINT2NUM(GRN_OP_POP));
32
- rb_define_const(rb_mGrnOperation, "NO_OPERATION",
34
+ rb_define_const(rb_mGrnOperator, "NO_OPERATION",
33
35
  UINT2NUM(GRN_OP_NOP));
34
- rb_define_const(rb_mGrnOperation, "CALL",
36
+ rb_define_const(rb_mGrnOperator, "CALL",
35
37
  UINT2NUM(GRN_OP_CALL));
36
- rb_define_const(rb_mGrnOperation, "INTERN",
38
+ rb_define_const(rb_mGrnOperator, "INTERN",
37
39
  UINT2NUM(GRN_OP_INTERN));
38
- rb_define_const(rb_mGrnOperation, "GET_REFERENCE",
40
+ rb_define_const(rb_mGrnOperator, "GET_REFERENCE",
39
41
  UINT2NUM(GRN_OP_GET_REF));
40
- rb_define_const(rb_mGrnOperation, "GET_VALUE",
42
+ rb_define_const(rb_mGrnOperator, "GET_VALUE",
41
43
  UINT2NUM(GRN_OP_GET_VALUE));
42
- rb_define_const(rb_mGrnOperation, "AND",
44
+ rb_define_const(rb_mGrnOperator, "AND",
43
45
  UINT2NUM(GRN_OP_AND));
44
- rb_define_const(rb_mGrnOperation, "BUT",
46
+ rb_define_const(rb_mGrnOperator, "BUT",
45
47
  UINT2NUM(GRN_OP_BUT));
46
- rb_define_const(rb_mGrnOperation, "OR",
48
+ rb_define_const(rb_mGrnOperator, "OR",
47
49
  UINT2NUM(GRN_OP_OR));
48
- rb_define_const(rb_mGrnOperation, "ASSIGN",
50
+ rb_define_const(rb_mGrnOperator, "ASSIGN",
49
51
  UINT2NUM(GRN_OP_ASSIGN));
50
- rb_define_const(rb_mGrnOperation, "STAR_ASSIGN",
52
+ rb_define_const(rb_mGrnOperator, "STAR_ASSIGN",
51
53
  UINT2NUM(GRN_OP_STAR_ASSIGN));
52
- rb_define_const(rb_mGrnOperation, "SLASH_ASSIGN",
54
+ rb_define_const(rb_mGrnOperator, "SLASH_ASSIGN",
53
55
  UINT2NUM(GRN_OP_SLASH_ASSIGN));
54
- rb_define_const(rb_mGrnOperation, "MODULO_ASSIGN",
56
+ rb_define_const(rb_mGrnOperator, "MODULO_ASSIGN",
55
57
  UINT2NUM(GRN_OP_MOD_ASSIGN));
56
- rb_define_const(rb_mGrnOperation, "PLUS_ASSIGN",
58
+ rb_define_const(rb_mGrnOperator, "PLUS_ASSIGN",
57
59
  UINT2NUM(GRN_OP_PLUS_ASSIGN));
58
- rb_define_const(rb_mGrnOperation, "MINUS_ASSIGN",
60
+ rb_define_const(rb_mGrnOperator, "MINUS_ASSIGN",
59
61
  UINT2NUM(GRN_OP_MINUS_ASSIGN));
60
- rb_define_const(rb_mGrnOperation, "SHIFTL_ASSIGN",
62
+ rb_define_const(rb_mGrnOperator, "SHIFTL_ASSIGN",
61
63
  UINT2NUM(GRN_OP_SHIFTL_ASSIGN));
62
- rb_define_const(rb_mGrnOperation, "SHIRTR_ASSIGN",
64
+ rb_define_const(rb_mGrnOperator, "SHIRTR_ASSIGN",
63
65
  UINT2NUM(GRN_OP_SHIFTR_ASSIGN));
64
- rb_define_const(rb_mGrnOperation, "SHIFTRR_ASSIGN",
66
+ rb_define_const(rb_mGrnOperator, "SHIFTRR_ASSIGN",
65
67
  UINT2NUM(GRN_OP_SHIFTRR_ASSIGN));
66
- rb_define_const(rb_mGrnOperation, "AND_ASSIGN",
68
+ rb_define_const(rb_mGrnOperator, "AND_ASSIGN",
67
69
  UINT2NUM(GRN_OP_AND_ASSIGN));
68
- rb_define_const(rb_mGrnOperation, "XOR_ASSIGN",
70
+ rb_define_const(rb_mGrnOperator, "XOR_ASSIGN",
69
71
  UINT2NUM(GRN_OP_XOR_ASSIGN));
70
- rb_define_const(rb_mGrnOperation, "OR_ASSIGN",
72
+ rb_define_const(rb_mGrnOperator, "OR_ASSIGN",
71
73
  UINT2NUM(GRN_OP_OR_ASSIGN));
72
- rb_define_const(rb_mGrnOperation, "JUMP",
74
+ rb_define_const(rb_mGrnOperator, "JUMP",
73
75
  UINT2NUM(GRN_OP_JUMP));
74
- rb_define_const(rb_mGrnOperation, "CJUMP",
76
+ rb_define_const(rb_mGrnOperator, "CJUMP",
75
77
  UINT2NUM(GRN_OP_CJUMP));
76
- rb_define_const(rb_mGrnOperation, "COMMA",
78
+ rb_define_const(rb_mGrnOperator, "COMMA",
77
79
  UINT2NUM(GRN_OP_COMMA));
78
- rb_define_const(rb_mGrnOperation, "BITWISE_OR",
80
+ rb_define_const(rb_mGrnOperator, "BITWISE_OR",
79
81
  UINT2NUM(GRN_OP_BITWISE_OR));
80
- rb_define_const(rb_mGrnOperation, "BITWISE_XOR",
82
+ rb_define_const(rb_mGrnOperator, "BITWISE_XOR",
81
83
  UINT2NUM(GRN_OP_BITWISE_XOR));
82
- rb_define_const(rb_mGrnOperation, "BITWISE_AND",
84
+ rb_define_const(rb_mGrnOperator, "BITWISE_AND",
83
85
  UINT2NUM(GRN_OP_BITWISE_AND));
84
- rb_define_const(rb_mGrnOperation, "BITWISE_NOT",
86
+ rb_define_const(rb_mGrnOperator, "BITWISE_NOT",
85
87
  UINT2NUM(GRN_OP_BITWISE_NOT));
86
- rb_define_const(rb_mGrnOperation, "EQUAL",
88
+ rb_define_const(rb_mGrnOperator, "EQUAL",
87
89
  UINT2NUM(GRN_OP_EQUAL));
88
- rb_define_const(rb_mGrnOperation, "NOT_EQUAL",
90
+ rb_define_const(rb_mGrnOperator, "NOT_EQUAL",
89
91
  UINT2NUM(GRN_OP_NOT_EQUAL));
90
- rb_define_const(rb_mGrnOperation, "LESS",
92
+ rb_define_const(rb_mGrnOperator, "LESS",
91
93
  UINT2NUM(GRN_OP_LESS));
92
- rb_define_const(rb_mGrnOperation, "GREATER",
94
+ rb_define_const(rb_mGrnOperator, "GREATER",
93
95
  UINT2NUM(GRN_OP_GREATER));
94
- rb_define_const(rb_mGrnOperation, "LESS_EQUAL",
96
+ rb_define_const(rb_mGrnOperator, "LESS_EQUAL",
95
97
  UINT2NUM(GRN_OP_LESS_EQUAL));
96
- rb_define_const(rb_mGrnOperation, "GREATER_EQUAL",
98
+ rb_define_const(rb_mGrnOperator, "GREATER_EQUAL",
97
99
  UINT2NUM(GRN_OP_GREATER_EQUAL));
98
- rb_define_const(rb_mGrnOperation, "IN",
100
+ rb_define_const(rb_mGrnOperator, "IN",
99
101
  UINT2NUM(GRN_OP_IN));
100
- rb_define_const(rb_mGrnOperation, "MATCH",
102
+ rb_define_const(rb_mGrnOperator, "MATCH",
101
103
  UINT2NUM(GRN_OP_MATCH));
102
- rb_define_const(rb_mGrnOperation, "NEAR",
104
+ rb_define_const(rb_mGrnOperator, "NEAR",
103
105
  UINT2NUM(GRN_OP_NEAR));
104
- rb_define_const(rb_mGrnOperation, "NEAR2",
106
+ rb_define_const(rb_mGrnOperator, "NEAR2",
105
107
  UINT2NUM(GRN_OP_NEAR2));
106
- rb_define_const(rb_mGrnOperation, "SIMILAR",
108
+ rb_define_const(rb_mGrnOperator, "SIMILAR",
107
109
  UINT2NUM(GRN_OP_SIMILAR));
108
- rb_define_const(rb_mGrnOperation, "TERM_EXTRACT",
110
+ rb_define_const(rb_mGrnOperator, "TERM_EXTRACT",
109
111
  UINT2NUM(GRN_OP_TERM_EXTRACT));
110
- rb_define_const(rb_mGrnOperation, "SHIFTL",
112
+ rb_define_const(rb_mGrnOperator, "SHIFTL",
111
113
  UINT2NUM(GRN_OP_SHIFTL));
112
- rb_define_const(rb_mGrnOperation, "SHIFTR",
114
+ rb_define_const(rb_mGrnOperator, "SHIFTR",
113
115
  UINT2NUM(GRN_OP_SHIFTR));
114
- rb_define_const(rb_mGrnOperation, "SHIFTRR",
116
+ rb_define_const(rb_mGrnOperator, "SHIFTRR",
115
117
  UINT2NUM(GRN_OP_SHIFTRR));
116
- rb_define_const(rb_mGrnOperation, "PLUS",
118
+ rb_define_const(rb_mGrnOperator, "PLUS",
117
119
  UINT2NUM(GRN_OP_PLUS));
118
- rb_define_const(rb_mGrnOperation, "MINUS",
120
+ rb_define_const(rb_mGrnOperator, "MINUS",
119
121
  UINT2NUM(GRN_OP_MINUS));
120
- rb_define_const(rb_mGrnOperation, "STAR",
122
+ rb_define_const(rb_mGrnOperator, "STAR",
121
123
  UINT2NUM(GRN_OP_STAR));
122
- rb_define_const(rb_mGrnOperation, "SLASH",
124
+ rb_define_const(rb_mGrnOperator, "SLASH",
123
125
  UINT2NUM(GRN_OP_SLASH));
124
- rb_define_const(rb_mGrnOperation, "MODULO",
126
+ rb_define_const(rb_mGrnOperator, "MODULO",
125
127
  UINT2NUM(GRN_OP_MOD));
126
- rb_define_const(rb_mGrnOperation, "DELETE",
128
+ rb_define_const(rb_mGrnOperator, "DELETE",
127
129
  UINT2NUM(GRN_OP_DELETE));
128
- rb_define_const(rb_mGrnOperation, "INCREMENT",
130
+ rb_define_const(rb_mGrnOperator, "INCREMENT",
129
131
  UINT2NUM(GRN_OP_INCR));
130
- rb_define_const(rb_mGrnOperation, "DECREMENT",
132
+ rb_define_const(rb_mGrnOperator, "DECREMENT",
131
133
  UINT2NUM(GRN_OP_DECR));
132
- rb_define_const(rb_mGrnOperation, "INCREMENT_POST",
134
+ rb_define_const(rb_mGrnOperator, "INCREMENT_POST",
133
135
  UINT2NUM(GRN_OP_INCR_POST));
134
- rb_define_const(rb_mGrnOperation, "DECREMENT_POST",
136
+ rb_define_const(rb_mGrnOperator, "DECREMENT_POST",
135
137
  UINT2NUM(GRN_OP_DECR_POST));
136
- rb_define_const(rb_mGrnOperation, "NOT",
138
+ rb_define_const(rb_mGrnOperator, "NOT",
137
139
  UINT2NUM(GRN_OP_NOT));
138
- rb_define_const(rb_mGrnOperation, "ADJUST",
140
+ rb_define_const(rb_mGrnOperator, "ADJUST",
139
141
  UINT2NUM(GRN_OP_ADJUST));
140
- rb_define_const(rb_mGrnOperation, "EXACT",
142
+ rb_define_const(rb_mGrnOperator, "EXACT",
141
143
  UINT2NUM(GRN_OP_EXACT));
142
- rb_define_const(rb_mGrnOperation, "LONGEST_COMMON_PREFIX",
144
+ rb_define_const(rb_mGrnOperator, "LONGEST_COMMON_PREFIX",
143
145
  UINT2NUM(GRN_OP_LCP));
144
- rb_define_const(rb_mGrnOperation, "PARTIAL",
146
+ rb_define_const(rb_mGrnOperator, "PARTIAL",
145
147
  UINT2NUM(GRN_OP_PARTIAL));
146
- rb_define_const(rb_mGrnOperation, "UNSPLIT",
148
+ rb_define_const(rb_mGrnOperator, "UNSPLIT",
147
149
  UINT2NUM(GRN_OP_UNSPLIT));
148
- rb_define_const(rb_mGrnOperation, "PREFIX",
150
+ rb_define_const(rb_mGrnOperator, "PREFIX",
149
151
  UINT2NUM(GRN_OP_PREFIX));
150
- rb_define_const(rb_mGrnOperation, "SUFFIX",
152
+ rb_define_const(rb_mGrnOperator, "SUFFIX",
151
153
  UINT2NUM(GRN_OP_SUFFIX));
152
- rb_define_const(rb_mGrnOperation, "GEO_DISTANCE1",
154
+ rb_define_const(rb_mGrnOperator, "GEO_DISTANCE1",
153
155
  UINT2NUM(GRN_OP_GEO_DISTANCE1));
154
- rb_define_const(rb_mGrnOperation, "GEO_DISTANCE2",
156
+ rb_define_const(rb_mGrnOperator, "GEO_DISTANCE2",
155
157
  UINT2NUM(GRN_OP_GEO_DISTANCE2));
156
- rb_define_const(rb_mGrnOperation, "GEO_DISTANCE3",
158
+ rb_define_const(rb_mGrnOperator, "GEO_DISTANCE3",
157
159
  UINT2NUM(GRN_OP_GEO_DISTANCE3));
158
- rb_define_const(rb_mGrnOperation, "GEO_DISTANCE4",
160
+ rb_define_const(rb_mGrnOperator, "GEO_DISTANCE4",
159
161
  UINT2NUM(GRN_OP_GEO_DISTANCE4));
160
- rb_define_const(rb_mGrnOperation, "GEO_WITHINP5",
162
+ rb_define_const(rb_mGrnOperator, "GEO_WITHINP5",
161
163
  UINT2NUM(GRN_OP_GEO_WITHINP5));
162
- rb_define_const(rb_mGrnOperation, "GEO_WITHINP6",
164
+ rb_define_const(rb_mGrnOperator, "GEO_WITHINP6",
163
165
  UINT2NUM(GRN_OP_GEO_WITHINP6));
164
- rb_define_const(rb_mGrnOperation, "GEO_WITHINP8",
166
+ rb_define_const(rb_mGrnOperator, "GEO_WITHINP8",
165
167
  UINT2NUM(GRN_OP_GEO_WITHINP8));
166
- rb_define_const(rb_mGrnOperation, "OBJECT_SEARCH",
168
+ rb_define_const(rb_mGrnOperator, "OBJECT_SEARCH",
167
169
  UINT2NUM(GRN_OP_OBJ_SEARCH));
168
- rb_define_const(rb_mGrnOperation, "EXPRESSION_GET_VARIABLE",
170
+ rb_define_const(rb_mGrnOperator, "EXPRESSION_GET_VARIABLE",
169
171
  UINT2NUM(GRN_OP_EXPR_GET_VAR));
170
- rb_define_const(rb_mGrnOperation, "TABLE_CREATE",
172
+ rb_define_const(rb_mGrnOperator, "TABLE_CREATE",
171
173
  UINT2NUM(GRN_OP_TABLE_CREATE));
172
- rb_define_const(rb_mGrnOperation, "TABLE_SELECT",
174
+ rb_define_const(rb_mGrnOperator, "TABLE_SELECT",
173
175
  UINT2NUM(GRN_OP_TABLE_SELECT));
174
- rb_define_const(rb_mGrnOperation, "TABLE_SORT",
176
+ rb_define_const(rb_mGrnOperator, "TABLE_SORT",
175
177
  UINT2NUM(GRN_OP_TABLE_SORT));
176
- rb_define_const(rb_mGrnOperation, "TABLE_GROUP",
178
+ rb_define_const(rb_mGrnOperator, "TABLE_GROUP",
177
179
  UINT2NUM(GRN_OP_TABLE_GROUP));
178
- rb_define_const(rb_mGrnOperation, "JSON_PUT",
180
+ rb_define_const(rb_mGrnOperator, "JSON_PUT",
179
181
  UINT2NUM(GRN_OP_JSON_PUT));
180
182
 
181
183
 
182
184
  /*
183
- rb_define_const(rb_mGrnOperation, "GEO_DISTANCE1",
185
+ rb_define_const(rb_mGrnOperator, "GEO_DISTANCE1",
184
186
  UINT2NUM(GRN_OP_GEO_DISTANCE1));
185
- rb_define_const(rb_mGrnOperation, "GEO_DISTANCE2",
187
+ rb_define_const(rb_mGrnOperator, "GEO_DISTANCE2",
186
188
  UINT2NUM(GRN_OP_GEO_DISTANCE2));
187
- rb_define_const(rb_mGrnOperation, "GEO_DISTANCE3",
189
+ rb_define_const(rb_mGrnOperator, "GEO_DISTANCE3",
188
190
  UINT2NUM(GRN_OP_GEO_DISTANCE3));
189
- rb_define_const(rb_mGrnOperation, "GEO_DISTANCE4",
191
+ rb_define_const(rb_mGrnOperator, "GEO_DISTANCE4",
190
192
  UINT2NUM(GRN_OP_GEO_DISTANCE4));
191
- rb_define_const(rb_mGrnOperation, "GEO_WITHINP5",
193
+ rb_define_const(rb_mGrnOperator, "GEO_WITHINP5",
192
194
  UINT2NUM(GRN_OP_GEO_WITHINP5));
193
- rb_define_const(rb_mGrnOperation, "GEO_WITHINP6",
195
+ rb_define_const(rb_mGrnOperator, "GEO_WITHINP6",
194
196
  UINT2NUM(GRN_OP_GEO_WITHINP6));
195
- rb_define_const(rb_mGrnOperation, "GEO_WITHINP8",
197
+ rb_define_const(rb_mGrnOperator, "GEO_WITHINP8",
196
198
  UINT2NUM(GRN_OP_GEO_WITHINP8));
197
199
  */
198
200
  }