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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (334) hide show
  1. data/Rakefile +33 -2
  2. data/benchmark/common.rb +2 -2
  3. data/benchmark/read-write-many-small-items.rb +71 -62
  4. data/benchmark/write-many-small-items.rb +61 -53
  5. data/ext/groonga/rb-grn-context.c +23 -5
  6. data/ext/groonga/rb-grn-index-column.c +2 -6
  7. data/ext/groonga/rb-grn-operator.c +31 -1
  8. data/ext/groonga/rb-grn-variable-size-column.c +77 -1
  9. data/ext/groonga/rb-grn.h +2 -11
  10. data/ext/groonga/rb-groonga.c +1 -2
  11. data/lib/1.8/groonga.so +0 -0
  12. data/lib/1.9/groonga.so +0 -0
  13. data/lib/groonga/command.rb +169 -0
  14. data/lib/groonga/context.rb +4 -124
  15. data/lib/groonga/dumper.rb +10 -8
  16. data/lib/groonga/record.rb +7 -0
  17. data/lib/groonga/schema.rb +98 -7
  18. data/rroonga-build.rb +3 -3
  19. data/test/{test-context-select.rb → test-command-select.rb} +3 -3
  20. data/test/test-record.rb +18 -1
  21. data/test/test-schema-dumper.rb +48 -0
  22. data/test/test-schema-type.rb +35 -0
  23. data/test/test-schema.rb +81 -11
  24. data/test/test-table-select.rb +49 -38
  25. data/test/test-variable-size-column.rb +30 -0
  26. data/vendor/local/bin/grntest.exe +0 -0
  27. data/vendor/local/bin/groonga.exe +0 -0
  28. data/vendor/local/bin/libgroonga-0.dll +0 -0
  29. data/vendor/local/bin/libmecab-1.dll +0 -0
  30. data/vendor/local/bin/mecab.exe +0 -0
  31. data/vendor/local/include/groonga/groonga/plugin.h +3 -2
  32. data/vendor/local/include/groonga/groonga.h +106 -78
  33. data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
  34. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
  35. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
  36. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
  37. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
  38. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
  39. data/vendor/local/lib/libgroonga.a +0 -0
  40. data/vendor/local/lib/libgroonga.dll.a +0 -0
  41. data/vendor/local/lib/libmecab.a +0 -0
  42. data/vendor/local/lib/libmecab.dll.a +0 -0
  43. data/vendor/local/lib/pkgconfig/groonga.pc +5 -2
  44. data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
  45. data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
  46. data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
  47. data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
  48. data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
  49. data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
  50. data/vendor/local/share/doc/groonga/en/html/_sources/characteristic.txt +42 -32
  51. data/vendor/local/share/doc/groonga/en/html/_sources/commands/delete.txt +5 -1
  52. data/vendor/local/share/doc/groonga/en/html/_sources/commands/table_create.txt +5 -2
  53. data/vendor/local/share/doc/groonga/en/html/_sources/community.txt +4 -3
  54. data/vendor/local/share/doc/groonga/en/html/_sources/contribution.txt +8 -6
  55. data/vendor/local/share/doc/groonga/en/html/_sources/functions/geo_distance.txt +42 -3
  56. data/vendor/local/share/doc/groonga/en/html/_sources/functions/geo_in_circle.txt +26 -1
  57. data/vendor/local/share/doc/groonga/en/html/_sources/index.txt +2 -2
  58. data/vendor/local/share/doc/groonga/en/html/_sources/install.txt +102 -27
  59. data/vendor/local/share/doc/groonga/en/html/_sources/limitations.txt +10 -10
  60. data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +130 -21
  61. data/vendor/local/share/doc/groonga/en/html/_sources/output.txt +164 -0
  62. data/vendor/local/share/doc/groonga/en/html/_sources/reference.txt +1 -0
  63. data/vendor/local/share/doc/groonga/en/html/_sources/suggest.txt +0 -5
  64. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/data.txt +6 -4
  65. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/drilldown.txt +1 -3
  66. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/index.txt +2 -1
  67. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/introduction.txt +95 -116
  68. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/match_columns.txt +1 -4
  69. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/micro_blog.txt +1 -4
  70. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/network.txt +3 -0
  71. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/patricia_trie.txt +1 -2
  72. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/query_expansion.txt +5 -0
  73. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/search.txt +3 -0
  74. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial.txt +2 -2
  75. data/vendor/local/share/doc/groonga/en/html/_sources/type.txt +3 -3
  76. data/vendor/local/share/doc/groonga/en/html/_static/basic.css +13 -1
  77. data/vendor/local/share/doc/groonga/en/html/_static/doctools.js +5 -5
  78. data/vendor/local/share/doc/groonga/en/html/_static/searchtools.js +11 -7
  79. data/vendor/local/share/doc/groonga/en/html/_static/websupport.js +1 -1
  80. data/vendor/local/share/doc/groonga/en/html/characteristic.html +60 -52
  81. data/vendor/local/share/doc/groonga/en/html/command_version.html +30 -30
  82. data/vendor/local/share/doc/groonga/en/html/commands/cache_limit.html +34 -34
  83. data/vendor/local/share/doc/groonga/en/html/commands/check.html +34 -34
  84. data/vendor/local/share/doc/groonga/en/html/commands/clearlock.html +34 -34
  85. data/vendor/local/share/doc/groonga/en/html/commands/column_create.html +34 -34
  86. data/vendor/local/share/doc/groonga/en/html/commands/column_list.html +34 -34
  87. data/vendor/local/share/doc/groonga/en/html/commands/column_remove.html +34 -34
  88. data/vendor/local/share/doc/groonga/en/html/commands/define_selector.html +36 -36
  89. data/vendor/local/share/doc/groonga/en/html/commands/defrag.html +34 -34
  90. data/vendor/local/share/doc/groonga/en/html/commands/delete.html +38 -35
  91. data/vendor/local/share/doc/groonga/en/html/commands/dump.html +32 -32
  92. data/vendor/local/share/doc/groonga/en/html/commands/load.html +36 -36
  93. data/vendor/local/share/doc/groonga/en/html/commands/log_level.html +36 -36
  94. data/vendor/local/share/doc/groonga/en/html/commands/log_put.html +36 -36
  95. data/vendor/local/share/doc/groonga/en/html/commands/log_reopen.html +38 -38
  96. data/vendor/local/share/doc/groonga/en/html/commands/quit.html +32 -32
  97. data/vendor/local/share/doc/groonga/en/html/commands/select.html +38 -38
  98. data/vendor/local/share/doc/groonga/en/html/commands/shutdown.html +32 -32
  99. data/vendor/local/share/doc/groonga/en/html/commands/status.html +34 -34
  100. data/vendor/local/share/doc/groonga/en/html/commands/suggest.html +36 -36
  101. data/vendor/local/share/doc/groonga/en/html/commands/table_create.html +38 -36
  102. data/vendor/local/share/doc/groonga/en/html/commands/table_list.html +34 -34
  103. data/vendor/local/share/doc/groonga/en/html/commands/table_remove.html +34 -34
  104. data/vendor/local/share/doc/groonga/en/html/commands/view_add.html +34 -34
  105. data/vendor/local/share/doc/groonga/en/html/commands.html +41 -41
  106. data/vendor/local/share/doc/groonga/en/html/community.html +14 -12
  107. data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +7 -7
  108. data/vendor/local/share/doc/groonga/en/html/contribution/development/document.html +7 -7
  109. data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +7 -7
  110. data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +7 -7
  111. data/vendor/local/share/doc/groonga/en/html/contribution/development.html +7 -7
  112. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +7 -7
  113. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +7 -7
  114. data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +7 -7
  115. data/vendor/local/share/doc/groonga/en/html/contribution/report.html +7 -7
  116. data/vendor/local/share/doc/groonga/en/html/contribution.html +15 -13
  117. data/vendor/local/share/doc/groonga/en/html/executables/grnslap.html +7 -7
  118. data/vendor/local/share/doc/groonga/en/html/executables/grntest.html +7 -7
  119. data/vendor/local/share/doc/groonga/en/html/executables/groonga-http.html +7 -7
  120. data/vendor/local/share/doc/groonga/en/html/executables/groonga-suggest-create-dataset.html +12 -12
  121. data/vendor/local/share/doc/groonga/en/html/executables/groonga.html +7 -7
  122. data/vendor/local/share/doc/groonga/en/html/executables.html +7 -7
  123. data/vendor/local/share/doc/groonga/en/html/expr.html +25 -25
  124. data/vendor/local/share/doc/groonga/en/html/functions/edit_distance.html +32 -32
  125. data/vendor/local/share/doc/groonga/en/html/functions/geo_distance.html +71 -36
  126. data/vendor/local/share/doc/groonga/en/html/functions/geo_in_circle.html +53 -33
  127. data/vendor/local/share/doc/groonga/en/html/functions/geo_in_rectangle.html +32 -32
  128. data/vendor/local/share/doc/groonga/en/html/functions/now.html +30 -30
  129. data/vendor/local/share/doc/groonga/en/html/functions/rand.html +32 -32
  130. data/vendor/local/share/doc/groonga/en/html/functions.html +22 -22
  131. data/vendor/local/share/doc/groonga/en/html/genindex.html +7 -7
  132. data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +7 -7
  133. data/vendor/local/share/doc/groonga/en/html/index.html +92 -87
  134. data/vendor/local/share/doc/groonga/en/html/install.html +109 -40
  135. data/vendor/local/share/doc/groonga/en/html/limitations.html +19 -19
  136. data/vendor/local/share/doc/groonga/en/html/log.html +21 -21
  137. data/vendor/local/share/doc/groonga/en/html/news/0.x.html +7 -7
  138. data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +7 -7
  139. data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +7 -7
  140. data/vendor/local/share/doc/groonga/en/html/news/senna.html +7 -7
  141. data/vendor/local/share/doc/groonga/en/html/news.html +233 -112
  142. data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
  143. data/vendor/local/share/doc/groonga/en/html/output.html +302 -0
  144. data/vendor/local/share/doc/groonga/en/html/pseudo_column.html +21 -21
  145. data/vendor/local/share/doc/groonga/en/html/reference.html +59 -55
  146. data/vendor/local/share/doc/groonga/en/html/search.html +6 -6
  147. data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
  148. data/vendor/local/share/doc/groonga/en/html/spec/search.html +11 -11
  149. data/vendor/local/share/doc/groonga/en/html/spec.html +11 -11
  150. data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +7 -7
  151. data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +7 -7
  152. data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +7 -7
  153. data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +7 -7
  154. data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +7 -7
  155. data/vendor/local/share/doc/groonga/en/html/suggest.html +7 -12
  156. data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +7 -7
  157. data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +11 -11
  158. data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +23 -23
  159. data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +10 -10
  160. data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +10 -10
  161. data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +124 -164
  162. data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +10 -10
  163. data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +10 -10
  164. data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +10 -10
  165. data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +14 -14
  166. data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +10 -10
  167. data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +11 -10
  168. data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +10 -10
  169. data/vendor/local/share/doc/groonga/en/html/tutorial.html +26 -26
  170. data/vendor/local/share/doc/groonga/en/html/type.html +31 -31
  171. data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
  172. data/vendor/local/share/doc/groonga/ja/html/_sources/characteristic.txt +42 -32
  173. data/vendor/local/share/doc/groonga/ja/html/_sources/commands/delete.txt +5 -1
  174. data/vendor/local/share/doc/groonga/ja/html/_sources/commands/table_create.txt +5 -2
  175. data/vendor/local/share/doc/groonga/ja/html/_sources/community.txt +4 -3
  176. data/vendor/local/share/doc/groonga/ja/html/_sources/contribution.txt +8 -6
  177. data/vendor/local/share/doc/groonga/ja/html/_sources/functions/geo_distance.txt +42 -3
  178. data/vendor/local/share/doc/groonga/ja/html/_sources/functions/geo_in_circle.txt +26 -1
  179. data/vendor/local/share/doc/groonga/ja/html/_sources/index.txt +2 -2
  180. data/vendor/local/share/doc/groonga/ja/html/_sources/install.txt +102 -27
  181. data/vendor/local/share/doc/groonga/ja/html/_sources/limitations.txt +10 -10
  182. data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +130 -21
  183. data/vendor/local/share/doc/groonga/ja/html/_sources/output.txt +164 -0
  184. data/vendor/local/share/doc/groonga/ja/html/_sources/reference.txt +1 -0
  185. data/vendor/local/share/doc/groonga/ja/html/_sources/suggest.txt +0 -5
  186. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/data.txt +6 -4
  187. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/drilldown.txt +1 -3
  188. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/index.txt +2 -1
  189. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/introduction.txt +95 -116
  190. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/match_columns.txt +1 -4
  191. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/micro_blog.txt +1 -4
  192. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/network.txt +3 -0
  193. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/patricia_trie.txt +1 -2
  194. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/query_expansion.txt +5 -0
  195. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/search.txt +3 -0
  196. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial.txt +2 -2
  197. data/vendor/local/share/doc/groonga/ja/html/_sources/type.txt +3 -3
  198. data/vendor/local/share/doc/groonga/ja/html/_static/basic.css +13 -1
  199. data/vendor/local/share/doc/groonga/ja/html/_static/doctools.js +5 -5
  200. data/vendor/local/share/doc/groonga/ja/html/_static/searchtools.js +11 -7
  201. data/vendor/local/share/doc/groonga/ja/html/_static/websupport.js +1 -1
  202. data/vendor/local/share/doc/groonga/ja/html/characteristic.html +55 -47
  203. data/vendor/local/share/doc/groonga/ja/html/command_version.html +30 -30
  204. data/vendor/local/share/doc/groonga/ja/html/commands/cache_limit.html +34 -34
  205. data/vendor/local/share/doc/groonga/ja/html/commands/check.html +34 -34
  206. data/vendor/local/share/doc/groonga/ja/html/commands/clearlock.html +34 -34
  207. data/vendor/local/share/doc/groonga/ja/html/commands/column_create.html +34 -34
  208. data/vendor/local/share/doc/groonga/ja/html/commands/column_list.html +34 -34
  209. data/vendor/local/share/doc/groonga/ja/html/commands/column_remove.html +34 -34
  210. data/vendor/local/share/doc/groonga/ja/html/commands/define_selector.html +36 -36
  211. data/vendor/local/share/doc/groonga/ja/html/commands/defrag.html +34 -34
  212. data/vendor/local/share/doc/groonga/ja/html/commands/delete.html +38 -35
  213. data/vendor/local/share/doc/groonga/ja/html/commands/dump.html +32 -32
  214. data/vendor/local/share/doc/groonga/ja/html/commands/load.html +36 -36
  215. data/vendor/local/share/doc/groonga/ja/html/commands/log_level.html +36 -36
  216. data/vendor/local/share/doc/groonga/ja/html/commands/log_put.html +36 -36
  217. data/vendor/local/share/doc/groonga/ja/html/commands/log_reopen.html +38 -38
  218. data/vendor/local/share/doc/groonga/ja/html/commands/quit.html +32 -32
  219. data/vendor/local/share/doc/groonga/ja/html/commands/select.html +38 -38
  220. data/vendor/local/share/doc/groonga/ja/html/commands/shutdown.html +32 -32
  221. data/vendor/local/share/doc/groonga/ja/html/commands/status.html +34 -34
  222. data/vendor/local/share/doc/groonga/ja/html/commands/suggest.html +36 -36
  223. data/vendor/local/share/doc/groonga/ja/html/commands/table_create.html +38 -36
  224. data/vendor/local/share/doc/groonga/ja/html/commands/table_list.html +34 -34
  225. data/vendor/local/share/doc/groonga/ja/html/commands/table_remove.html +34 -34
  226. data/vendor/local/share/doc/groonga/ja/html/commands/view_add.html +34 -34
  227. data/vendor/local/share/doc/groonga/ja/html/commands.html +41 -41
  228. data/vendor/local/share/doc/groonga/ja/html/community.html +10 -8
  229. data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +7 -7
  230. data/vendor/local/share/doc/groonga/ja/html/contribution/development/document.html +7 -7
  231. data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +7 -7
  232. data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +7 -7
  233. data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +7 -7
  234. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +7 -7
  235. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +7 -7
  236. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +7 -7
  237. data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +7 -7
  238. data/vendor/local/share/doc/groonga/ja/html/contribution.html +7 -7
  239. data/vendor/local/share/doc/groonga/ja/html/executables/grnslap.html +7 -7
  240. data/vendor/local/share/doc/groonga/ja/html/executables/grntest.html +7 -7
  241. data/vendor/local/share/doc/groonga/ja/html/executables/groonga-http.html +7 -7
  242. data/vendor/local/share/doc/groonga/ja/html/executables/groonga-suggest-create-dataset.html +12 -12
  243. data/vendor/local/share/doc/groonga/ja/html/executables/groonga.html +7 -7
  244. data/vendor/local/share/doc/groonga/ja/html/executables.html +7 -7
  245. data/vendor/local/share/doc/groonga/ja/html/expr.html +25 -25
  246. data/vendor/local/share/doc/groonga/ja/html/functions/edit_distance.html +32 -32
  247. data/vendor/local/share/doc/groonga/ja/html/functions/geo_distance.html +71 -36
  248. data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_circle.html +53 -33
  249. data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_rectangle.html +32 -32
  250. data/vendor/local/share/doc/groonga/ja/html/functions/now.html +30 -30
  251. data/vendor/local/share/doc/groonga/ja/html/functions/rand.html +32 -32
  252. data/vendor/local/share/doc/groonga/ja/html/functions.html +22 -22
  253. data/vendor/local/share/doc/groonga/ja/html/genindex.html +7 -7
  254. data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +7 -7
  255. data/vendor/local/share/doc/groonga/ja/html/index.html +84 -79
  256. data/vendor/local/share/doc/groonga/ja/html/install.html +92 -16
  257. data/vendor/local/share/doc/groonga/ja/html/limitations.html +13 -13
  258. data/vendor/local/share/doc/groonga/ja/html/log.html +21 -21
  259. data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +7 -7
  260. data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +7 -7
  261. data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +7 -7
  262. data/vendor/local/share/doc/groonga/ja/html/news/senna.html +7 -7
  263. data/vendor/local/share/doc/groonga/ja/html/news.html +202 -99
  264. data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
  265. data/vendor/local/share/doc/groonga/ja/html/output.html +287 -0
  266. data/vendor/local/share/doc/groonga/ja/html/pseudo_column.html +21 -21
  267. data/vendor/local/share/doc/groonga/ja/html/reference.html +59 -55
  268. data/vendor/local/share/doc/groonga/ja/html/search.html +6 -6
  269. data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
  270. data/vendor/local/share/doc/groonga/ja/html/spec/search.html +7 -7
  271. data/vendor/local/share/doc/groonga/ja/html/spec.html +11 -11
  272. data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +7 -7
  273. data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +7 -7
  274. data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +7 -7
  275. data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +7 -7
  276. data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +7 -7
  277. data/vendor/local/share/doc/groonga/ja/html/suggest.html +7 -11
  278. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +7 -7
  279. data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +7 -7
  280. data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +20 -20
  281. data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +7 -7
  282. data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +7 -7
  283. data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +93 -115
  284. data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +7 -7
  285. data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +7 -7
  286. data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +7 -7
  287. data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +8 -8
  288. data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +7 -7
  289. data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +8 -7
  290. data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +7 -7
  291. data/vendor/local/share/doc/groonga/ja/html/tutorial.html +21 -21
  292. data/vendor/local/share/doc/groonga/ja/html/type.html +31 -31
  293. data/vendor/local/share/doc/groonga/source/characteristic.txt +42 -32
  294. data/vendor/local/share/doc/groonga/source/commands/delete.txt +5 -1
  295. data/vendor/local/share/doc/groonga/source/commands/table_create.txt +5 -2
  296. data/vendor/local/share/doc/groonga/source/community.txt +4 -3
  297. data/vendor/local/share/doc/groonga/source/contribution.txt +8 -6
  298. data/vendor/local/share/doc/groonga/source/example/tutorial/data-1.log +8 -8
  299. data/vendor/local/share/doc/groonga/source/example/tutorial/data-2.log +4 -4
  300. data/vendor/local/share/doc/groonga/source/example/tutorial/data-3.log +4 -4
  301. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-1.log +3 -15
  302. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-2.log +2 -7
  303. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-3.log +2 -7
  304. data/vendor/local/share/doc/groonga/source/functions/geo_distance.txt +42 -3
  305. data/vendor/local/share/doc/groonga/source/functions/geo_in_circle.txt +26 -1
  306. data/vendor/local/share/doc/groonga/source/index.txt +2 -2
  307. data/vendor/local/share/doc/groonga/source/install.txt +102 -27
  308. data/vendor/local/share/doc/groonga/source/limitations.txt +10 -10
  309. data/vendor/local/share/doc/groonga/source/news.txt +130 -21
  310. data/vendor/local/share/doc/groonga/source/output.txt +164 -0
  311. data/vendor/local/share/doc/groonga/source/reference.txt +1 -0
  312. data/vendor/local/share/doc/groonga/source/suggest.txt +0 -5
  313. data/vendor/local/share/doc/groonga/source/tutorial/data.txt +6 -4
  314. data/vendor/local/share/doc/groonga/source/tutorial/drilldown.txt +1 -3
  315. data/vendor/local/share/doc/groonga/source/tutorial/index.txt +2 -1
  316. data/vendor/local/share/doc/groonga/source/tutorial/introduction.txt +95 -116
  317. data/vendor/local/share/doc/groonga/source/tutorial/match_columns.txt +1 -4
  318. data/vendor/local/share/doc/groonga/source/tutorial/micro_blog.txt +1 -4
  319. data/vendor/local/share/doc/groonga/source/tutorial/network.txt +3 -0
  320. data/vendor/local/share/doc/groonga/source/tutorial/patricia_trie.txt +1 -2
  321. data/vendor/local/share/doc/groonga/source/tutorial/query_expansion.txt +5 -0
  322. data/vendor/local/share/doc/groonga/source/tutorial/search.txt +3 -0
  323. data/vendor/local/share/doc/groonga/source/tutorial.txt +2 -2
  324. data/vendor/local/share/doc/groonga/source/type.txt +3 -3
  325. data/vendor/local/share/groonga/examples/dictionary/html/js/dictionary.js +1 -0
  326. data/vendor/local/share/groonga/html/admin/index.html +40 -0
  327. data/vendor/local/share/groonga/html/admin/js/jquery.flot-0.7.min.js +6 -0
  328. data/vendor/local/share/groonga/html/admin/js/jquery.flot.license.txt +22 -0
  329. data/vendor/local/share/man/ja/man1/groonga.1 +560 -138
  330. data/vendor/local/share/man/man1/groonga.1 +637 -223
  331. metadata +887 -898
  332. data/ext/groonga/Makefile +0 -184
  333. data/ext/groonga/rb-grn-query.c +0 -260
  334. data/test/test-query.rb +0 -22
