heroku-tokyotyrant 0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (340) hide show
  1. data/COPYING +504 -0
  2. data/README.rdoc +231 -0
  3. data/Rakefile +72 -0
  4. data/benchmarks/balancer.rb +101 -0
  5. data/benchmarks/bulk_db.rb +74 -0
  6. data/benchmarks/bulk_table.rb +87 -0
  7. data/benchmarks/db.rb +114 -0
  8. data/benchmarks/table.rb +161 -0
  9. data/ext/extconf.rb +43 -0
  10. data/ext/tokyo/bin/tcamgr +0 -0
  11. data/ext/tokyo/bin/tcamttest +0 -0
  12. data/ext/tokyo/bin/tcatest +0 -0
  13. data/ext/tokyo/bin/tcbmgr +0 -0
  14. data/ext/tokyo/bin/tcbmttest +0 -0
  15. data/ext/tokyo/bin/tcbtest +0 -0
  16. data/ext/tokyo/bin/tcfmgr +0 -0
  17. data/ext/tokyo/bin/tcfmttest +0 -0
  18. data/ext/tokyo/bin/tcftest +0 -0
  19. data/ext/tokyo/bin/tchmgr +0 -0
  20. data/ext/tokyo/bin/tchmttest +0 -0
  21. data/ext/tokyo/bin/tchtest +0 -0
  22. data/ext/tokyo/bin/tcrmgr +0 -0
  23. data/ext/tokyo/bin/tcrmttest +0 -0
  24. data/ext/tokyo/bin/tcrtest +0 -0
  25. data/ext/tokyo/bin/tctmgr +0 -0
  26. data/ext/tokyo/bin/tctmttest +0 -0
  27. data/ext/tokyo/bin/tcttest +0 -0
  28. data/ext/tokyo/bin/tcucodec +0 -0
  29. data/ext/tokyo/bin/tcumttest +0 -0
  30. data/ext/tokyo/bin/tcutest +0 -0
  31. data/ext/tokyo/bin/ttserver +0 -0
  32. data/ext/tokyo/bin/ttulmgr +0 -0
  33. data/ext/tokyo/bin/ttultest +0 -0
  34. data/ext/tokyo/include/tcadb.h +548 -0
  35. data/ext/tokyo/include/tcbdb.h +1101 -0
  36. data/ext/tokyo/include/tcfdb.h +858 -0
  37. data/ext/tokyo/include/tchdb.h +871 -0
  38. data/ext/tokyo/include/tcrdb.h +801 -0
  39. data/ext/tokyo/include/tctdb.h +1086 -0
  40. data/ext/tokyo/include/tculog.h +392 -0
  41. data/ext/tokyo/include/tcutil.h +4184 -0
  42. data/ext/tokyo/include/ttutil.h +494 -0
  43. data/ext/tokyo/lib/libtokyocabinet.9.4.0.dylib +0 -0
  44. data/ext/tokyo/lib/libtokyocabinet.9.dylib +0 -0
  45. data/ext/tokyo/lib/libtokyocabinet.a +0 -0
  46. data/ext/tokyo/lib/libtokyocabinet.dylib +0 -0
  47. data/ext/tokyo/lib/libtokyotyrant.3.22.0.dylib +0 -0
  48. data/ext/tokyo/lib/libtokyotyrant.3.dylib +0 -0
  49. data/ext/tokyo/lib/libtokyotyrant.a +0 -0
  50. data/ext/tokyo/lib/libtokyotyrant.dylib +0 -0
  51. data/ext/tokyo/lib/pkgconfig/tokyocabinet.pc +14 -0
  52. data/ext/tokyo/lib/pkgconfig/tokyotyrant.pc +14 -0
  53. data/ext/tokyo/lib/ttskeldir.bundle +0 -0
  54. data/ext/tokyo/lib/ttskelmock.bundle +0 -0
  55. data/ext/tokyo/lib/ttskelnull.bundle +0 -0
  56. data/ext/tokyo/lib/ttskelproxy.bundle +0 -0
  57. data/ext/tokyo/libexec/tcawmgr.cgi +0 -0
  58. data/ext/tokyo/sbin/ttservctl +163 -0
  59. data/ext/tokyo/share/man/man1/tcamgr.1 +97 -0
  60. data/ext/tokyo/share/man/man1/tcamttest.1 +35 -0
  61. data/ext/tokyo/share/man/man1/tcatest.1 +55 -0
  62. data/ext/tokyo/share/man/man1/tcbmgr.1 +125 -0
  63. data/ext/tokyo/share/man/man1/tcbmttest.1 +81 -0
  64. data/ext/tokyo/share/man/man1/tcbtest.1 +107 -0
  65. data/ext/tokyo/share/man/man1/tcfmgr.1 +98 -0
  66. data/ext/tokyo/share/man/man1/tcfmttest.1 +62 -0
  67. data/ext/tokyo/share/man/man1/tcftest.1 +73 -0
  68. data/ext/tokyo/share/man/man1/tchmgr.1 +110 -0
  69. data/ext/tokyo/share/man/man1/tchmttest.1 +85 -0
  70. data/ext/tokyo/share/man/man1/tchtest.1 +95 -0
  71. data/ext/tokyo/share/man/man1/tcrmgr.1 +164 -0
  72. data/ext/tokyo/share/man/man1/tcrmttest.1 +55 -0
  73. data/ext/tokyo/share/man/man1/tcrtest.1 +89 -0
  74. data/ext/tokyo/share/man/man1/tctmgr.1 +140 -0
  75. data/ext/tokyo/share/man/man1/tctmttest.1 +92 -0
  76. data/ext/tokyo/share/man/man1/tcttest.1 +105 -0
  77. data/ext/tokyo/share/man/man1/tcucodec.1 +162 -0
  78. data/ext/tokyo/share/man/man1/tcumttest.1 +41 -0
  79. data/ext/tokyo/share/man/man1/tcutest.1 +81 -0
  80. data/ext/tokyo/share/man/man1/ttserver.1 +84 -0
  81. data/ext/tokyo/share/man/man1/ttulmgr.1 +40 -0
  82. data/ext/tokyo/share/man/man1/ttultest.1 +16 -0
  83. data/ext/tokyo/share/man/man3/tcadb.3 +676 -0
  84. data/ext/tokyo/share/man/man3/tcbdb.3 +1355 -0
  85. data/ext/tokyo/share/man/man3/tcfdb.3 +975 -0
  86. data/ext/tokyo/share/man/man3/tchdb.3 +898 -0
  87. data/ext/tokyo/share/man/man3/tclist.3 +1 -0
  88. data/ext/tokyo/share/man/man3/tcmap.3 +1 -0
  89. data/ext/tokyo/share/man/man3/tcmdb.3 +1 -0
  90. data/ext/tokyo/share/man/man3/tcmpool.3 +1 -0
  91. data/ext/tokyo/share/man/man3/tcrdb.3 +1309 -0
  92. data/ext/tokyo/share/man/man3/tctdb.3 +1110 -0
  93. data/ext/tokyo/share/man/man3/tctree.3 +1 -0
  94. data/ext/tokyo/share/man/man3/tculog.3 +15 -0
  95. data/ext/tokyo/share/man/man3/tcutil.3 +4518 -0
  96. data/ext/tokyo/share/man/man3/tcxstr.3 +1 -0
  97. data/ext/tokyo/share/man/man3/tokyocabinet.3 +132 -0
  98. data/ext/tokyo/share/man/man3/ttutil.3 +14 -0
  99. data/ext/tokyo/share/man/man8/ttservctl.8 +37 -0
  100. data/ext/tokyo/share/tokyocabinet/COPYING +504 -0
  101. data/ext/tokyo/share/tokyocabinet/ChangeLog +1252 -0
  102. data/ext/tokyo/share/tokyocabinet/THANKS +12 -0
  103. data/ext/tokyo/share/tokyocabinet/doc/benchmark.pdf +0 -0
  104. data/ext/tokyo/share/tokyocabinet/doc/common.css +211 -0
  105. data/ext/tokyo/share/tokyocabinet/doc/icon16.png +0 -0
  106. data/ext/tokyo/share/tokyocabinet/doc/index.html +156 -0
  107. data/ext/tokyo/share/tokyocabinet/doc/index.ja.html +197 -0
  108. data/ext/tokyo/share/tokyocabinet/doc/logo-ja.png +0 -0
  109. data/ext/tokyo/share/tokyocabinet/doc/logo.png +0 -0
  110. data/ext/tokyo/share/tokyocabinet/doc/spex-en.html +7145 -0
  111. data/ext/tokyo/share/tokyocabinet/doc/spex-ja.html +7476 -0
  112. data/ext/tokyo/share/tokyocabinet/doc/tokyoproducts.pdf +0 -0
  113. data/ext/tokyo/share/tokyocabinet/doc/tokyoproducts.ppt +0 -0
  114. data/ext/tokyo/share/tokyotyrant/COPYING +504 -0
  115. data/ext/tokyo/share/tokyotyrant/ChangeLog +578 -0
  116. data/ext/tokyo/share/tokyotyrant/THANKS +15 -0
  117. data/ext/tokyo/share/tokyotyrant/doc/common.css +211 -0
  118. data/ext/tokyo/share/tokyotyrant/doc/index.html +79 -0
  119. data/ext/tokyo/share/tokyotyrant/doc/spex.html +2264 -0
  120. data/ext/tokyo/share/tokyotyrant/ext/mapreduce.lua +57 -0
  121. data/ext/tokyo/share/tokyotyrant/ext/queue.lua +55 -0
  122. data/ext/tokyo/share/tokyotyrant/ext/senatus.lua +532 -0
  123. data/ext/tokyo/share/tokyotyrant/ext/usherette.lua +438 -0
  124. data/ext/tokyo_tyrant.c +147 -0
  125. data/ext/tokyo_tyrant.h +48 -0
  126. data/ext/tokyo_tyrant_db.c +227 -0
  127. data/ext/tokyo_tyrant_db.h +8 -0
  128. data/ext/tokyo_tyrant_module.c +453 -0
  129. data/ext/tokyo_tyrant_module.h +10 -0
  130. data/ext/tokyo_tyrant_query.c +226 -0
  131. data/ext/tokyo_tyrant_query.h +9 -0
  132. data/ext/tokyo_tyrant_table.c +319 -0
  133. data/ext/tokyo_tyrant_table.h +8 -0
  134. data/ext/tokyocabinet-1.4.41/COPYING +504 -0
  135. data/ext/tokyocabinet-1.4.41/ChangeLog +1252 -0
  136. data/ext/tokyocabinet-1.4.41/Makefile.in +825 -0
  137. data/ext/tokyocabinet-1.4.41/README +38 -0
  138. data/ext/tokyocabinet-1.4.41/THANKS +12 -0
  139. data/ext/tokyocabinet-1.4.41/bros/Makefile +133 -0
  140. data/ext/tokyocabinet-1.4.41/bros/bdbtest.c +438 -0
  141. data/ext/tokyocabinet-1.4.41/bros/cdbtest.c +219 -0
  142. data/ext/tokyocabinet-1.4.41/bros/cmpsqltctest.c +186 -0
  143. data/ext/tokyocabinet-1.4.41/bros/gdbmtest.c +216 -0
  144. data/ext/tokyocabinet-1.4.41/bros/mapreporter +72 -0
  145. data/ext/tokyocabinet-1.4.41/bros/maptest.cc +677 -0
  146. data/ext/tokyocabinet-1.4.41/bros/ndbmtest.c +204 -0
  147. data/ext/tokyocabinet-1.4.41/bros/qdbmtest.c +375 -0
  148. data/ext/tokyocabinet-1.4.41/bros/reporter +141 -0
  149. data/ext/tokyocabinet-1.4.41/bros/result.xls +0 -0
  150. data/ext/tokyocabinet-1.4.41/bros/sdbmtest.c +204 -0
  151. data/ext/tokyocabinet-1.4.41/bros/sqltest.c +404 -0
  152. data/ext/tokyocabinet-1.4.41/bros/tctest.c +748 -0
  153. data/ext/tokyocabinet-1.4.41/bros/tdbtest.c +205 -0
  154. data/ext/tokyocabinet-1.4.41/configure +7402 -0
  155. data/ext/tokyocabinet-1.4.41/configure.in +362 -0
  156. data/ext/tokyocabinet-1.4.41/doc/benchmark.pdf +0 -0
  157. data/ext/tokyocabinet-1.4.41/doc/common.css +211 -0
  158. data/ext/tokyocabinet-1.4.41/doc/icon16.png +0 -0
  159. data/ext/tokyocabinet-1.4.41/doc/index.html +156 -0
  160. data/ext/tokyocabinet-1.4.41/doc/index.ja.html +197 -0
  161. data/ext/tokyocabinet-1.4.41/doc/logo-ja.png +0 -0
  162. data/ext/tokyocabinet-1.4.41/doc/logo.png +0 -0
  163. data/ext/tokyocabinet-1.4.41/doc/spex-en.html +7145 -0
  164. data/ext/tokyocabinet-1.4.41/doc/spex-ja.html +7476 -0
  165. data/ext/tokyocabinet-1.4.41/doc/tokyoproducts.pdf +0 -0
  166. data/ext/tokyocabinet-1.4.41/doc/tokyoproducts.ppt +0 -0
  167. data/ext/tokyocabinet-1.4.41/example/Makefile +113 -0
  168. data/ext/tokyocabinet-1.4.41/example/tcadbex.c +55 -0
  169. data/ext/tokyocabinet-1.4.41/example/tcbdbex.c +64 -0
  170. data/ext/tokyocabinet-1.4.41/example/tcfdbex.c +60 -0
  171. data/ext/tokyocabinet-1.4.41/example/tchdbex.c +60 -0
  172. data/ext/tokyocabinet-1.4.41/example/tctchat.c +97 -0
  173. data/ext/tokyocabinet-1.4.41/example/tctchat.tmpl +141 -0
  174. data/ext/tokyocabinet-1.4.41/example/tctdbex.c +85 -0
  175. data/ext/tokyocabinet-1.4.41/example/tctsearch.c +95 -0
  176. data/ext/tokyocabinet-1.4.41/example/tctsearch.tmpl +122 -0
  177. data/ext/tokyocabinet-1.4.41/example/tcutilex.c +77 -0
  178. data/ext/tokyocabinet-1.4.41/f.tsv +2 -0
  179. data/ext/tokyocabinet-1.4.41/lab/calccomp +118 -0
  180. data/ext/tokyocabinet-1.4.41/lab/datechange +56 -0
  181. data/ext/tokyocabinet-1.4.41/lab/diffcheck +45 -0
  182. data/ext/tokyocabinet-1.4.41/lab/htmltotsv +102 -0
  183. data/ext/tokyocabinet-1.4.41/lab/magic +19 -0
  184. data/ext/tokyocabinet-1.4.41/lab/printenv.cgi +27 -0
  185. data/ext/tokyocabinet-1.4.41/lab/stepcount +26 -0
  186. data/ext/tokyocabinet-1.4.41/lab/stopwatch +61 -0
  187. data/ext/tokyocabinet-1.4.41/lab/tabcheck +43 -0
  188. data/ext/tokyocabinet-1.4.41/lab/wgettsv +239 -0
  189. data/ext/tokyocabinet-1.4.41/lab/widthcheck +57 -0
  190. data/ext/tokyocabinet-1.4.41/man/htmltoman +104 -0
  191. data/ext/tokyocabinet-1.4.41/man/tcadb.3 +676 -0
  192. data/ext/tokyocabinet-1.4.41/man/tcamgr.1 +97 -0
  193. data/ext/tokyocabinet-1.4.41/man/tcamttest.1 +35 -0
  194. data/ext/tokyocabinet-1.4.41/man/tcatest.1 +55 -0
  195. data/ext/tokyocabinet-1.4.41/man/tcbdb.3 +1355 -0
  196. data/ext/tokyocabinet-1.4.41/man/tcbmgr.1 +125 -0
  197. data/ext/tokyocabinet-1.4.41/man/tcbmttest.1 +81 -0
  198. data/ext/tokyocabinet-1.4.41/man/tcbtest.1 +107 -0
  199. data/ext/tokyocabinet-1.4.41/man/tcfdb.3 +975 -0
  200. data/ext/tokyocabinet-1.4.41/man/tcfmgr.1 +98 -0
  201. data/ext/tokyocabinet-1.4.41/man/tcfmttest.1 +62 -0
  202. data/ext/tokyocabinet-1.4.41/man/tcftest.1 +73 -0
  203. data/ext/tokyocabinet-1.4.41/man/tchdb.3 +898 -0
  204. data/ext/tokyocabinet-1.4.41/man/tchmgr.1 +110 -0
  205. data/ext/tokyocabinet-1.4.41/man/tchmttest.1 +85 -0
  206. data/ext/tokyocabinet-1.4.41/man/tchtest.1 +95 -0
  207. data/ext/tokyocabinet-1.4.41/man/tclist.3 +1 -0
  208. data/ext/tokyocabinet-1.4.41/man/tcmap.3 +1 -0
  209. data/ext/tokyocabinet-1.4.41/man/tcmdb.3 +1 -0
  210. data/ext/tokyocabinet-1.4.41/man/tcmpool.3 +1 -0
  211. data/ext/tokyocabinet-1.4.41/man/tctdb.3 +1110 -0
  212. data/ext/tokyocabinet-1.4.41/man/tctmgr.1 +140 -0
  213. data/ext/tokyocabinet-1.4.41/man/tctmttest.1 +92 -0
  214. data/ext/tokyocabinet-1.4.41/man/tctree.3 +1 -0
  215. data/ext/tokyocabinet-1.4.41/man/tcttest.1 +105 -0
  216. data/ext/tokyocabinet-1.4.41/man/tcucodec.1 +162 -0
  217. data/ext/tokyocabinet-1.4.41/man/tcumttest.1 +41 -0
  218. data/ext/tokyocabinet-1.4.41/man/tcutest.1 +81 -0
  219. data/ext/tokyocabinet-1.4.41/man/tcutil.3 +4518 -0
  220. data/ext/tokyocabinet-1.4.41/man/tcxstr.3 +1 -0
  221. data/ext/tokyocabinet-1.4.41/man/tokyocabinet.3 +132 -0
  222. data/ext/tokyocabinet-1.4.41/md5.c +381 -0
  223. data/ext/tokyocabinet-1.4.41/md5.h +101 -0
  224. data/ext/tokyocabinet-1.4.41/myconf.c +493 -0
  225. data/ext/tokyocabinet-1.4.41/myconf.h +549 -0
  226. data/ext/tokyocabinet-1.4.41/tcadb.c +4339 -0
  227. data/ext/tokyocabinet-1.4.41/tcadb.h +548 -0
  228. data/ext/tokyocabinet-1.4.41/tcamgr.c +1019 -0
  229. data/ext/tokyocabinet-1.4.41/tcamttest.c +542 -0
  230. data/ext/tokyocabinet-1.4.41/tcatest.c +1845 -0
  231. data/ext/tokyocabinet-1.4.41/tcawmgr.c +482 -0
  232. data/ext/tokyocabinet-1.4.41/tcbdb.c +4180 -0
  233. data/ext/tokyocabinet-1.4.41/tcbdb.h +1101 -0
  234. data/ext/tokyocabinet-1.4.41/tcbmgr.c +1012 -0
  235. data/ext/tokyocabinet-1.4.41/tcbmttest.c +1810 -0
  236. data/ext/tokyocabinet-1.4.41/tcbtest.c +2586 -0
  237. data/ext/tokyocabinet-1.4.41/tcfdb.c +2746 -0
  238. data/ext/tokyocabinet-1.4.41/tcfdb.h +858 -0
  239. data/ext/tokyocabinet-1.4.41/tcfmgr.c +786 -0
  240. data/ext/tokyocabinet-1.4.41/tcfmttest.c +1220 -0
  241. data/ext/tokyocabinet-1.4.41/tcftest.c +1695 -0
  242. data/ext/tokyocabinet-1.4.41/tchdb.c +5153 -0
  243. data/ext/tokyocabinet-1.4.41/tchdb.h +871 -0
  244. data/ext/tokyocabinet-1.4.41/tchmgr.c +842 -0
  245. data/ext/tokyocabinet-1.4.41/tchmttest.c +1757 -0
  246. data/ext/tokyocabinet-1.4.41/tchtest.c +2129 -0
  247. data/ext/tokyocabinet-1.4.41/tctdb.c +6199 -0
  248. data/ext/tokyocabinet-1.4.41/tctdb.h +1086 -0
  249. data/ext/tokyocabinet-1.4.41/tctmgr.c +1241 -0
  250. data/ext/tokyocabinet-1.4.41/tctmttest.c +1563 -0
  251. data/ext/tokyocabinet-1.4.41/tcttest.c +2062 -0
  252. data/ext/tokyocabinet-1.4.41/tcucodec.c +1357 -0
  253. data/ext/tokyocabinet-1.4.41/tcumttest.c +578 -0
  254. data/ext/tokyocabinet-1.4.41/tcutest.c +1875 -0
  255. data/ext/tokyocabinet-1.4.41/tcutil.c +10528 -0
  256. data/ext/tokyocabinet-1.4.41/tcutil.h +4184 -0
  257. data/ext/tokyocabinet-1.4.41/tokyocabinet.idl +336 -0
  258. data/ext/tokyocabinet-1.4.41/tokyocabinet.pc.in +14 -0
  259. data/ext/tokyotyrant-1.1.39/COPYING +504 -0
  260. data/ext/tokyotyrant-1.1.39/ChangeLog +578 -0
  261. data/ext/tokyotyrant-1.1.39/Makefile.in +365 -0
  262. data/ext/tokyotyrant-1.1.39/README +38 -0
  263. data/ext/tokyotyrant-1.1.39/THANKS +15 -0
  264. data/ext/tokyotyrant-1.1.39/configure +6979 -0
  265. data/ext/tokyotyrant-1.1.39/configure.in +300 -0
  266. data/ext/tokyotyrant-1.1.39/doc/common.css +211 -0
  267. data/ext/tokyotyrant-1.1.39/doc/index.html +79 -0
  268. data/ext/tokyotyrant-1.1.39/doc/spex.html +2264 -0
  269. data/ext/tokyotyrant-1.1.39/example/Makefile +68 -0
  270. data/ext/tokyotyrant-1.1.39/example/httptest.pl +88 -0
  271. data/ext/tokyotyrant-1.1.39/example/mcftest.pl +39 -0
  272. data/ext/tokyotyrant-1.1.39/example/mctest.pl +43 -0
  273. data/ext/tokyotyrant-1.1.39/example/tcrdbex +0 -0
  274. data/ext/tokyotyrant-1.1.39/example/tcrdbex.c +49 -0
  275. data/ext/tokyotyrant-1.1.39/example/tcrdbex.o +0 -0
  276. data/ext/tokyotyrant-1.1.39/example/tcrdbtblex +0 -0
  277. data/ext/tokyotyrant-1.1.39/example/tcrdbtblex.c +79 -0
  278. data/ext/tokyotyrant-1.1.39/example/tcrdbtblex.o +0 -0
  279. data/ext/tokyotyrant-1.1.39/ext/mapreduce.lua +57 -0
  280. data/ext/tokyotyrant-1.1.39/ext/queue.lua +55 -0
  281. data/ext/tokyotyrant-1.1.39/ext/senatus.lua +532 -0
  282. data/ext/tokyotyrant-1.1.39/ext/usherette.lua +438 -0
  283. data/ext/tokyotyrant-1.1.39/lab/datechange +56 -0
  284. data/ext/tokyotyrant-1.1.39/lab/diffcheck +45 -0
  285. data/ext/tokyotyrant-1.1.39/lab/fibonacci.lua +20 -0
  286. data/ext/tokyotyrant-1.1.39/lab/footprint.lua +67 -0
  287. data/ext/tokyotyrant-1.1.39/lab/highlow.lua +88 -0
  288. data/ext/tokyotyrant-1.1.39/lab/killdualmaster +12 -0
  289. data/ext/tokyotyrant-1.1.39/lab/rundualmaster +38 -0
  290. data/ext/tokyotyrant-1.1.39/lab/stepcount +26 -0
  291. data/ext/tokyotyrant-1.1.39/lab/tabcheck +43 -0
  292. data/ext/tokyotyrant-1.1.39/lab/ushrtregister.pl +55 -0
  293. data/ext/tokyotyrant-1.1.39/lab/widthcheck +57 -0
  294. data/ext/tokyotyrant-1.1.39/man/htmltoman +100 -0
  295. data/ext/tokyotyrant-1.1.39/man/tcrdb.3 +1309 -0
  296. data/ext/tokyotyrant-1.1.39/man/tcrmgr.1 +164 -0
  297. data/ext/tokyotyrant-1.1.39/man/tcrmttest.1 +55 -0
  298. data/ext/tokyotyrant-1.1.39/man/tcrtest.1 +89 -0
  299. data/ext/tokyotyrant-1.1.39/man/tculog.3 +15 -0
  300. data/ext/tokyotyrant-1.1.39/man/ttservctl.8 +37 -0
  301. data/ext/tokyotyrant-1.1.39/man/ttserver.1 +84 -0
  302. data/ext/tokyotyrant-1.1.39/man/ttulmgr.1 +40 -0
  303. data/ext/tokyotyrant-1.1.39/man/ttultest.1 +16 -0
  304. data/ext/tokyotyrant-1.1.39/man/ttutil.3 +14 -0
  305. data/ext/tokyotyrant-1.1.39/myconf.c +169 -0
  306. data/ext/tokyotyrant-1.1.39/myconf.h +408 -0
  307. data/ext/tokyotyrant-1.1.39/scrext.c +2394 -0
  308. data/ext/tokyotyrant-1.1.39/scrext.h +96 -0
  309. data/ext/tokyotyrant-1.1.39/tcrdb.c +2637 -0
  310. data/ext/tokyotyrant-1.1.39/tcrdb.h +801 -0
  311. data/ext/tokyotyrant-1.1.39/tcrmgr.c +1559 -0
  312. data/ext/tokyotyrant-1.1.39/tcrmttest.c +915 -0
  313. data/ext/tokyotyrant-1.1.39/tcrtest.c +1542 -0
  314. data/ext/tokyotyrant-1.1.39/tculog.c +1211 -0
  315. data/ext/tokyotyrant-1.1.39/tculog.h +392 -0
  316. data/ext/tokyotyrant-1.1.39/tokyotyrant.idl +143 -0
  317. data/ext/tokyotyrant-1.1.39/tokyotyrant.pc.in +14 -0
  318. data/ext/tokyotyrant-1.1.39/ttservctl +163 -0
  319. data/ext/tokyotyrant-1.1.39/ttserver.c +3583 -0
  320. data/ext/tokyotyrant-1.1.39/ttskeldir.c +141 -0
  321. data/ext/tokyotyrant-1.1.39/ttskelmock.c +64 -0
  322. data/ext/tokyotyrant-1.1.39/ttskelnull.c +79 -0
  323. data/ext/tokyotyrant-1.1.39/ttskelproxy.c +74 -0
  324. data/ext/tokyotyrant-1.1.39/ttulmgr.c +266 -0
  325. data/ext/tokyotyrant-1.1.39/ttultest.c +371 -0
  326. data/ext/tokyotyrant-1.1.39/ttutil.c +1510 -0
  327. data/ext/tokyotyrant-1.1.39/ttutil.h +494 -0
  328. data/lib/tokyo_tyrant/balancer.rb +189 -0
  329. data/spec/ext.lua +4 -0
  330. data/spec/plu_db.rb +538 -0
  331. data/spec/spec.rb +1 -0
  332. data/spec/spec_base.rb +17 -0
  333. data/spec/start_tyrants.sh +36 -0
  334. data/spec/stop_tyrants.sh +9 -0
  335. data/spec/tokyo_tyrant_balancer_db_spec.rb +160 -0
  336. data/spec/tokyo_tyrant_balancer_table_spec.rb +177 -0
  337. data/spec/tokyo_tyrant_query_spec.rb +159 -0
  338. data/spec/tokyo_tyrant_spec.rb +254 -0
  339. data/spec/tokyo_tyrant_table_spec.rb +301 -0
  340. metadata +402 -0