@@ -9,7 +9,7 @@
9
9
  <head>
10
10
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
11
11
 
12
- <title>7.6.2. geo_distance &mdash; groonga v1.2.7ドキュメント</title>
12
+ <title>7.7.2. geo_distance &mdash; groonga v1.2.9ドキュメント</title>
13
13
 
14
14
  <link rel="stylesheet" href="../_static/groonga.css" type="text/css" />
15
15
  <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
@@ -17,7 +17,7 @@
17
17
  <script type="text/javascript">
18
18
  var DOCUMENTATION_OPTIONS = {
19
19
  URL_ROOT: '../',
20
- VERSION: '1.2.7',
20
+ VERSION: '1.2.9',
21
21
  COLLAPSE_INDEX: false,
22
22
  FILE_SUFFIX: '.html',
23
23
  HAS_SOURCE: true
@@ -28,10 +28,10 @@
28
28
  <script type="text/javascript" src="../_static/doctools.js"></script>
29
29
  <script type="text/javascript" src="../_static/translations.js"></script>
30
30
  <link rel="shortcut icon" href="../_static/favicon.ico"/>
31
- <link rel="top" title="groonga v1.2.7ドキュメント" href="../index.html" />
32
- <link rel="up" title="7.6. 組み込み関数一覧" href="../functions.html" />
33
- <link rel="next" title="7.6.3. geo_in_circle" href="geo_in_circle.html" />
34
- <link rel="prev" title="7.6.1. edit_distance" href="edit_distance.html" />
31
+ <link rel="top" title="groonga v1.2.9ドキュメント" href="../index.html" />
32
+ <link rel="up" title="7.7. 組み込み関数一覧" href="../functions.html" />
33
+ <link rel="next" title="7.7.3. geo_in_circle" href="geo_in_circle.html" />
34
+ <link rel="prev" title="7.7.1. edit_distance" href="edit_distance.html" />
35
35
  </head>
36
36
  <body>
37
37
  <div class="header">
@@ -58,14 +58,14 @@
58
58
  <a href="../genindex.html" title="総合索引"
59
59
  accesskey="I">索引</a></li>
60
60
  <li class="right" >
61
- <a href="geo_in_circle.html" title="7.6.3. geo_in_circle"
61
+ <a href="geo_in_circle.html" title="7.7.3. geo_in_circle"
62
62
  accesskey="N">次へ</a> |</li>
63
63
  <li class="right" >
64
- <a href="edit_distance.html" title="7.6.1. edit_distance"
64
+ <a href="edit_distance.html" title="7.7.1. edit_distance"
65
65
  accesskey="P">前へ</a> |</li>
66
- <li><a href="../index.html">groonga v1.2.7ドキュメント</a> &raquo;</li>
66
+ <li><a href="../index.html">groonga v1.2.9ドキュメント</a> &raquo;</li>
67
67
  <li><a href="../reference.html" >7. リファレンスマニュアル</a> &raquo;</li>
68
- <li><a href="../functions.html" accesskey="U">7.6. 組み込み関数一覧</a> &raquo;</li>
68
+ <li><a href="../functions.html" accesskey="U">7.7. 組み込み関数一覧</a> &raquo;</li>
69
69
  </ul>
70
70
  </div>
71
71
 
@@ -75,40 +75,75 @@
75
75
  <div class="body">
76
76
 
77
77
  <div class="section" id="geo-distance">
78
- <h1>7.6.2. geo_distance<a class="headerlink" href="#geo-distance" title="このヘッドラインへのパーマリンク">¶</a></h1>
78
+ <h1>7.7.2. geo_distance<a class="headerlink" href="#geo-distance" title="このヘッドラインへのパーマリンク">¶</a></h1>
79
79
  <div class="section" id="id1">
80
- <h2>7.6.2.1. 名前<a class="headerlink" href="#id1" title="このヘッドラインへのパーマリンク">¶</a></h2>
80
+ <h2>7.7.2.1. 名前<a class="headerlink" href="#id1" title="このヘッドラインへのパーマリンク">¶</a></h2>
81
81
  <p>geo_distance - 指定した2点の距離を計算する</p>
82
82
  </div>
83
83
  <div class="section" id="id2">
84
- <h2>7.6.2.2. 書式<a class="headerlink" href="#id2" title="このヘッドラインへのパーマリンク">¶</a></h2>
85
- <div class="highlight-none"><div class="highlight"><pre>geo_distance(point1, point2)
84
+ <h2>7.7.2.2. 書式<a class="headerlink" href="#id2" title="このヘッドラインへのパーマリンク">¶</a></h2>
85
+ <div class="highlight-none"><div class="highlight"><pre>geo_distance(point1, point2[, approximate_type])
86
86
  </pre></div>
87
87
  </div>
88
88
  </div>
89
89
  <div class="section" id="id3">
90
- <h2>7.6.2.3. 説明<a class="headerlink" href="#id3" title="このヘッドラインへのパーマリンク">¶</a></h2>
90
+ <h2>7.7.2.3. 説明<a class="headerlink" href="#id3" title="このヘッドラインへのパーマリンク">¶</a></h2>
91
91
  <p>groonga組込関数の一つであるgeo_distanceについて説明します。組込関数は、script形式のgrn_expr中で呼び出すことができます。</p>
92
- <p>geo_distance() 関数は、point1に指定した座標とpoint2に指定した座標の間の距離(近似値)を求めます。
93
- geo_distance()の他に、距離計算アルゴリズムの異なる、geo_distance2()、geo_distance3()が使用できます。それぞれ、長方形近似、球面近似、ヒュベニの距離計算式によって距離を算出します。</p>
92
+ <p>geo_distance() 関数は、point1に指定した座標とpoint2に指定した座標の間の距離(近似値)を求めます。</p>
93
+ <p>... note:</p>
94
+ <div class="highlight-none"><div class="highlight"><pre>geo_distance()の他に、距離計算アルゴリズムの異なる、geo_distance2()、geo_distance3()がありましたが、1.2.9から非推奨になりました。 ``geo_distance2()`` の代わりに ``geo_distance(point1, point2, &quot;sphere&quot;)`` を、 ``geo_distance3()`` の代わりに ``geo_distance(point1, point2, &quot;ellipsoid&quot;)`` を使ってください。
95
+ </pre></div>
96
+ </div>
94
97
  </div>
95
98
  <div class="section" id="id4">
96
- <h2>7.6.2.4. 引数<a class="headerlink" href="#id4" title="このヘッドラインへのパーマリンク">¶</a></h2>
99
+ <h2>7.7.2.4. 引数<a class="headerlink" href="#id4" title="このヘッドラインへのパーマリンク">¶</a></h2>
97
100
  <p><tt class="docutils literal"><span class="pre">point1</span></tt></p>
98
101
  <blockquote>
99
102
  <div>距離を求める2点のうち一つを指定します。GeoPoint型の値を指定できます。 <a class="footnote-reference" href="#id8" id="id5">[1]</a></div></blockquote>
100
103
  <p><tt class="docutils literal"><span class="pre">point2</span></tt></p>
101
104
  <blockquote>
102
105
  <div>距離を求める2点のうちもう一つを指定します。GeoPoint型の値、あるいは座標を示す文字列を指定できます。</div></blockquote>
106
+ <p><tt class="docutils literal"><span class="pre">approximate_type</span></tt></p>
107
+ <blockquote>
108
+ <div><p>距離を求めるために地形をどのように近似するかを指定します。指定できる値は以下の通りです。</p>
109
+ <p><tt class="docutils literal"><span class="pre">&quot;rectangle&quot;</span></tt></p>
110
+ <blockquote>
111
+ <div><p>方形近似で近似します。単純な計算式で距離を求めることができるため高速ですが、極付近では誤差が大きくなります。</p>
112
+ <p><tt class="docutils literal"><span class="pre">&quot;rect&quot;</span></tt> と省略して指定することもできます。</p>
113
+ <p>この近似方法がデフォルト値です。 <tt class="docutils literal"><span class="pre">approximate_type</span></tt> を省略した場合は方形近似になります。</p>
114
+ </div></blockquote>
115
+ <p><tt class="docutils literal"><span class="pre">&quot;sphere&quot;</span></tt></p>
116
+ <blockquote>
117
+ <div><p>球面近似で近似します。 <tt class="docutils literal"><span class="pre">&quot;rectangle&quot;</span></tt> よりも遅くなりますが、誤差は小さいです。</p>
118
+ <p><tt class="docutils literal"><span class="pre">&quot;sphr&quot;</span></tt> と省略して指定することもできます。</p>
119
+ </div></blockquote>
120
+ <p><tt class="docutils literal"><span class="pre">&quot;ellipsoid&quot;</span></tt></p>
121
+ <blockquote>
122
+ <div><p>楕円体近似で近似します。距離の計算にはヒュベニの距離計算式を用います。 <tt class="docutils literal"><span class="pre">&quot;sphere&quot;</span></tt> よりも遅くなりますが、誤差は小さくなります。</p>
123
+ <p><tt class="docutils literal"><span class="pre">&quot;ellip&quot;</span></tt> と省略して指定することもできます。</p>
124
+ </div></blockquote>
125
+ </div></blockquote>
103
126
  </div>
104
127
  <div class="section" id="id6">
105
- <h2>7.6.2.5. 返値<a class="headerlink" href="#id6" title="このヘッドラインへのパーマリンク">¶</a></h2>
128
+ <h2>7.7.2.5. 返値<a class="headerlink" href="#id6" title="このヘッドラインへのパーマリンク">¶</a></h2>
106
129
  <p>指定した2点の距離をFloat型の値(単位:メートル)として返します。</p>
107
130
  </div>
108
131
  <div class="section" id="id7">
109
- <h2>7.6.2.6. 例<a class="headerlink" href="#id7" title="このヘッドラインへのパーマリンク">¶</a></h2>
132
+ <h2>7.7.2.6. 例<a class="headerlink" href="#id7" title="このヘッドラインへのパーマリンク">¶</a></h2>
110
133
  <div class="highlight-none"><div class="highlight"><pre>geo_distance(pos, &quot;150x150&quot;)
111
- 100
134
+ 100.0
135
+
136
+ # 方形近似を利用
137
+ geo_distance(pos, &quot;150x150&quot;, &quot;rectangle&quot;)
138
+ 100.0
139
+
140
+ # 球面近似を利用
141
+ geo_distance(pos, &quot;150x150&quot;, &quot;sphere&quot;)
142
+ 100.0
143
+
144
+ # 楕円体近似を利用
145
+ geo_distance(pos, &quot;150x150&quot;, &quot;ellipsoid&quot;)
146
+ 100.0
112
147
  </pre></div>
113
148
  </div>
114
149
  <p class="rubric">脚注</p>
@@ -129,23 +164,23 @@ geo_distance()の他に、距離計算アルゴリズムの異なる、geo_dista
129
164
  <div class="sphinxsidebarwrapper">
130
165
  <h3><a href="../index.html">目次</a></h3>
131
166
  <ul>
132
- <li><a class="reference internal" href="#">7.6.2. geo_distance</a><ul>
133
- <li><a class="reference internal" href="#id1">7.6.2.1. 名前</a></li>
134
- <li><a class="reference internal" href="#id2">7.6.2.2. 書式</a></li>
135
- <li><a class="reference internal" href="#id3">7.6.2.3. 説明</a></li>
136
- <li><a class="reference internal" href="#id4">7.6.2.4. 引数</a></li>
137
- <li><a class="reference internal" href="#id6">7.6.2.5. 返値</a></li>
138
- <li><a class="reference internal" href="#id7">7.6.2.6. 例</a></li>
167
+ <li><a class="reference internal" href="#">7.7.2. geo_distance</a><ul>
168
+ <li><a class="reference internal" href="#id1">7.7.2.1. 名前</a></li>
169
+ <li><a class="reference internal" href="#id2">7.7.2.2. 書式</a></li>
170
+ <li><a class="reference internal" href="#id3">7.7.2.3. 説明</a></li>
171
+ <li><a class="reference internal" href="#id4">7.7.2.4. 引数</a></li>
172
+ <li><a class="reference internal" href="#id6">7.7.2.5. 返値</a></li>
173
+ <li><a class="reference internal" href="#id7">7.7.2.6. 例</a></li>
139
174
  </ul>
140
175
  </li>
141
176
  </ul>
142
177
 
143
178
  <h4>前のトピックへ</h4>
144
179
  <p class="topless"><a href="edit_distance.html"
145
- title="前の章へ">7.6.1. edit_distance</a></p>
180
+ title="前の章へ">7.7.1. edit_distance</a></p>
146
181
  <h4>次のトピックへ</h4>
147
182
  <p class="topless"><a href="geo_in_circle.html"
148
- title="次の章へ">7.6.3. geo_in_circle</a></p>
183
+ title="次の章へ">7.7.3. geo_in_circle</a></p>
149
184
  <h3>このページ</h3>
150
185
  <ul class="this-page-menu">
151
186
  <li><a href="../_sources/functions/geo_distance.txt"
@@ -154,7 +189,7 @@ geo_distance()の他に、距離計算アルゴリズムの異なる、geo_dista
154
189
  <div id="searchbox" style="display: none">
155
190
  <h3>クイック検索</h3>
156
191
  <form class="search" action="../search.html" method="get">
157
- <input type="text" name="q" size="18" />
192
+ <input type="text" name="q" />
158
193
  <input type="submit" value="検索" />
159
194
  <input type="hidden" name="check_keywords" value="yes" />
160
195
  <input type="hidden" name="area" value="default" />
@@ -175,18 +210,18 @@ geo_distance()の他に、距離計算アルゴリズムの異なる、geo_dista
175
210
  <a href="../genindex.html" title="総合索引"
176
211
  >索引</a></li>
177
212
  <li class="right" >
178
- <a href="geo_in_circle.html" title="7.6.3. geo_in_circle"
213
+ <a href="geo_in_circle.html" title="7.7.3. geo_in_circle"
179
214
  >次へ</a> |</li>
180
215
  <li class="right" >
181
- <a href="edit_distance.html" title="7.6.1. edit_distance"
216
+ <a href="edit_distance.html" title="7.7.1. edit_distance"
182
217
  >前へ</a> |</li>
183
- <li><a href="../index.html">groonga v1.2.7ドキュメント</a> &raquo;</li>
218
+ <li><a href="../index.html">groonga v1.2.9ドキュメント</a> &raquo;</li>
184
219
  <li><a href="../reference.html" >7. リファレンスマニュアル</a> &raquo;</li>
185
- <li><a href="../functions.html" >7.6. 組み込み関数一覧</a> &raquo;</li>
220
+ <li><a href="../functions.html" >7.7. 組み込み関数一覧</a> &raquo;</li>
186
221
  </ul>
187
222
  </div>
188
223
  <div class="footer">
189
- &copy; Copyright 2009-2011, Brazil, Inc.
224
+ &copy; Copyright 2009-2012, Brazil, Inc.
190
225
  </div>
191
226
  </body>
192
227
  </html>
@@ -9,7 +9,7 @@
9
9
  <head>
10
10
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
11
11
 
12
- <title>7.6.3. geo_in_circle &mdash; groonga v1.2.7ドキュメント</title>
12
+ <title>7.7.3. geo_in_circle &mdash; groonga v1.2.9ドキュメント</title>
13
13
 
14
14
  <link rel="stylesheet" href="../_static/groonga.css" type="text/css" />
15
15
  <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
@@ -17,7 +17,7 @@
17
17
  <script type="text/javascript">
18
18
  var DOCUMENTATION_OPTIONS = {
19
19
  URL_ROOT: '../',
20
- VERSION: '1.2.7',
20
+ VERSION: '1.2.9',
21
21
  COLLAPSE_INDEX: false,
22
22
  FILE_SUFFIX: '.html',
23
23
  HAS_SOURCE: true
@@ -28,10 +28,10 @@
28
28
  <script type="text/javascript" src="../_static/doctools.js"></script>
29
29
  <script type="text/javascript" src="../_static/translations.js"></script>
30
30
  <link rel="shortcut icon" href="../_static/favicon.ico"/>
31
- <link rel="top" title="groonga v1.2.7ドキュメント" href="../index.html" />
32
- <link rel="up" title="7.6. 組み込み関数一覧" href="../functions.html" />
33
- <link rel="next" title="7.6.4. geo_in_rectangle" href="geo_in_rectangle.html" />
34
- <link rel="prev" title="7.6.2. geo_distance" href="geo_distance.html" />
31
+ <link rel="top" title="groonga v1.2.9ドキュメント" href="../index.html" />
32
+ <link rel="up" title="7.7. 組み込み関数一覧" href="../functions.html" />
33
+ <link rel="next" title="7.7.4. geo_in_rectangle" href="geo_in_rectangle.html" />
34
+ <link rel="prev" title="7.7.2. geo_distance" href="geo_distance.html" />
35
35
  </head>
36
36
  <body>
37
37
  <div class="header">
@@ -58,14 +58,14 @@
58
58
  <a href="../genindex.html" title="総合索引"
59
59
  accesskey="I">索引</a></li>
60
60
  <li class="right" >
61
- <a href="geo_in_rectangle.html" title="7.6.4. geo_in_rectangle"
61
+ <a href="geo_in_rectangle.html" title="7.7.4. geo_in_rectangle"
62
62
  accesskey="N">次へ</a> |</li>
63
63
  <li class="right" >
64
- <a href="geo_distance.html" title="7.6.2. geo_distance"
64
+ <a href="geo_distance.html" title="7.7.2. geo_distance"
65
65
  accesskey="P">前へ</a> |</li>
66
- <li><a href="../index.html">groonga v1.2.7ドキュメント</a> &raquo;</li>
66
+ <li><a href="../index.html">groonga v1.2.9ドキュメント</a> &raquo;</li>
67
67
  <li><a href="../reference.html" >7. リファレンスマニュアル</a> &raquo;</li>
68
- <li><a href="../functions.html" accesskey="U">7.6. 組み込み関数一覧</a> &raquo;</li>
68
+ <li><a href="../functions.html" accesskey="U">7.7. 組み込み関数一覧</a> &raquo;</li>
69
69
  </ul>
70
70
  </div>
71
71
 
@@ -75,24 +75,24 @@
75
75
  <div class="body">
76
76
 
77
77
  <div class="section" id="geo-in-circle">
78
- <h1>7.6.3. geo_in_circle<a class="headerlink" href="#geo-in-circle" title="このヘッドラインへのパーマリンク">¶</a></h1>
78
+ <h1>7.7.3. geo_in_circle<a class="headerlink" href="#geo-in-circle" title="このヘッドラインへのパーマリンク">¶</a></h1>
79
79
  <div class="section" id="id1">
80
- <h2>7.6.3.1. 名前<a class="headerlink" href="#id1" title="このヘッドラインへのパーマリンク">¶</a></h2>
80
+ <h2>7.7.3.1. 名前<a class="headerlink" href="#id1" title="このヘッドラインへのパーマリンク">¶</a></h2>
81
81
  <p>geo_in_circle - 座標が円の範囲内に存在するかどうかを調べます。</p>
82
82
  </div>
83
83
  <div class="section" id="id2">
84
- <h2>7.6.3.2. 書式<a class="headerlink" href="#id2" title="このヘッドラインへのパーマリンク">¶</a></h2>
85
- <div class="highlight-none"><div class="highlight"><pre>geo_in_circle(point, center, radious_or_point)
84
+ <h2>7.7.3.2. 書式<a class="headerlink" href="#id2" title="このヘッドラインへのパーマリンク">¶</a></h2>
85
+ <div class="highlight-none"><div class="highlight"><pre>geo_in_circle(point, center, radious_or_point[, approximate_type])
86
86
  </pre></div>
87
87
  </div>
88
88
  </div>
89
89
  <div class="section" id="id3">
90
- <h2>7.6.3.3. 説明<a class="headerlink" href="#id3" title="このヘッドラインへのパーマリンク">¶</a></h2>
90
+ <h2>7.7.3.3. 説明<a class="headerlink" href="#id3" title="このヘッドラインへのパーマリンク">¶</a></h2>
91
91
  <p>groonga組込関数の一つであるgeo_in_circleについて説明します。組込関数は、script形式のgrn_expr中で呼び出すことができます。</p>
92
92
  <p>geo_in_circle() 関数は、pointに指定した座標が、centerに指定した座標を中心とする円の範囲内にあるかどうかを調べます。</p>
93
93
  </div>
94
94
  <div class="section" id="id4">
95
- <h2>7.6.3.4. 引数<a class="headerlink" href="#id4" title="このヘッドラインへのパーマリンク">¶</a></h2>
95
+ <h2>7.7.3.4. 引数<a class="headerlink" href="#id4" title="このヘッドラインへのパーマリンク">¶</a></h2>
96
96
  <p><tt class="docutils literal"><span class="pre">point</span></tt></p>
97
97
  <blockquote>
98
98
  <div>円の範囲内に存在するかどうかを調べる座標を指定します。Point型の値を指定できます。 <a class="footnote-reference" href="#id8" id="id5">[1]</a></div></blockquote>
@@ -103,13 +103,33 @@
103
103
  <blockquote>
104
104
  <div>円の半径を指定します。数値を指定した場合には、半径(単位:メートル)が指定されたものとみなします。
105
105
  Point型の値、あるいは座標を示す文字列を指定した場合は、円周上の点の一つの座標が指定されたものとみなします。</div></blockquote>
106
+ <p><tt class="docutils literal"><span class="pre">approximate_type</span></tt></p>
107
+ <blockquote>
108
+ <div><p>半径からの距離を求めるために地形をどのように近似するかを指定します。指定できる値は以下の通りです。</p>
109
+ <p><tt class="docutils literal"><span class="pre">&quot;rectangle&quot;</span></tt></p>
110
+ <blockquote>
111
+ <div><p>方形近似で近似します。単純な計算式で距離を求めることができるため高速ですが、極付近では誤差が大きくなります。</p>
112
+ <p><tt class="docutils literal"><span class="pre">&quot;rect&quot;</span></tt> と省略して指定することもできます。</p>
113
+ <p>この近似方法がデフォルト値です。 <tt class="docutils literal"><span class="pre">approximate_type</span></tt> を省略した場合は方形近似になります。</p>
114
+ </div></blockquote>
115
+ <p><tt class="docutils literal"><span class="pre">&quot;sphere&quot;</span></tt></p>
116
+ <blockquote>
117
+ <div><p>球面近似で近似します。 <tt class="docutils literal"><span class="pre">&quot;rectangle&quot;</span></tt> よりも遅くなりますが、誤差は小さいです。</p>
118
+ <p><tt class="docutils literal"><span class="pre">&quot;sphr&quot;</span></tt> と省略して指定することもできます。</p>
119
+ </div></blockquote>
120
+ <p><tt class="docutils literal"><span class="pre">&quot;ellipsoid&quot;</span></tt></p>
121
+ <blockquote>
122
+ <div><p>楕円体近似で近似します。距離の計算にはヒュベニの距離計算式を用います。 <tt class="docutils literal"><span class="pre">&quot;sphere&quot;</span></tt> よりも遅くなりますが、誤差は小さくなります。</p>
123
+ <p><tt class="docutils literal"><span class="pre">&quot;ellip&quot;</span></tt> と省略して指定することもできます。</p>
124
+ </div></blockquote>
125
+ </div></blockquote>
106
126
  </div>
107
127
  <div class="section" id="id6">
108
- <h2>7.6.3.5. 返値<a class="headerlink" href="#id6" title="このヘッドラインへのパーマリンク">¶</a></h2>
128
+ <h2>7.7.3.5. 返値<a class="headerlink" href="#id6" title="このヘッドラインへのパーマリンク">¶</a></h2>
109
129
  <p>pointに指定した座標が円の範囲内にあるかどうかをBool型の値で返します。</p>
110
130
  </div>
111
131
  <div class="section" id="id7">
112
- <h2>7.6.3.6. 例<a class="headerlink" href="#id7" title="このヘッドラインへのパーマリンク">¶</a></h2>
132
+ <h2>7.7.3.6. 例<a class="headerlink" href="#id7" title="このヘッドラインへのパーマリンク">¶</a></h2>
113
133
  <div class="highlight-none"><div class="highlight"><pre>geo_in_circle(pos, &quot;100x100&quot;, 100)
114
134
  true
115
135
  </pre></div>
@@ -132,23 +152,23 @@ true
132
152
  <div class="sphinxsidebarwrapper">
133
153
  <h3><a href="../index.html">目次</a></h3>
134
154
  <ul>
135
- <li><a class="reference internal" href="#">7.6.3. geo_in_circle</a><ul>
136
- <li><a class="reference internal" href="#id1">7.6.3.1. 名前</a></li>
137
- <li><a class="reference internal" href="#id2">7.6.3.2. 書式</a></li>
138
- <li><a class="reference internal" href="#id3">7.6.3.3. 説明</a></li>
139
- <li><a class="reference internal" href="#id4">7.6.3.4. 引数</a></li>
140
- <li><a class="reference internal" href="#id6">7.6.3.5. 返値</a></li>
141
- <li><a class="reference internal" href="#id7">7.6.3.6. 例</a></li>
155
+ <li><a class="reference internal" href="#">7.7.3. geo_in_circle</a><ul>
156
+ <li><a class="reference internal" href="#id1">7.7.3.1. 名前</a></li>
157
+ <li><a class="reference internal" href="#id2">7.7.3.2. 書式</a></li>
158
+ <li><a class="reference internal" href="#id3">7.7.3.3. 説明</a></li>
159
+ <li><a class="reference internal" href="#id4">7.7.3.4. 引数</a></li>
160
+ <li><a class="reference internal" href="#id6">7.7.3.5. 返値</a></li>
161
+ <li><a class="reference internal" href="#id7">7.7.3.6. 例</a></li>
142
162
  </ul>
143
163
  </li>
144
164
  </ul>
145
165
 
146
166
  <h4>前のトピックへ</h4>
147
167
  <p class="topless"><a href="geo_distance.html"
148
- title="前の章へ">7.6.2. geo_distance</a></p>
168
+ title="前の章へ">7.7.2. geo_distance</a></p>
149
169
  <h4>次のトピックへ</h4>
150
170
  <p class="topless"><a href="geo_in_rectangle.html"
151
- title="次の章へ">7.6.4. geo_in_rectangle</a></p>
171
+ title="次の章へ">7.7.4. geo_in_rectangle</a></p>
152
172
  <h3>このページ</h3>
153
173
  <ul class="this-page-menu">
154
174
  <li><a href="../_sources/functions/geo_in_circle.txt"
@@ -157,7 +177,7 @@ true
157
177
  <div id="searchbox" style="display: none">
158
178
  <h3>クイック検索</h3>
159
179
  <form class="search" action="../search.html" method="get">
160
- <input type="text" name="q" size="18" />
180
+ <input type="text" name="q" />
161
181
  <input type="submit" value="検索" />
162
182
  <input type="hidden" name="check_keywords" value="yes" />
163
183
  <input type="hidden" name="area" value="default" />
@@ -178,18 +198,18 @@ true
178
198
  <a href="../genindex.html" title="総合索引"
179
199
  >索引</a></li>
180
200
  <li class="right" >
181
- <a href="geo_in_rectangle.html" title="7.6.4. geo_in_rectangle"
201
+ <a href="geo_in_rectangle.html" title="7.7.4. geo_in_rectangle"
182
202
  >次へ</a> |</li>
183
203
  <li class="right" >
184
- <a href="geo_distance.html" title="7.6.2. geo_distance"
204
+ <a href="geo_distance.html" title="7.7.2. geo_distance"
185
205
  >前へ</a> |</li>
186
- <li><a href="../index.html">groonga v1.2.7ドキュメント</a> &raquo;</li>
206
+ <li><a href="../index.html">groonga v1.2.9ドキュメント</a> &raquo;</li>
187
207
  <li><a href="../reference.html" >7. リファレンスマニュアル</a> &raquo;</li>
188
- <li><a href="../functions.html" >7.6. 組み込み関数一覧</a> &raquo;</li>
208
+ <li><a href="../functions.html" >7.7. 組み込み関数一覧</a> &raquo;</li>
189
209
  </ul>
190
210
  </div>
191
211
  <div class="footer">
192
- &copy; Copyright 2009-2011, Brazil, Inc.
212
+ &copy; Copyright 2009-2012, Brazil, Inc.
193
213
  </div>
194
214
  </body>
195
215
  </html>
@@ -9,7 +9,7 @@
9
9
  <head>
10
10
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
11
11
 
12
- <title>7.6.4. geo_in_rectangle &mdash; groonga v1.2.7ドキュメント</title>
12
+ <title>7.7.4. geo_in_rectangle &mdash; groonga v1.2.9ドキュメント</title>
13
13
 
14
14
  <link rel="stylesheet" href="../_static/groonga.css" type="text/css" />
15
15
  <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
@@ -17,7 +17,7 @@
17
17
  <script type="text/javascript">
18
18
  var DOCUMENTATION_OPTIONS = {
19
19
  URL_ROOT: '../',
20
- VERSION: '1.2.7',
20
+ VERSION: '1.2.9',
21
21
  COLLAPSE_INDEX: false,
22
22
  FILE_SUFFIX: '.html',
23
23
  HAS_SOURCE: true
@@ -28,10 +28,10 @@
28
28
  <script type="text/javascript" src="../_static/doctools.js"></script>
29
29
  <script type="text/javascript" src="../_static/translations.js"></script>
30
30
  <link rel="shortcut icon" href="../_static/favicon.ico"/>
31
- <link rel="top" title="groonga v1.2.7ドキュメント" href="../index.html" />
32
- <link rel="up" title="7.6. 組み込み関数一覧" href="../functions.html" />
33
- <link rel="next" title="7.6.5. now" href="now.html" />
34
- <link rel="prev" title="7.6.3. geo_in_circle" href="geo_in_circle.html" />
31
+ <link rel="top" title="groonga v1.2.9ドキュメント" href="../index.html" />
32
+ <link rel="up" title="7.7. 組み込み関数一覧" href="../functions.html" />
33
+ <link rel="next" title="7.7.5. now" href="now.html" />
34
+ <link rel="prev" title="7.7.3. geo_in_circle" href="geo_in_circle.html" />
35
35
  </head>
36
36
  <body>
37
37
  <div class="header">
@@ -58,14 +58,14 @@
58
58
  <a href="../genindex.html" title="総合索引"
59
59
  accesskey="I">索引</a></li>
60
60
  <li class="right" >
61
- <a href="now.html" title="7.6.5. now"
61
+ <a href="now.html" title="7.7.5. now"
62
62
  accesskey="N">次へ</a> |</li>
63
63
  <li class="right" >
64
- <a href="geo_in_circle.html" title="7.6.3. geo_in_circle"
64
+ <a href="geo_in_circle.html" title="7.7.3. geo_in_circle"
65
65
  accesskey="P">前へ</a> |</li>
66
- <li><a href="../index.html">groonga v1.2.7ドキュメント</a> &raquo;</li>
66
+ <li><a href="../index.html">groonga v1.2.9ドキュメント</a> &raquo;</li>
67
67
  <li><a href="../reference.html" >7. リファレンスマニュアル</a> &raquo;</li>
68
- <li><a href="../functions.html" accesskey="U">7.6. 組み込み関数一覧</a> &raquo;</li>
68
+ <li><a href="../functions.html" accesskey="U">7.7. 組み込み関数一覧</a> &raquo;</li>
69
69
  </ul>
70
70
  </div>
71
71
 
@@ -75,24 +75,24 @@
75
75
  <div class="body">
76
76
 
77
77
  <div class="section" id="geo-in-rectangle">
78
- <h1>7.6.4. geo_in_rectangle<a class="headerlink" href="#geo-in-rectangle" title="このヘッドラインへのパーマリンク">¶</a></h1>
78
+ <h1>7.7.4. geo_in_rectangle<a class="headerlink" href="#geo-in-rectangle" title="このヘッドラインへのパーマリンク">¶</a></h1>
79
79
  <div class="section" id="id1">
80
- <h2>7.6.4.1. 名前<a class="headerlink" href="#id1" title="このヘッドラインへのパーマリンク">¶</a></h2>
80
+ <h2>7.7.4.1. 名前<a class="headerlink" href="#id1" title="このヘッドラインへのパーマリンク">¶</a></h2>
81
81
  <p>geo_in_rectangle - 座標が矩形の範囲内に存在するかどうかを調べます。</p>
82
82
  </div>
83
83
  <div class="section" id="id2">
84
- <h2>7.6.4.2. 書式<a class="headerlink" href="#id2" title="このヘッドラインへのパーマリンク">¶</a></h2>
84
+ <h2>7.7.4.2. 書式<a class="headerlink" href="#id2" title="このヘッドラインへのパーマリンク">¶</a></h2>
85
85
  <div class="highlight-none"><div class="highlight"><pre>geo_in_rectangle(point, top_left, bottom_right)
86
86
  </pre></div>
87
87
  </div>
88
88
  </div>
89
89
  <div class="section" id="id3">
90
- <h2>7.6.4.3. 説明<a class="headerlink" href="#id3" title="このヘッドラインへのパーマリンク">¶</a></h2>
90
+ <h2>7.7.4.3. 説明<a class="headerlink" href="#id3" title="このヘッドラインへのパーマリンク">¶</a></h2>
91
91
  <p>groonga組込関数の一つであるgeo_in_rectangleについて説明します。組込関数は、script形式のgrn_expr中で呼び出すことができます。</p>
92
92
  <p>geo_in_rectangle() 関数は、pointに指定した座標が、top_leftとbottom_rightがなす矩形の範囲内にあるかどうかを調べます。</p>
93
93
  </div>
94
94
  <div class="section" id="id4">
95
- <h2>7.6.4.4. 引数<a class="headerlink" href="#id4" title="このヘッドラインへのパーマリンク">¶</a></h2>
95
+ <h2>7.7.4.4. 引数<a class="headerlink" href="#id4" title="このヘッドラインへのパーマリンク">¶</a></h2>
96
96
  <p><tt class="docutils literal"><span class="pre">point</span></tt></p>
97
97
  <blockquote>
98
98
  <div>矩形の範囲内に存在するかどうかを調べる座標を指定します。Point型の値を指定できます。 <a class="footnote-reference" href="#id8" id="id5">[1]</a></div></blockquote>
@@ -104,11 +104,11 @@
104
104
  <div>矩形の右下隅となる座標を指定します。Point型の値、あるいは座標を示す文字列を指定できます。</div></blockquote>
105
105
  </div>
106
106
  <div class="section" id="id6">
107
- <h2>7.6.4.5. 返値<a class="headerlink" href="#id6" title="このヘッドラインへのパーマリンク">¶</a></h2>
107
+ <h2>7.7.4.5. 返値<a class="headerlink" href="#id6" title="このヘッドラインへのパーマリンク">¶</a></h2>
108
108
  <p>pointに指定した座標が矩形の範囲内にあるかどうかをBool型の値で返します。</p>
109
109
  </div>
110
110
  <div class="section" id="id7">
111
- <h2>7.6.4.6. 例<a class="headerlink" href="#id7" title="このヘッドラインへのパーマリンク">¶</a></h2>
111
+ <h2>7.7.4.6. 例<a class="headerlink" href="#id7" title="このヘッドラインへのパーマリンク">¶</a></h2>
112
112
  <div class="highlight-none"><div class="highlight"><pre>geo_in_rectangle(pos, &quot;150x100&quot;, &quot;100x150&quot;)
113
113
  true
114
114
  </pre></div>
@@ -131,23 +131,23 @@ true
131
131
  <div class="sphinxsidebarwrapper">
132
132
  <h3><a href="../index.html">目次</a></h3>
133
133
  <ul>
134
- <li><a class="reference internal" href="#">7.6.4. geo_in_rectangle</a><ul>
135
- <li><a class="reference internal" href="#id1">7.6.4.1. 名前</a></li>
136
- <li><a class="reference internal" href="#id2">7.6.4.2. 書式</a></li>
137
- <li><a class="reference internal" href="#id3">7.6.4.3. 説明</a></li>
138
- <li><a class="reference internal" href="#id4">7.6.4.4. 引数</a></li>
139
- <li><a class="reference internal" href="#id6">7.6.4.5. 返値</a></li>
140
- <li><a class="reference internal" href="#id7">7.6.4.6. 例</a></li>
134
+ <li><a class="reference internal" href="#">7.7.4. geo_in_rectangle</a><ul>
135
+ <li><a class="reference internal" href="#id1">7.7.4.1. 名前</a></li>
136
+ <li><a class="reference internal" href="#id2">7.7.4.2. 書式</a></li>
137
+ <li><a class="reference internal" href="#id3">7.7.4.3. 説明</a></li>
138
+ <li><a class="reference internal" href="#id4">7.7.4.4. 引数</a></li>
139
+ <li><a class="reference internal" href="#id6">7.7.4.5. 返値</a></li>
140
+ <li><a class="reference internal" href="#id7">7.7.4.6. 例</a></li>
141
141
  </ul>
142
142
  </li>
143
143
  </ul>
144
144
 
145
145
  <h4>前のトピックへ</h4>
146
146
  <p class="topless"><a href="geo_in_circle.html"
147
- title="前の章へ">7.6.3. geo_in_circle</a></p>
147
+ title="前の章へ">7.7.3. geo_in_circle</a></p>
148
148
  <h4>次のトピックへ</h4>
149
149
  <p class="topless"><a href="now.html"
150
- title="次の章へ">7.6.5. now</a></p>
150
+ title="次の章へ">7.7.5. now</a></p>
151
151
  <h3>このページ</h3>
152
152
  <ul class="this-page-menu">
153
153
  <li><a href="../_sources/functions/geo_in_rectangle.txt"
@@ -156,7 +156,7 @@ true
156
156
  <div id="searchbox" style="display: none">
157
157
  <h3>クイック検索</h3>
158
158
  <form class="search" action="../search.html" method="get">
159
- <input type="text" name="q" size="18" />
159
+ <input type="text" name="q" />
160
160
  <input type="submit" value="検索" />
161
161
  <input type="hidden" name="check_keywords" value="yes" />
162
162
  <input type="hidden" name="area" value="default" />
@@ -177,18 +177,18 @@ true
177
177
  <a href="../genindex.html" title="総合索引"
178
178
  >索引</a></li>
179
179
  <li class="right" >
180
- <a href="now.html" title="7.6.5. now"
180
+ <a href="now.html" title="7.7.5. now"
181
181
  >次へ</a> |</li>
182
182
  <li class="right" >
183
- <a href="geo_in_circle.html" title="7.6.3. geo_in_circle"
183
+ <a href="geo_in_circle.html" title="7.7.3. geo_in_circle"
184
184
  >前へ</a> |</li>
185
- <li><a href="../index.html">groonga v1.2.7ドキュメント</a> &raquo;</li>
185
+ <li><a href="../index.html">groonga v1.2.9ドキュメント</a> &raquo;</li>
186
186
  <li><a href="../reference.html" >7. リファレンスマニュアル</a> &raquo;</li>
187
- <li><a href="../functions.html" >7.6. 組み込み関数一覧</a> &raquo;</li>
187
+ <li><a href="../functions.html" >7.7. 組み込み関数一覧</a> &raquo;</li>
188
188
  </ul>
189
189
  </div>
190
190
  <div class="footer">
191
- &copy; Copyright 2009-2011, Brazil, Inc.
191
+ &copy; Copyright 2009-2012, Brazil, Inc.
192
192
  </div>
193
193
  </body>
194
194
  </html>