@@ -0,0 +1,12 @@
1
+ ================================================================
2
+ Thanks to all of the following for their valuable suggestions
3
+ or contributions.
4
+ ================================================================
5
+
6
+
7
+ mixi Inc. and its developers
8
+ - allowing me to develop and publish Tokyo Cabinet as business work
9
+
10
+
11
+
12
+ == END OF FILE ==
@@ -0,0 +1,211 @@
1
+ /*
2
+ * Style Sheets commonly used by documents of Tokyo Cabinet
3
+ */
4
+
5
+ html {
6
+ margin: 0em 0em;
7
+ padding: 0em 0em;
8
+ background: #eeeeee none;
9
+ }
10
+ body {
11
+ margin: 1em 2em;
12
+ padding: 0em 0em;
13
+ background: #eeeeee none;
14
+ color: #111111;
15
+ }
16
+
17
+ hr {
18
+ margin: 2.5em 0em 1.5em 0em;
19
+ height: 1px;
20
+ border: none;
21
+ background: #999999 none;
22
+ color: #999999;
23
+ }
24
+
25
+ h1,h2,h3,h4,h5,h6 {
26
+ font-weight: bold;
27
+ }
28
+ h1 {
29
+ margin: 1.0em 0em 1.3em 0em;
30
+ padding: 0em 0em;
31
+ font-size: 180%;
32
+ color: #000000;
33
+ }
34
+ h2 {
35
+ margin: 1.0em 0em 1.0em 0.2em;
36
+ padding: 0.5em 0.5em;
37
+ width: 60%;
38
+ border-left: solid 0.6em #445555;
39
+ border-bottom: solid 1px #bbbbbb;
40
+ font-size: 150%;
41
+ color: #000011;
42
+ }
43
+ h3 {
44
+ margin: 0.8em 0em 0.5em 0.2em;
45
+ padding: 0em 0em;
46
+ font-size: 120%;
47
+ color: #001111;
48
+ }
49
+
50
+ p {
51
+ margin: 0.8em 0em;
52
+ line-height: 140%;
53
+ text-indent: 0.8em;
54
+ }
55
+
56
+ div,pre,table {
57
+ margin: 0.8em 1.5em;
58
+ }
59
+
60
+ div.note,div.navi {
61
+ text-align: right;
62
+ margin: 0em 0.5em;
63
+ color: #333333;
64
+ }
65
+ span.void {
66
+ color: #888888;
67
+ }
68
+
69
+ div.logo {
70
+ text-align: center;
71
+ margin: 3em 0em;
72
+ }
73
+ div.logo img {
74
+ border: inset 2px #ccccdd;
75
+ }
76
+ div.illust {
77
+ margin: 1em 0em;
78
+ text-align: center;
79
+ }
80
+ div.illust img {
81
+ border: solid 1px #ccccdd;
82
+ }
83
+
84
+ pre {
85
+ padding: 0.2em;
86
+ background-color: #ddddee;
87
+ border: 1px solid #bbbbcc;
88
+ font-size: 95%;
89
+ }
90
+
91
+ li,dt,dd {
92
+ line-height: 130%;
93
+ }
94
+ dt {
95
+ margin-left: 1.2em;
96
+ }
97
+ dd {
98
+ margin-left: 2.5em;
99
+ text-indent: -0.3em;
100
+ }
101
+ dl.api {
102
+ margin-top: -0.2em;
103
+ }
104
+ dl.api dd {
105
+ margin-left: 3.0em;
106
+ font-size: 95%;
107
+ color: #333333;
108
+ }
109
+ ul {
110
+ margin: 0.5em 2.0em;
111
+ padding: 0em;
112
+ }
113
+ ul.options {
114
+ list-style-type: none;
115
+ margin: 0.5em 1.5em;
116
+ font-size: 95%;
117
+ color: #333333;
118
+ }
119
+ ul ul {
120
+ margin-top: 0em;
121
+ margin-bottom: 0em;
122
+ }
123
+
124
+ table {
125
+ border-collapse: collapse;
126
+ }
127
+ td {
128
+ text-align: left;
129
+ vertical-align: top;
130
+ padding: 0.1em 0.5em;
131
+ border: solid 1px #aaaabb;
132
+ font-size: 95%;
133
+ }
134
+ td.label {
135
+ border: none;
136
+ font-size: 80%;
137
+ color: #333333;
138
+ }
139
+ td.number {
140
+ text-align: right;
141
+ }
142
+
143
+ a {
144
+ color: #0022aa;
145
+ text-decoration: none;
146
+ }
147
+ a:hover,a:focus {
148
+ color: #0033ee;
149
+ text-decoration: underline;
150
+ }
151
+ code,kbd {
152
+ font-style: normal;
153
+ font-weight: bold;
154
+ font-size: 100%;
155
+ color: #001111;
156
+ }
157
+ var {
158
+ padding: 0em 0.15em 0em 0em;
159
+ font-style: italic;
160
+ color: #001122;
161
+ }
162
+
163
+ @media print {
164
+ html,body {
165
+ margin: 0em 0em;
166
+ background-color: #ffffff;
167
+ color: #000000;
168
+ }
169
+ h1 {
170
+ padding: 8em 0em 0.5em 0em;
171
+ text-align: center;
172
+ }
173
+ h2 {
174
+ page-break-before: always;
175
+ }
176
+ div.note {
177
+ text-align: center;
178
+ }
179
+ div.navi,div.logo {
180
+ display: none;
181
+ }
182
+ hr {
183
+ display: none;
184
+ }
185
+ pre {
186
+ margin: 0.8em 0.8em;
187
+ background-color: #ffffff;
188
+ border: 1px solid #aaaaaa;
189
+ font-size: 90%;
190
+ }
191
+ a,code,kbd {
192
+ color: #000000;
193
+ text-decoration: none;
194
+ }
195
+ h1,h2,h3 {
196
+ font-family: sans-serif;
197
+ }
198
+ p,div,li,dt,dd {
199
+ font-family: serif;
200
+ }
201
+ pre,code,kbd {
202
+ font-family: monospace;
203
+ }
204
+ dd {
205
+ font-size: 90%;
206
+ }
207
+ }
208
+
209
+
210
+
211
+ /* END OF FILE */
@@ -0,0 +1,156 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+
3
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+
5
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
+
7
+ <head>
8
+ <meta http-equiv="Content-Language" content="en" />
9
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
10
+ <meta http-equiv="Content-Style-Type" content="text/css" />
11
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
12
+ <meta name="author" content="Mikio Hirabayashi" />
13
+ <meta name="keywords" content="Tokyo Cabinet, tokyocabinet, database, DBM" />
14
+ <meta name="description" content="homepage of Tokyo Cabinet" />
15
+ <link rel="contents" href="./" />
16
+ <link rel="alternate" href="index.ja.html" hreflang="ja" title="the Japanese version" />
17
+ <link rel="stylesheet" href="common.css" />
18
+ <link rel="icon" href="icon16.png" />
19
+ <link rev="made" href="mailto:hirarin@gmail.com" />
20
+ <title>Tokyo Cabinet: a modern implementation of DBM</title>
21
+ <script type="text/javascript">function startup(){
22
+ var elem = document.getElementById("headline");
23
+ if(elem){
24
+ var now = new Date();
25
+ if((now.getFullYear() + now.getMonth() + now.getDate() + now.getHours()) % 4 == 0){
26
+ var label;
27
+ switch((now.getMonth() + now.getDay() + now.getHours() + now.getMinutes()) % 24){
28
+ default: label = "Tokyo Cabinet"; break;
29
+ case 1: label = "Shibuya Cabinet"; break;
30
+ case 2: label = "Harajuku Cabinet"; break;
31
+ case 4: label = "Aoyama Cabinet"; break;
32
+ case 5: label = "Gakudai Cabinet"; break;
33
+ case 7: label = "Shinjuku Cabinet"; break;
34
+ case 8: label = "Ikebukuro Cabinet"; break;
35
+ case 10: label = "Akihabara Cabinet"; break;
36
+ case 11: label = "Ueno Cabinet"; break;
37
+ case 13: label = "Sugamo Cabinet"; break;
38
+ case 14: label = "Akasaka Cabinet"; break;
39
+ case 16: label = "Roppongi Cabinet"; break;
40
+ case 17: label = "Yokohama Cabinet"; break;
41
+ case 19: label = "Saitama Cabinet"; break;
42
+ case 20: label = "Tokorozawa Cabinet"; break;
43
+ case 22: label = "Kyoto Cabinet"; break;
44
+ case 23: label = "Nagoya Cabinet"; break;
45
+ }
46
+ var text;
47
+ switch((now.getMonth() + now.getDate() + now.getMinutes()) % 12){
48
+ default: text = "super hyper ultra database manager"; break;
49
+ case 1: text = "much quicker database manager"; break;
50
+ case 3: text = "the ultimate database manager"; break;
51
+ case 5: text = "the supreme database manager"; break;
52
+ case 7: text = "the lightning database manager"; break;
53
+ case 9: text = "the mighty unbeatable invincible database manager"; break;
54
+ case 11: text = "the dinosaur wing of database managers"; break;
55
+ }
56
+ elem.firstChild.nodeValue = label + ": " + text;
57
+ }
58
+ }
59
+ }
60
+ </script>
61
+ </head>
62
+
63
+ <body onload="startup();">
64
+
65
+ <h1 id="headline">Tokyo Cabinet: a modern implementation of DBM</h1>
66
+
67
+ <div class="note">Copyright (C) 2006-2009 Mikio Hirabayashi</div>
68
+ <div class="note">Last Update: Tue, 13 Oct 2009 22:15:53 +0900</div>
69
+ <div class="navi">[<span class="void">English</span>/<a href="index.ja.html" hreflang="ja">Japanese</a>]</div>
70
+
71
+ <div class="logo"><img src="logo.png" id="logo" alt="Tokyo Cabinet" width="300" height="110" /></div>
72
+
73
+ <hr />
74
+
75
+ <h2 id="overview">Overview</h2>
76
+
77
+ <p>Tokyo Cabinet is a library of routines for managing a database. The database is a simple data file containing records, each is a pair of a key and a value. Every key and value is serial bytes with variable length. Both binary data and character string can be used as a key and a value. There is neither concept of data tables nor data types. Records are organized in hash table, B+ tree, or fixed-length array.</p>
78
+
79
+ <p>Tokyo Cabinet is developed as the successor of GDBM and QDBM on the following purposes. They are achieved and Tokyo Cabinet replaces conventional DBM products.</p>
80
+
81
+ <ul>
82
+ <li>improves space efficiency : smaller size of database file.</li>
83
+ <li>improves time efficiency : faster processing speed.</li>
84
+ <li>improves parallelism : higher performance in multi-thread environment.</li>
85
+ <li>improves usability : simplified API.</li>
86
+ <li>improves robustness : database file is not corrupted even under catastrophic situation.</li>
87
+ <li>supports 64-bit architecture : enormous memory space and database file are available.</li>
88
+ </ul>
89
+
90
+ <p>Tokyo Cabinet is written in the C language, and provided as API of C, Perl, Ruby, Java, and Lua. Tokyo Cabinet is available on platforms which have API conforming to C99 and POSIX. Tokyo Cabinet is a free software licensed under the GNU Lesser General Public License.</p>
91
+
92
+ <hr />
93
+
94
+ <h2 id="documents">Documents</h2>
95
+
96
+ <p>The following are documents of Tokyo Cabinet. They are contained also in the source package.</p>
97
+
98
+ <ul>
99
+ <li><a href="spex-en.html">Fundamental Specifications</a></li>
100
+ </ul>
101
+
102
+ <ul>
103
+ <li><a href="perldoc/">Specifications of Perl API</a></li>
104
+ <li><a href="rubydoc/">Specifications of Ruby API</a></li>
105
+ <li><a href="javadoc/">Specifications of Java API</a></li>
106
+ <li><a href="luadoc/">Specifications of Lua API</a></li>
107
+ </ul>
108
+
109
+ <ul>
110
+ <li><a href="tokyoproducts.pdf">Presentation</a></li>
111
+ <li><a href="benchmark.pdf">Report of a Benchmark Test</a></li>
112
+ </ul>
113
+
114
+ <hr />
115
+
116
+ <h2 id="packages">Packages</h2>
117
+
118
+ <p>The following are the source packages of Tokyo Cabinet. As for binary packages, see the site of each distributor.</p>
119
+
120
+ <ul>
121
+ <li><a href="tokyocabinet-1.4.41.tar.gz">Latest Source Package (version 1.4.41)</a></li>
122
+ <li><a href="pastpkg/">Past Versions</a></li>
123
+ </ul>
124
+
125
+ <ul>
126
+ <li><a href="perlpkg/">API for Perl</a></li>
127
+ <li><a href="rubypkg/">API for Ruby</a></li>
128
+ <li><a href="javapkg/">API for Java</a></li>
129
+ <li><a href="luapkg/">API for Lua</a></li>
130
+ </ul>
131
+
132
+ <ul>
133
+ <li><a href="misc/">Related Packages</a></li>
134
+ </ul>
135
+
136
+ <hr />
137
+
138
+ <h2 id="information">Information</h2>
139
+
140
+ <p>Tokyo Cabinet was written and is maintained by <a href="http://1978th.net/">Mikio Hirabayashi</a>. You can contact the author by e-mail to `hirarin@gmail.com'.</p>
141
+
142
+ <p>The following are sibling projects of Tokyo Cabinet.</p>
143
+
144
+ <ul>
145
+ <li><a href="http://1978th.net/tokyotyrant/">Remote Service (Tokyo Tyrant)</a></li>
146
+ <li><a href="http://1978th.net/tokyodystopia/">Full-text Search System (Tokyo Dystopia)</a></li>
147
+ <li><a href="http://1978th.net/tokyopromenade/">Content Management System (Tokyo Promenade)</a></li>
148
+ </ul>
149
+
150
+ <hr />
151
+
152
+ </body>
153
+
154
+ </html>
155
+
156
+ <!-- END OF FILE -->
@@ -0,0 +1,197 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+
3
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+
5
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
6
+
7
+ <head>
8
+ <meta http-equiv="Content-Language" content="ja" />
9
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
10
+ <meta http-equiv="Content-Style-Type" content="text/css" />
11
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
12
+ <meta name="author" content="Mikio Hirabayashi" />
13
+ <meta name="keywords" content="Tokyo Cabinet, tokyocabinet, database, DBM" />
14
+ <meta name="description" content="homepage of Tokyo Cabinet" />
15
+ <link rel="contents" href="./" />
16
+ <link rel="alternate" href="index.html" hreflang="en" title="the English version" />
17
+ <link rel="stylesheet" href="common.css" />
18
+ <link rel="icon" href="icon16.png" />
19
+ <link rev="made" href="mailto:hirarin@gmail.com" />
20
+ <title>データベースマネージャ Tokyo Cabinet</title>
21
+ <script type="text/javascript">function startup(){
22
+ var elem = document.getElementById("headline");
23
+ if(elem){
24
+ var now = new Date();
25
+ if((now.getFullYear() + now.getMonth() + now.getDate() + now.getHours()) % 4 == 0){
26
+ var label;
27
+ switch((now.getMonth() + now.getDay() + now.getHours() + now.getMinutes()) % 24){
28
+ default: label = "東京収納棚"; break;
29
+ case 1: label = "Shibuya Cabinet"; break;
30
+ case 2: label = "Harajuku Cabinet"; break;
31
+ case 4: label = "Aoyama Cabinet"; break;
32
+ case 5: label = "Gakudai Cabinet"; break;
33
+ case 7: label = "Shinjuku Cabinet"; break;
34
+ case 8: label = "Ikebukuro Cabinet"; break;
35
+ case 10: label = "Akihabara Cabinet"; break;
36
+ case 11: label = "Ueno Cabinet"; break;
37
+ case 13: label = "Sugamo Cabinet"; break;
38
+ case 14: label = "Akasaka Cabinet"; break;
39
+ case 16: label = "Roppongi Cabinet"; break;
40
+ case 17: label = "Yokohama Cabinet"; break;
41
+ case 19: label = "Saitama Cabinet"; break;
42
+ case 20: label = "Tokorozawa Cabinet"; break;
43
+ case 22: label = "Kyoto Cabinet"; break;
44
+ case 23: label = "Nagoya Cabinet"; break;
45
+ }
46
+ var text;
47
+ switch((now.getMonth() + now.getDate() + now.getMinutes()) % 48){
48
+ default:
49
+ text = "世界最強絶対無敵電光石火疾風迅雷資料基盤管理器";
50
+ switch(now.getSeconds()){
51
+ case 0:
52
+ label = "東京ラブストーリー";
53
+ text = "東京では誰もがラブストーリーの主人公になる";
54
+ break;
55
+ case 20:
56
+ label = "東京タワー";
57
+ text = "〜オカンとボクと、時々、オトン〜";
58
+ break;
59
+ case 40:
60
+ label = "東京青春朝焼物語";
61
+ text = "今日から俺、東京の人になる";
62
+ break;
63
+ }
64
+ break;
65
+ case 1: text = "NDBMとは違うのだよ、NDBMとは!"; break;
66
+ case 2: text = "Tokyo Cabinetは伊達じゃないっ!"; break;
67
+ case 3: text = "こいつ…動くぞ…?"; break;
68
+ case 5: text = "敢えて言おう、高速であると!"; break;
69
+ case 6: text = "しかし、私もDBMのはずだ!"; break;
70
+ case 7: text = "SQLで世界を変えれるって…おかしいんだよ!! "; break;
71
+ case 9: text = "今の私はTokyo Cabinetだ。それ以上でもそれ以下でもない。"; break;
72
+ case 10: text = "私はBerkeleyとは関係ない。私はいつも一人のDBMだった。"; break;
73
+ case 11: text = "逆立ちしたってDBMはRDBにはなれないからな。"; break;
74
+ case 13: text = "見せてもらおうか!Berkeleyのデータベースの性能とやらを!"; break;
75
+ case 14: text = "悲しいけどこれ、DBMなのよね。"; break;
76
+ case 15: text = "そのDBMの性能で勝ったということを忘れるな!!"; break;
77
+ case 17: text = "新しい時代を創るのはSQLではない!!"; break;
78
+ case 18: text = "えぇぃ、マイナーチェンジのくせにっ!"; break;
79
+ case 19: text = "あんなの飾りです!偉い人にはそれが分からんのですよ!"; break;
80
+ case 21: text = "よくもこんなくたびれたDBMが現役でいられるものだ。"; break;
81
+ case 22: text = "見える!私にもレコードが見える!"; break;
82
+ case 23: text = "私の愛馬は凶暴です。"; break;
83
+ case 25: text = "そんなRDBみたいな口の利き方、おやめなさい!"; break;
84
+ case 26: text = "悪い人だ。GDBMをいじめる悪い人だ。"; break;
85
+ case 27: text = "作戦は一刻を争う!"; break;
86
+ case 29: text = "僕が一番トランザクションをうまく使えるんだ。"; break;
87
+ case 30: text = "実は容量が足らんのです。"; break;
88
+ case 31: text = "おれはDBMだ!DBMでたくさんだっ! "; break;
89
+ case 33: text = "遊びでやってるんじゃないんだよっ!!"; break;
90
+ case 34: text = "あれはいいものだ!"; break;
91
+ case 35: text = "人は時間さえも支配できる…。"; break;
92
+ case 37: text = "この風!この肌触りこそDBMよ! "; break;
93
+ case 38: text = "さすがハッシュだ、なんともないぜ。"; break;
94
+ case 39: text = "プロセッサの性能差が戦力の決定的な差でないことを見せてやる!"; break;
95
+ case 41: text = "君は、生き延びる事ができるか…? "; break;
96
+ }
97
+ elem.firstChild.nodeValue = label + ": " + text;
98
+ }
99
+ }
100
+ }
101
+ </script>
102
+ </head>
103
+
104
+ <body onload="startup();">
105
+
106
+ <h1 id="headline">Tokyo Cabinet: DBMの現代的な壱実装</h1>
107
+
108
+ <div class="note">Copyright (C) 2006-2009 Mikio Hirabayashi</div>
109
+ <div class="note">Last Update: Tue, 13 Oct 2009 22:15:53 +0900</div>
110
+ <div class="navi">[<a href="index.html" hreflang="en">English</a>/<span class="void">Japanese</span>]</div>
111
+
112
+ <div class="logo"><img src="logo-ja.png" id="logo" alt="Tokyo Cabinet" width="300" height="110" /></div>
113
+
114
+ <hr />
115
+
116
+ <h2 id="overview">概要</h2>
117
+
118
+ <p>Tokyo Cabinetはデータベースを扱うルーチン群のライブラリです。データベースといっても単純なもので、キーと値のペアからなるレコード群を格納したデータファイルです。キーと値は任意の長さを持つ一連のバイト列であり、文字列でもバイナリでも扱うことができます。テーブルやデータ型の概念はありません。レコードはハッシュ表かB+木か固定長配列で編成されます。</p>
119
+
120
+ <p>Tokyo CabinetはGDBMやQDBMの後継として次の点を目標として開発されました。これらの目標は達成されており、Tokyo Cabinetは従来のDBMを置き換える製品だと言えます。</p>
121
+
122
+ <ul>
123
+ <li>空間効率の向上 : データベースファイルがより小さい</li>
124
+ <li>時間効率の向上 : 処理がより高速である</li>
125
+ <li>並列性の向上 : マルチスレッド環境での同時実行性能の向上</li>
126
+ <li>利便性の向上 : APIがより単純である</li>
127
+ <li>堅牢性の向上 : 不慮の事態でもデータベースファイルが壊れにくい</li>
128
+ <li>64ビット対応 : 巨大なメモリ空間とデータベースファイルを扱える</li>
129
+ </ul>
130
+
131
+ <p>Tokyo CabinetはC言語で記述され、CとPerlとRubyとJavaとLuaのAPIとして提供されます。Tokyo CabinetはC99およびPOSIX準拠のAPIを備えるプラットフォームで利用できます。Tokyo CabinetはGNU Lesser General Public Licenseに基づくフリーソフトウェアです。</p>
132
+
133
+ <hr />
134
+
135
+ <h2 id="documents">文書</h2>
136
+
137
+ <p>以下の文書を読んでください。ソースパッケージにも同じものが含まれています。</p>
138
+
139
+ <ul>
140
+ <li><a href="spex-ja.html">基本仕様書</a></li>
141
+ </ul>
142
+
143
+ <ul>
144
+ <li><a href="perldoc/">Perl用API仕様書</a></li>
145
+ <li><a href="rubydoc/">Ruby用API仕様書</a></li>
146
+ <li><a href="javadoc/">Java用API仕様書</a></li>
147
+ <li><a href="luadoc/">Lua用API仕様書</a></li>
148
+ </ul>
149
+
150
+ <ul>
151
+ <li><a href="tokyoproducts.pdf">プレゼンテーション</a></li>
152
+ <li><a href="benchmark.pdf">ベンチマークテストのレポート</a></li>
153
+ </ul>
154
+
155
+ <hr />
156
+
157
+ <h2 id="packages">ダウンロード</h2>
158
+
159
+ <p>以下のソースパッケージをダウンロードしてください。バイナリパッケージについては、各ディストリビュータのサイトをご覧ください。</p>
160
+
161
+ <ul>
162
+ <li><a href="tokyocabinet-1.4.41.tar.gz">最新のソースパッケージ(バージョン1.4.41)</a></li>
163
+ <li><a href="pastpkg/">過去のバージョン</a></li>
164
+ </ul>
165
+
166
+ <ul>
167
+ <li><a href="perlpkg/">Perl用API</a></li>
168
+ <li><a href="rubypkg/">Ruby用API</a></li>
169
+ <li><a href="javapkg/">Java用API</a></li>
170
+ <li><a href="luapkg/">Lua用API</a></li>
171
+ </ul>
172
+
173
+ <ul>
174
+ <li><a href="misc/">関連するパッケージ</a></li>
175
+ </ul>
176
+
177
+ <hr />
178
+
179
+ <h2 id="information">その他の情報</h2>
180
+
181
+ <p>Tokyo Cabinetは<a href="http://1978th.net/">平林幹雄</a>が作成しました。作者と連絡をとるには、`hirarin@gmail.com' 宛に電子メールを送ってください。</p>
182
+
183
+ <p>Tokyo Cabinetの兄弟プロジェクトもあります。</p>
184
+
185
+ <ul>
186
+ <li><a href="http://1978th.net/tokyotyrant/">リモートサービス(Tokyo Tyrant)</a></li>
187
+ <li><a href="http://1978th.net/tokyodystopia/">全文検索システム(Tokyo Dystopia)</a></li>
188
+ <li><a href="http://1978th.net/tokyopromenade/">コンテンツ管理システム(Tokyo Promenade)</a></li>
189
+ </ul>
190
+
191
+ <hr />
192
+
193
+ </body>
194
+
195
+ </html>
196
+
197
+ <!-- END OF FILE -->