heroku-tokyotyrant 0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/COPYING +504 -0
- data/README.rdoc +231 -0
- data/Rakefile +72 -0
- data/benchmarks/balancer.rb +101 -0
- data/benchmarks/bulk_db.rb +74 -0
- data/benchmarks/bulk_table.rb +87 -0
- data/benchmarks/db.rb +114 -0
- data/benchmarks/table.rb +161 -0
- data/ext/extconf.rb +43 -0
- data/ext/tokyo/bin/tcamgr +0 -0
- data/ext/tokyo/bin/tcamttest +0 -0
- data/ext/tokyo/bin/tcatest +0 -0
- data/ext/tokyo/bin/tcbmgr +0 -0
- data/ext/tokyo/bin/tcbmttest +0 -0
- data/ext/tokyo/bin/tcbtest +0 -0
- data/ext/tokyo/bin/tcfmgr +0 -0
- data/ext/tokyo/bin/tcfmttest +0 -0
- data/ext/tokyo/bin/tcftest +0 -0
- data/ext/tokyo/bin/tchmgr +0 -0
- data/ext/tokyo/bin/tchmttest +0 -0
- data/ext/tokyo/bin/tchtest +0 -0
- data/ext/tokyo/bin/tcrmgr +0 -0
- data/ext/tokyo/bin/tcrmttest +0 -0
- data/ext/tokyo/bin/tcrtest +0 -0
- data/ext/tokyo/bin/tctmgr +0 -0
- data/ext/tokyo/bin/tctmttest +0 -0
- data/ext/tokyo/bin/tcttest +0 -0
- data/ext/tokyo/bin/tcucodec +0 -0
- data/ext/tokyo/bin/tcumttest +0 -0
- data/ext/tokyo/bin/tcutest +0 -0
- data/ext/tokyo/bin/ttserver +0 -0
- data/ext/tokyo/bin/ttulmgr +0 -0
- data/ext/tokyo/bin/ttultest +0 -0
- data/ext/tokyo/include/tcadb.h +548 -0
- data/ext/tokyo/include/tcbdb.h +1101 -0
- data/ext/tokyo/include/tcfdb.h +858 -0
- data/ext/tokyo/include/tchdb.h +871 -0
- data/ext/tokyo/include/tcrdb.h +801 -0
- data/ext/tokyo/include/tctdb.h +1086 -0
- data/ext/tokyo/include/tculog.h +392 -0
- data/ext/tokyo/include/tcutil.h +4184 -0
- data/ext/tokyo/include/ttutil.h +494 -0
- data/ext/tokyo/lib/libtokyocabinet.9.4.0.dylib +0 -0
- data/ext/tokyo/lib/libtokyocabinet.9.dylib +0 -0
- data/ext/tokyo/lib/libtokyocabinet.a +0 -0
- data/ext/tokyo/lib/libtokyocabinet.dylib +0 -0
- data/ext/tokyo/lib/libtokyotyrant.3.22.0.dylib +0 -0
- data/ext/tokyo/lib/libtokyotyrant.3.dylib +0 -0
- data/ext/tokyo/lib/libtokyotyrant.a +0 -0
- data/ext/tokyo/lib/libtokyotyrant.dylib +0 -0
- data/ext/tokyo/lib/pkgconfig/tokyocabinet.pc +14 -0
- data/ext/tokyo/lib/pkgconfig/tokyotyrant.pc +14 -0
- data/ext/tokyo/lib/ttskeldir.bundle +0 -0
- data/ext/tokyo/lib/ttskelmock.bundle +0 -0
- data/ext/tokyo/lib/ttskelnull.bundle +0 -0
- data/ext/tokyo/lib/ttskelproxy.bundle +0 -0
- data/ext/tokyo/libexec/tcawmgr.cgi +0 -0
- data/ext/tokyo/sbin/ttservctl +163 -0
- data/ext/tokyo/share/man/man1/tcamgr.1 +97 -0
- data/ext/tokyo/share/man/man1/tcamttest.1 +35 -0
- data/ext/tokyo/share/man/man1/tcatest.1 +55 -0
- data/ext/tokyo/share/man/man1/tcbmgr.1 +125 -0
- data/ext/tokyo/share/man/man1/tcbmttest.1 +81 -0
- data/ext/tokyo/share/man/man1/tcbtest.1 +107 -0
- data/ext/tokyo/share/man/man1/tcfmgr.1 +98 -0
- data/ext/tokyo/share/man/man1/tcfmttest.1 +62 -0
- data/ext/tokyo/share/man/man1/tcftest.1 +73 -0
- data/ext/tokyo/share/man/man1/tchmgr.1 +110 -0
- data/ext/tokyo/share/man/man1/tchmttest.1 +85 -0
- data/ext/tokyo/share/man/man1/tchtest.1 +95 -0
- data/ext/tokyo/share/man/man1/tcrmgr.1 +164 -0
- data/ext/tokyo/share/man/man1/tcrmttest.1 +55 -0
- data/ext/tokyo/share/man/man1/tcrtest.1 +89 -0
- data/ext/tokyo/share/man/man1/tctmgr.1 +140 -0
- data/ext/tokyo/share/man/man1/tctmttest.1 +92 -0
- data/ext/tokyo/share/man/man1/tcttest.1 +105 -0
- data/ext/tokyo/share/man/man1/tcucodec.1 +162 -0
- data/ext/tokyo/share/man/man1/tcumttest.1 +41 -0
- data/ext/tokyo/share/man/man1/tcutest.1 +81 -0
- data/ext/tokyo/share/man/man1/ttserver.1 +84 -0
- data/ext/tokyo/share/man/man1/ttulmgr.1 +40 -0
- data/ext/tokyo/share/man/man1/ttultest.1 +16 -0
- data/ext/tokyo/share/man/man3/tcadb.3 +676 -0
- data/ext/tokyo/share/man/man3/tcbdb.3 +1355 -0
- data/ext/tokyo/share/man/man3/tcfdb.3 +975 -0
- data/ext/tokyo/share/man/man3/tchdb.3 +898 -0
- data/ext/tokyo/share/man/man3/tclist.3 +1 -0
- data/ext/tokyo/share/man/man3/tcmap.3 +1 -0
- data/ext/tokyo/share/man/man3/tcmdb.3 +1 -0
- data/ext/tokyo/share/man/man3/tcmpool.3 +1 -0
- data/ext/tokyo/share/man/man3/tcrdb.3 +1309 -0
- data/ext/tokyo/share/man/man3/tctdb.3 +1110 -0
- data/ext/tokyo/share/man/man3/tctree.3 +1 -0
- data/ext/tokyo/share/man/man3/tculog.3 +15 -0
- data/ext/tokyo/share/man/man3/tcutil.3 +4518 -0
- data/ext/tokyo/share/man/man3/tcxstr.3 +1 -0
- data/ext/tokyo/share/man/man3/tokyocabinet.3 +132 -0
- data/ext/tokyo/share/man/man3/ttutil.3 +14 -0
- data/ext/tokyo/share/man/man8/ttservctl.8 +37 -0
- data/ext/tokyo/share/tokyocabinet/COPYING +504 -0
- data/ext/tokyo/share/tokyocabinet/ChangeLog +1252 -0
- data/ext/tokyo/share/tokyocabinet/THANKS +12 -0
- data/ext/tokyo/share/tokyocabinet/doc/benchmark.pdf +0 -0
- data/ext/tokyo/share/tokyocabinet/doc/common.css +211 -0
- data/ext/tokyo/share/tokyocabinet/doc/icon16.png +0 -0
- data/ext/tokyo/share/tokyocabinet/doc/index.html +156 -0
- data/ext/tokyo/share/tokyocabinet/doc/index.ja.html +197 -0
- data/ext/tokyo/share/tokyocabinet/doc/logo-ja.png +0 -0
- data/ext/tokyo/share/tokyocabinet/doc/logo.png +0 -0
- data/ext/tokyo/share/tokyocabinet/doc/spex-en.html +7145 -0
- data/ext/tokyo/share/tokyocabinet/doc/spex-ja.html +7476 -0
- data/ext/tokyo/share/tokyocabinet/doc/tokyoproducts.pdf +0 -0
- data/ext/tokyo/share/tokyocabinet/doc/tokyoproducts.ppt +0 -0
- data/ext/tokyo/share/tokyotyrant/COPYING +504 -0
- data/ext/tokyo/share/tokyotyrant/ChangeLog +578 -0
- data/ext/tokyo/share/tokyotyrant/THANKS +15 -0
- data/ext/tokyo/share/tokyotyrant/doc/common.css +211 -0
- data/ext/tokyo/share/tokyotyrant/doc/index.html +79 -0
- data/ext/tokyo/share/tokyotyrant/doc/spex.html +2264 -0
- data/ext/tokyo/share/tokyotyrant/ext/mapreduce.lua +57 -0
- data/ext/tokyo/share/tokyotyrant/ext/queue.lua +55 -0
- data/ext/tokyo/share/tokyotyrant/ext/senatus.lua +532 -0
- data/ext/tokyo/share/tokyotyrant/ext/usherette.lua +438 -0
- data/ext/tokyo_tyrant.c +147 -0
- data/ext/tokyo_tyrant.h +48 -0
- data/ext/tokyo_tyrant_db.c +227 -0
- data/ext/tokyo_tyrant_db.h +8 -0
- data/ext/tokyo_tyrant_module.c +453 -0
- data/ext/tokyo_tyrant_module.h +10 -0
- data/ext/tokyo_tyrant_query.c +226 -0
- data/ext/tokyo_tyrant_query.h +9 -0
- data/ext/tokyo_tyrant_table.c +319 -0
- data/ext/tokyo_tyrant_table.h +8 -0
- data/ext/tokyocabinet-1.4.41/COPYING +504 -0
- data/ext/tokyocabinet-1.4.41/ChangeLog +1252 -0
- data/ext/tokyocabinet-1.4.41/Makefile.in +825 -0
- data/ext/tokyocabinet-1.4.41/README +38 -0
- data/ext/tokyocabinet-1.4.41/THANKS +12 -0
- data/ext/tokyocabinet-1.4.41/bros/Makefile +133 -0
- data/ext/tokyocabinet-1.4.41/bros/bdbtest.c +438 -0
- data/ext/tokyocabinet-1.4.41/bros/cdbtest.c +219 -0
- data/ext/tokyocabinet-1.4.41/bros/cmpsqltctest.c +186 -0
- data/ext/tokyocabinet-1.4.41/bros/gdbmtest.c +216 -0
- data/ext/tokyocabinet-1.4.41/bros/mapreporter +72 -0
- data/ext/tokyocabinet-1.4.41/bros/maptest.cc +677 -0
- data/ext/tokyocabinet-1.4.41/bros/ndbmtest.c +204 -0
- data/ext/tokyocabinet-1.4.41/bros/qdbmtest.c +375 -0
- data/ext/tokyocabinet-1.4.41/bros/reporter +141 -0
- data/ext/tokyocabinet-1.4.41/bros/result.xls +0 -0
- data/ext/tokyocabinet-1.4.41/bros/sdbmtest.c +204 -0
- data/ext/tokyocabinet-1.4.41/bros/sqltest.c +404 -0
- data/ext/tokyocabinet-1.4.41/bros/tctest.c +748 -0
- data/ext/tokyocabinet-1.4.41/bros/tdbtest.c +205 -0
- data/ext/tokyocabinet-1.4.41/configure +7402 -0
- data/ext/tokyocabinet-1.4.41/configure.in +362 -0
- data/ext/tokyocabinet-1.4.41/doc/benchmark.pdf +0 -0
- data/ext/tokyocabinet-1.4.41/doc/common.css +211 -0
- data/ext/tokyocabinet-1.4.41/doc/icon16.png +0 -0
- data/ext/tokyocabinet-1.4.41/doc/index.html +156 -0
- data/ext/tokyocabinet-1.4.41/doc/index.ja.html +197 -0
- data/ext/tokyocabinet-1.4.41/doc/logo-ja.png +0 -0
- data/ext/tokyocabinet-1.4.41/doc/logo.png +0 -0
- data/ext/tokyocabinet-1.4.41/doc/spex-en.html +7145 -0
- data/ext/tokyocabinet-1.4.41/doc/spex-ja.html +7476 -0
- data/ext/tokyocabinet-1.4.41/doc/tokyoproducts.pdf +0 -0
- data/ext/tokyocabinet-1.4.41/doc/tokyoproducts.ppt +0 -0
- data/ext/tokyocabinet-1.4.41/example/Makefile +113 -0
- data/ext/tokyocabinet-1.4.41/example/tcadbex.c +55 -0
- data/ext/tokyocabinet-1.4.41/example/tcbdbex.c +64 -0
- data/ext/tokyocabinet-1.4.41/example/tcfdbex.c +60 -0
- data/ext/tokyocabinet-1.4.41/example/tchdbex.c +60 -0
- data/ext/tokyocabinet-1.4.41/example/tctchat.c +97 -0
- data/ext/tokyocabinet-1.4.41/example/tctchat.tmpl +141 -0
- data/ext/tokyocabinet-1.4.41/example/tctdbex.c +85 -0
- data/ext/tokyocabinet-1.4.41/example/tctsearch.c +95 -0
- data/ext/tokyocabinet-1.4.41/example/tctsearch.tmpl +122 -0
- data/ext/tokyocabinet-1.4.41/example/tcutilex.c +77 -0
- data/ext/tokyocabinet-1.4.41/f.tsv +2 -0
- data/ext/tokyocabinet-1.4.41/lab/calccomp +118 -0
- data/ext/tokyocabinet-1.4.41/lab/datechange +56 -0
- data/ext/tokyocabinet-1.4.41/lab/diffcheck +45 -0
- data/ext/tokyocabinet-1.4.41/lab/htmltotsv +102 -0
- data/ext/tokyocabinet-1.4.41/lab/magic +19 -0
- data/ext/tokyocabinet-1.4.41/lab/printenv.cgi +27 -0
- data/ext/tokyocabinet-1.4.41/lab/stepcount +26 -0
- data/ext/tokyocabinet-1.4.41/lab/stopwatch +61 -0
- data/ext/tokyocabinet-1.4.41/lab/tabcheck +43 -0
- data/ext/tokyocabinet-1.4.41/lab/wgettsv +239 -0
- data/ext/tokyocabinet-1.4.41/lab/widthcheck +57 -0
- data/ext/tokyocabinet-1.4.41/man/htmltoman +104 -0
- data/ext/tokyocabinet-1.4.41/man/tcadb.3 +676 -0
- data/ext/tokyocabinet-1.4.41/man/tcamgr.1 +97 -0
- data/ext/tokyocabinet-1.4.41/man/tcamttest.1 +35 -0
- data/ext/tokyocabinet-1.4.41/man/tcatest.1 +55 -0
- data/ext/tokyocabinet-1.4.41/man/tcbdb.3 +1355 -0
- data/ext/tokyocabinet-1.4.41/man/tcbmgr.1 +125 -0
- data/ext/tokyocabinet-1.4.41/man/tcbmttest.1 +81 -0
- data/ext/tokyocabinet-1.4.41/man/tcbtest.1 +107 -0
- data/ext/tokyocabinet-1.4.41/man/tcfdb.3 +975 -0
- data/ext/tokyocabinet-1.4.41/man/tcfmgr.1 +98 -0
- data/ext/tokyocabinet-1.4.41/man/tcfmttest.1 +62 -0
- data/ext/tokyocabinet-1.4.41/man/tcftest.1 +73 -0
- data/ext/tokyocabinet-1.4.41/man/tchdb.3 +898 -0
- data/ext/tokyocabinet-1.4.41/man/tchmgr.1 +110 -0
- data/ext/tokyocabinet-1.4.41/man/tchmttest.1 +85 -0
- data/ext/tokyocabinet-1.4.41/man/tchtest.1 +95 -0
- data/ext/tokyocabinet-1.4.41/man/tclist.3 +1 -0
- data/ext/tokyocabinet-1.4.41/man/tcmap.3 +1 -0
- data/ext/tokyocabinet-1.4.41/man/tcmdb.3 +1 -0
- data/ext/tokyocabinet-1.4.41/man/tcmpool.3 +1 -0
- data/ext/tokyocabinet-1.4.41/man/tctdb.3 +1110 -0
- data/ext/tokyocabinet-1.4.41/man/tctmgr.1 +140 -0
- data/ext/tokyocabinet-1.4.41/man/tctmttest.1 +92 -0
- data/ext/tokyocabinet-1.4.41/man/tctree.3 +1 -0
- data/ext/tokyocabinet-1.4.41/man/tcttest.1 +105 -0
- data/ext/tokyocabinet-1.4.41/man/tcucodec.1 +162 -0
- data/ext/tokyocabinet-1.4.41/man/tcumttest.1 +41 -0
- data/ext/tokyocabinet-1.4.41/man/tcutest.1 +81 -0
- data/ext/tokyocabinet-1.4.41/man/tcutil.3 +4518 -0
- data/ext/tokyocabinet-1.4.41/man/tcxstr.3 +1 -0
- data/ext/tokyocabinet-1.4.41/man/tokyocabinet.3 +132 -0
- data/ext/tokyocabinet-1.4.41/md5.c +381 -0
- data/ext/tokyocabinet-1.4.41/md5.h +101 -0
- data/ext/tokyocabinet-1.4.41/myconf.c +493 -0
- data/ext/tokyocabinet-1.4.41/myconf.h +549 -0
- data/ext/tokyocabinet-1.4.41/tcadb.c +4339 -0
- data/ext/tokyocabinet-1.4.41/tcadb.h +548 -0
- data/ext/tokyocabinet-1.4.41/tcamgr.c +1019 -0
- data/ext/tokyocabinet-1.4.41/tcamttest.c +542 -0
- data/ext/tokyocabinet-1.4.41/tcatest.c +1845 -0
- data/ext/tokyocabinet-1.4.41/tcawmgr.c +482 -0
- data/ext/tokyocabinet-1.4.41/tcbdb.c +4180 -0
- data/ext/tokyocabinet-1.4.41/tcbdb.h +1101 -0
- data/ext/tokyocabinet-1.4.41/tcbmgr.c +1012 -0
- data/ext/tokyocabinet-1.4.41/tcbmttest.c +1810 -0
- data/ext/tokyocabinet-1.4.41/tcbtest.c +2586 -0
- data/ext/tokyocabinet-1.4.41/tcfdb.c +2746 -0
- data/ext/tokyocabinet-1.4.41/tcfdb.h +858 -0
- data/ext/tokyocabinet-1.4.41/tcfmgr.c +786 -0
- data/ext/tokyocabinet-1.4.41/tcfmttest.c +1220 -0
- data/ext/tokyocabinet-1.4.41/tcftest.c +1695 -0
- data/ext/tokyocabinet-1.4.41/tchdb.c +5153 -0
- data/ext/tokyocabinet-1.4.41/tchdb.h +871 -0
- data/ext/tokyocabinet-1.4.41/tchmgr.c +842 -0
- data/ext/tokyocabinet-1.4.41/tchmttest.c +1757 -0
- data/ext/tokyocabinet-1.4.41/tchtest.c +2129 -0
- data/ext/tokyocabinet-1.4.41/tctdb.c +6199 -0
- data/ext/tokyocabinet-1.4.41/tctdb.h +1086 -0
- data/ext/tokyocabinet-1.4.41/tctmgr.c +1241 -0
- data/ext/tokyocabinet-1.4.41/tctmttest.c +1563 -0
- data/ext/tokyocabinet-1.4.41/tcttest.c +2062 -0
- data/ext/tokyocabinet-1.4.41/tcucodec.c +1357 -0
- data/ext/tokyocabinet-1.4.41/tcumttest.c +578 -0
- data/ext/tokyocabinet-1.4.41/tcutest.c +1875 -0
- data/ext/tokyocabinet-1.4.41/tcutil.c +10528 -0
- data/ext/tokyocabinet-1.4.41/tcutil.h +4184 -0
- data/ext/tokyocabinet-1.4.41/tokyocabinet.idl +336 -0
- data/ext/tokyocabinet-1.4.41/tokyocabinet.pc.in +14 -0
- data/ext/tokyotyrant-1.1.39/COPYING +504 -0
- data/ext/tokyotyrant-1.1.39/ChangeLog +578 -0
- data/ext/tokyotyrant-1.1.39/Makefile.in +365 -0
- data/ext/tokyotyrant-1.1.39/README +38 -0
- data/ext/tokyotyrant-1.1.39/THANKS +15 -0
- data/ext/tokyotyrant-1.1.39/configure +6979 -0
- data/ext/tokyotyrant-1.1.39/configure.in +300 -0
- data/ext/tokyotyrant-1.1.39/doc/common.css +211 -0
- data/ext/tokyotyrant-1.1.39/doc/index.html +79 -0
- data/ext/tokyotyrant-1.1.39/doc/spex.html +2264 -0
- data/ext/tokyotyrant-1.1.39/example/Makefile +68 -0
- data/ext/tokyotyrant-1.1.39/example/httptest.pl +88 -0
- data/ext/tokyotyrant-1.1.39/example/mcftest.pl +39 -0
- data/ext/tokyotyrant-1.1.39/example/mctest.pl +43 -0
- data/ext/tokyotyrant-1.1.39/example/tcrdbex +0 -0
- data/ext/tokyotyrant-1.1.39/example/tcrdbex.c +49 -0
- data/ext/tokyotyrant-1.1.39/example/tcrdbex.o +0 -0
- data/ext/tokyotyrant-1.1.39/example/tcrdbtblex +0 -0
- data/ext/tokyotyrant-1.1.39/example/tcrdbtblex.c +79 -0
- data/ext/tokyotyrant-1.1.39/example/tcrdbtblex.o +0 -0
- data/ext/tokyotyrant-1.1.39/ext/mapreduce.lua +57 -0
- data/ext/tokyotyrant-1.1.39/ext/queue.lua +55 -0
- data/ext/tokyotyrant-1.1.39/ext/senatus.lua +532 -0
- data/ext/tokyotyrant-1.1.39/ext/usherette.lua +438 -0
- data/ext/tokyotyrant-1.1.39/lab/datechange +56 -0
- data/ext/tokyotyrant-1.1.39/lab/diffcheck +45 -0
- data/ext/tokyotyrant-1.1.39/lab/fibonacci.lua +20 -0
- data/ext/tokyotyrant-1.1.39/lab/footprint.lua +67 -0
- data/ext/tokyotyrant-1.1.39/lab/highlow.lua +88 -0
- data/ext/tokyotyrant-1.1.39/lab/killdualmaster +12 -0
- data/ext/tokyotyrant-1.1.39/lab/rundualmaster +38 -0
- data/ext/tokyotyrant-1.1.39/lab/stepcount +26 -0
- data/ext/tokyotyrant-1.1.39/lab/tabcheck +43 -0
- data/ext/tokyotyrant-1.1.39/lab/ushrtregister.pl +55 -0
- data/ext/tokyotyrant-1.1.39/lab/widthcheck +57 -0
- data/ext/tokyotyrant-1.1.39/man/htmltoman +100 -0
- data/ext/tokyotyrant-1.1.39/man/tcrdb.3 +1309 -0
- data/ext/tokyotyrant-1.1.39/man/tcrmgr.1 +164 -0
- data/ext/tokyotyrant-1.1.39/man/tcrmttest.1 +55 -0
- data/ext/tokyotyrant-1.1.39/man/tcrtest.1 +89 -0
- data/ext/tokyotyrant-1.1.39/man/tculog.3 +15 -0
- data/ext/tokyotyrant-1.1.39/man/ttservctl.8 +37 -0
- data/ext/tokyotyrant-1.1.39/man/ttserver.1 +84 -0
- data/ext/tokyotyrant-1.1.39/man/ttulmgr.1 +40 -0
- data/ext/tokyotyrant-1.1.39/man/ttultest.1 +16 -0
- data/ext/tokyotyrant-1.1.39/man/ttutil.3 +14 -0
- data/ext/tokyotyrant-1.1.39/myconf.c +169 -0
- data/ext/tokyotyrant-1.1.39/myconf.h +408 -0
- data/ext/tokyotyrant-1.1.39/scrext.c +2394 -0
- data/ext/tokyotyrant-1.1.39/scrext.h +96 -0
- data/ext/tokyotyrant-1.1.39/tcrdb.c +2637 -0
- data/ext/tokyotyrant-1.1.39/tcrdb.h +801 -0
- data/ext/tokyotyrant-1.1.39/tcrmgr.c +1559 -0
- data/ext/tokyotyrant-1.1.39/tcrmttest.c +915 -0
- data/ext/tokyotyrant-1.1.39/tcrtest.c +1542 -0
- data/ext/tokyotyrant-1.1.39/tculog.c +1211 -0
- data/ext/tokyotyrant-1.1.39/tculog.h +392 -0
- data/ext/tokyotyrant-1.1.39/tokyotyrant.idl +143 -0
- data/ext/tokyotyrant-1.1.39/tokyotyrant.pc.in +14 -0
- data/ext/tokyotyrant-1.1.39/ttservctl +163 -0
- data/ext/tokyotyrant-1.1.39/ttserver.c +3583 -0
- data/ext/tokyotyrant-1.1.39/ttskeldir.c +141 -0
- data/ext/tokyotyrant-1.1.39/ttskelmock.c +64 -0
- data/ext/tokyotyrant-1.1.39/ttskelnull.c +79 -0
- data/ext/tokyotyrant-1.1.39/ttskelproxy.c +74 -0
- data/ext/tokyotyrant-1.1.39/ttulmgr.c +266 -0
- data/ext/tokyotyrant-1.1.39/ttultest.c +371 -0
- data/ext/tokyotyrant-1.1.39/ttutil.c +1510 -0
- data/ext/tokyotyrant-1.1.39/ttutil.h +494 -0
- data/lib/tokyo_tyrant/balancer.rb +189 -0
- data/spec/ext.lua +4 -0
- data/spec/plu_db.rb +538 -0
- data/spec/spec.rb +1 -0
- data/spec/spec_base.rb +17 -0
- data/spec/start_tyrants.sh +36 -0
- data/spec/stop_tyrants.sh +9 -0
- data/spec/tokyo_tyrant_balancer_db_spec.rb +160 -0
- data/spec/tokyo_tyrant_balancer_table_spec.rb +177 -0
- data/spec/tokyo_tyrant_query_spec.rb +159 -0
- data/spec/tokyo_tyrant_spec.rb +254 -0
- data/spec/tokyo_tyrant_table_spec.rb +301 -0
- metadata +402 -0
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,14 @@
|
|
1
|
+
prefix=/Users/bauer/Code/ruby-tokyotyrant/ext/tokyo
|
2
|
+
exec_prefix=${prefix}
|
3
|
+
datarootdir = ${prefix}/share
|
4
|
+
bindir=${exec_prefix}/bin
|
5
|
+
libdir=${exec_prefix}/lib
|
6
|
+
libexecdir=${exec_prefix}/libexec
|
7
|
+
includedir=${prefix}/include
|
8
|
+
datadir=${datarootdir}
|
9
|
+
|
10
|
+
Name: Tokyo Cabinet
|
11
|
+
Description: a modern implementation of DBM
|
12
|
+
Version: 1.4.41
|
13
|
+
Libs: -L${libdir} -ltokyocabinet -lbz2 -lz -lpthread -lm -lc
|
14
|
+
Cflags: -I${includedir}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
prefix=/Users/bauer/Code/ruby-tokyotyrant/ext/tokyo
|
2
|
+
exec_prefix=${prefix}
|
3
|
+
datarootdir = ${prefix}/share
|
4
|
+
bindir=${exec_prefix}/bin
|
5
|
+
libdir=${exec_prefix}/lib
|
6
|
+
libexecdir=${exec_prefix}/libexec
|
7
|
+
includedir=${prefix}/include
|
8
|
+
datadir=${datarootdir}
|
9
|
+
|
10
|
+
Name: Tokyo Tyrant
|
11
|
+
Description: network interface of Tokyo Cabinet
|
12
|
+
Version: 1.1.39
|
13
|
+
Libs: -L${libdir} -ltokyotyrant -ltokyocabinet -lbz2 -lz -lresolv -ldl -lpthread -lm -lc
|
14
|
+
Cflags: -I${includedir}
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,163 @@
|
|
1
|
+
#! /bin/sh
|
2
|
+
|
3
|
+
#----------------------------------------------------------------
|
4
|
+
# Startup script for the server of Tokyo Tyrant
|
5
|
+
#----------------------------------------------------------------
|
6
|
+
|
7
|
+
|
8
|
+
# configuration variables
|
9
|
+
prog="ttservctl"
|
10
|
+
cmd="ttserver"
|
11
|
+
basedir="/var/ttserver"
|
12
|
+
port="1978"
|
13
|
+
pidfile="$basedir/pid"
|
14
|
+
#logfile="$basedir/log"
|
15
|
+
#ulogdir="$basedir/ulog"
|
16
|
+
#ulimsiz="256m"
|
17
|
+
#sid=1
|
18
|
+
#mhost="remotehost1"
|
19
|
+
#mport="1978"
|
20
|
+
#rtsfile="$basedir/rts"
|
21
|
+
dbname="$basedir/casket.tch#bnum=1000000"
|
22
|
+
retval=0
|
23
|
+
|
24
|
+
|
25
|
+
# setting environment variables
|
26
|
+
LANG=C
|
27
|
+
LC_ALL=C
|
28
|
+
PATH="$PATH:/sbin:/usr/sbin:/usr/local/sbin"
|
29
|
+
export LANG LC_ALL PATH
|
30
|
+
|
31
|
+
|
32
|
+
# start the server
|
33
|
+
start(){
|
34
|
+
printf 'Starting the server of Tokyo Tyrant\n'
|
35
|
+
mkdir -p "$basedir"
|
36
|
+
if [ -z "$basedir" ] || [ -z "$port" ] || [ -z "$pidfile" ] || [ -z "$dbname" ] ; then
|
37
|
+
printf 'Invalid configuration\n'
|
38
|
+
retval=1
|
39
|
+
elif ! [ -d "$basedir" ] ; then
|
40
|
+
printf 'No such directory: %s\n' "$basedir"
|
41
|
+
retval=1
|
42
|
+
elif [ -f "$pidfile" ] ; then
|
43
|
+
pid=`cat "$pidfile"`
|
44
|
+
printf 'Existing process: %d\n' "$pid"
|
45
|
+
retval=1
|
46
|
+
else
|
47
|
+
cmd="$cmd -port $port -dmn -pid $pidfile"
|
48
|
+
if [ -n "$logfile" ] ; then
|
49
|
+
cmd="$cmd -log $logfile"
|
50
|
+
fi
|
51
|
+
if [ -n "$ulogdir" ] ; then
|
52
|
+
mkdir -p "$ulogdir"
|
53
|
+
cmd="$cmd -ulog $ulogdir"
|
54
|
+
fi
|
55
|
+
if [ -n "$ulimsiz" ] ; then
|
56
|
+
cmd="$cmd -ulim $ulimsiz"
|
57
|
+
fi
|
58
|
+
if [ -n "$sid" ] ; then
|
59
|
+
cmd="$cmd -sid $sid"
|
60
|
+
fi
|
61
|
+
if [ -n "$mhost" ] ; then
|
62
|
+
cmd="$cmd -mhost $mhost"
|
63
|
+
fi
|
64
|
+
if [ -n "$mport" ] ; then
|
65
|
+
cmd="$cmd -mport $mport"
|
66
|
+
fi
|
67
|
+
if [ -n "$rtsfile" ] ; then
|
68
|
+
cmd="$cmd -rts $rtsfile"
|
69
|
+
fi
|
70
|
+
printf "Executing: %s\n" "$cmd"
|
71
|
+
cmd="$cmd $dbname"
|
72
|
+
$cmd
|
73
|
+
if [ "$?" -eq 0 ] ; then
|
74
|
+
printf 'Done\n'
|
75
|
+
else
|
76
|
+
printf 'The server could not started\n'
|
77
|
+
retval=1
|
78
|
+
fi
|
79
|
+
fi
|
80
|
+
}
|
81
|
+
|
82
|
+
|
83
|
+
# stop the server
|
84
|
+
stop(){
|
85
|
+
printf 'Stopping the server of Tokyo Tyrant\n'
|
86
|
+
if [ -f "$pidfile" ] ; then
|
87
|
+
pid=`cat "$pidfile"`
|
88
|
+
printf "Sending the terminal signal to the process: %s\n" "$pid"
|
89
|
+
kill -TERM "$pid"
|
90
|
+
c=0
|
91
|
+
while true ; do
|
92
|
+
sleep 0.1
|
93
|
+
if [ -f "$pidfile" ] ; then
|
94
|
+
c=`expr $c + 1`
|
95
|
+
if [ "$c" -ge 100 ] ; then
|
96
|
+
printf 'Hanging process: %d\n' "$pid"
|
97
|
+
retval=1
|
98
|
+
break
|
99
|
+
fi
|
100
|
+
else
|
101
|
+
printf 'Done\n'
|
102
|
+
break
|
103
|
+
fi
|
104
|
+
done
|
105
|
+
else
|
106
|
+
printf 'No process found\n'
|
107
|
+
retval=1
|
108
|
+
fi
|
109
|
+
}
|
110
|
+
|
111
|
+
|
112
|
+
# send HUP to the server for log rotation
|
113
|
+
hup(){
|
114
|
+
printf 'Sending HUP signal to the server of Tokyo Tyrant\n'
|
115
|
+
if [ -f "$pidfile" ] ; then
|
116
|
+
pid=`cat "$pidfile"`
|
117
|
+
printf "Sending the hangup signal to the process: %s\n" "$pid"
|
118
|
+
kill -HUP "$pid"
|
119
|
+
printf 'Done\n'
|
120
|
+
else
|
121
|
+
printf 'No process found\n'
|
122
|
+
retval=1
|
123
|
+
fi
|
124
|
+
}
|
125
|
+
|
126
|
+
|
127
|
+
# check permission
|
128
|
+
if [ -d "$basedir" ] && ! touch "$basedir/$$" >/dev/null 2>&1
|
129
|
+
then
|
130
|
+
printf 'Permission denied\n'
|
131
|
+
exit 1
|
132
|
+
fi
|
133
|
+
rm -f "$basedir/$$"
|
134
|
+
|
135
|
+
|
136
|
+
# dispatch the command
|
137
|
+
case "$1" in
|
138
|
+
start)
|
139
|
+
start
|
140
|
+
;;
|
141
|
+
stop)
|
142
|
+
stop
|
143
|
+
;;
|
144
|
+
restart)
|
145
|
+
stop
|
146
|
+
start
|
147
|
+
;;
|
148
|
+
hup)
|
149
|
+
hup
|
150
|
+
;;
|
151
|
+
*)
|
152
|
+
printf 'Usage: %s {start|stop|restart|hup}\n' "$prog"
|
153
|
+
exit 1
|
154
|
+
;;
|
155
|
+
esac
|
156
|
+
|
157
|
+
|
158
|
+
# exit
|
159
|
+
exit "$retval"
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
# END OF FILE
|
@@ -0,0 +1,97 @@
|
|
1
|
+
.TH "TCATEST" 3 "2009-10-13" "Man Page" "Tokyo Cabinet"
|
2
|
+
|
3
|
+
.SH NAME
|
4
|
+
tcamgr \- the command line utility of the abstract database API
|
5
|
+
|
6
|
+
.SH DESCRIPTION
|
7
|
+
.PP
|
8
|
+
The command `\fBtcamgr\fR' is a utility for test and debugging of the abstract database API and its applications. `\fIname\fR' specifies the name of a database. `\fIkey\fR' specifies the key of a record. `\fIvalue\fR' specifies the value of a record. `\fIparams\fR' specifies the tuning parameters. `\fIfunc\fR' specifies the name of a function. `\fIarg\fR' specifies the arguments of the function. `\fIdest\fR' specifies the path of the destination file.
|
9
|
+
.PP
|
10
|
+
.RS
|
11
|
+
.br
|
12
|
+
\fBtcamgr create \fIname\fB\fR
|
13
|
+
.RS
|
14
|
+
Create a database file.
|
15
|
+
.RE
|
16
|
+
.br
|
17
|
+
\fBtcamgr inform \fIname\fB\fR
|
18
|
+
.RS
|
19
|
+
Print miscellaneous information to the standard output.
|
20
|
+
.RE
|
21
|
+
.br
|
22
|
+
\fBtcamgr put \fR[\fB\-sx\fR]\fB \fR[\fB\-sep \fIchr\fB\fR]\fB \fR[\fB\-dk\fR|\fB\-dc\fR|\fB\-dai\fR|\fB\-dad\fR]\fB \fIname\fB \fIkey\fB \fIvalue\fB\fR
|
23
|
+
.RS
|
24
|
+
Store a record.
|
25
|
+
.RE
|
26
|
+
.br
|
27
|
+
\fBtcamgr out \fR[\fB\-sx\fR]\fB \fR[\fB\-sep \fIchr\fB\fR]\fB \fIname\fB \fIkey\fB\fR
|
28
|
+
.RS
|
29
|
+
Remove a record.
|
30
|
+
.RE
|
31
|
+
.br
|
32
|
+
\fBtcamgr get \fR[\fB\-sx\fR]\fB \fR[\fB\-sep \fIchr\fB\fR]\fB \fR[\fB\-px\fR]\fB \fR[\fB\-pz\fR]\fB \fIname\fB \fIkey\fB\fR
|
33
|
+
.RS
|
34
|
+
Print the value of a record.
|
35
|
+
.RE
|
36
|
+
.br
|
37
|
+
\fBtcamgr list \fR[\fB\-sep \fIchr\fB\fR]\fB \fR[\fB\-m \fInum\fB\fR]\fB \fR[\fB\-pv\fR]\fB \fR[\fB\-px\fR]\fB \fR[\fB\-fm \fIstr\fB\fR]\fB \fIname\fB\fR
|
38
|
+
.RS
|
39
|
+
Print keys of all records, separated by line feeds.
|
40
|
+
.RE
|
41
|
+
.br
|
42
|
+
\fBtcamgr optimize \fIname\fB \fIparams\fB\fR
|
43
|
+
.RS
|
44
|
+
Optimize a database file.
|
45
|
+
.RE
|
46
|
+
.br
|
47
|
+
\fBtcamgr misc \fR[\fB\-sx\fR]\fB \fR[\fB\-sep \fIchr\fB\fR]\fB \fR[\fB\-px\fR]\fB \fIname\fB \fIfunc\fB \fR[\fB\fIarg\fB...\fR]\fB\fR
|
48
|
+
.RS
|
49
|
+
Call a versatile function for miscellaneous operations.
|
50
|
+
.RE
|
51
|
+
.br
|
52
|
+
\fBtcamgr map \fR[\fB\-fm \fIstr\fB\fR]\fB \fIname\fB \fIdest\fB\fR
|
53
|
+
.RS
|
54
|
+
Map records into another B+ tree database.
|
55
|
+
.RE
|
56
|
+
.br
|
57
|
+
\fBtcamgr version\fR
|
58
|
+
.RS
|
59
|
+
Print the version information of Tokyo Cabinet.
|
60
|
+
.RE
|
61
|
+
.RE
|
62
|
+
.PP
|
63
|
+
Options feature the following.
|
64
|
+
.PP
|
65
|
+
.RS
|
66
|
+
\fB\-sx\fR : the input data is evaluated as a hexadecimal data string.
|
67
|
+
.br
|
68
|
+
\fB\-sep \fIchr\fR\fR : specify the separator of the input data.
|
69
|
+
.br
|
70
|
+
\fB\-dk\fR : use the function `tcadbputkeep' instead of `tcadbput'.
|
71
|
+
.br
|
72
|
+
\fB\-dc\fR : use the function `tcadbputcat' instead of `tcadbput'.
|
73
|
+
.br
|
74
|
+
\fB\-dai\fR : use the function `tcadbaddint' instead of `tcadbput'.
|
75
|
+
.br
|
76
|
+
\fB\-dad\fR : use the function `tcadbadddouble' instead of `tcadbput'.
|
77
|
+
.br
|
78
|
+
\fB\-px\fR : the output data is converted into a hexadecimal data string.
|
79
|
+
.br
|
80
|
+
\fB\-pz\fR : do not append line feed at the end of the output.
|
81
|
+
.br
|
82
|
+
\fB\-m \fInum\fR\fR : specify the maximum number of the output.
|
83
|
+
.br
|
84
|
+
\fB\-pv\fR : print values of records also.
|
85
|
+
.br
|
86
|
+
\fB\-fm \fIstr\fR\fR : specify the prefix of keys.
|
87
|
+
.br
|
88
|
+
.RE
|
89
|
+
.PP
|
90
|
+
This command returns 0 on success, another on failure.
|
91
|
+
|
92
|
+
.SH SEE ALSO
|
93
|
+
.PP
|
94
|
+
.BR tcatest (1),
|
95
|
+
.BR tcamttest (1),
|
96
|
+
.BR tcadb (3),
|
97
|
+
.BR tokyocabinet (3)
|
@@ -0,0 +1,35 @@
|
|
1
|
+
.TH "TCAMTTEST" 1 "2009-10-13" "Man Page" "Tokyo Cabinet"
|
2
|
+
|
3
|
+
.SH NAME
|
4
|
+
tcamttest \- test cases of the abstract database API
|
5
|
+
|
6
|
+
.SH DESCRIPTION
|
7
|
+
.PP
|
8
|
+
The command `\fBtcamttest\fR' is a utility for facility test under multi\-thread situation. This command is used in the following format. `\fIname\fR' specifies the database name. `\fItnum\fR' specifies the number of running threads. `\fIrnum\fR' specifies the number of iterations.
|
9
|
+
.PP
|
10
|
+
.RS
|
11
|
+
.br
|
12
|
+
\fBtcamttest write \fIname\fB \fItnum\fB \fIrnum\fB\fR
|
13
|
+
.RS
|
14
|
+
Store records with keys of 8 bytes. They change as `00000001', `00000002'...
|
15
|
+
.RE
|
16
|
+
.br
|
17
|
+
\fBtcamttest read \fIname\fB \fItnum\fB\fR
|
18
|
+
.RS
|
19
|
+
Retrieve all records of the database above.
|
20
|
+
.RE
|
21
|
+
.br
|
22
|
+
\fBtcamttest remove \fIname\fB \fItnum\fB\fR
|
23
|
+
.RS
|
24
|
+
Remove all records of the database above.
|
25
|
+
.RE
|
26
|
+
.RE
|
27
|
+
.PP
|
28
|
+
This command returns 0 on success, another on failure.
|
29
|
+
|
30
|
+
.SH SEE ALSO
|
31
|
+
.PP
|
32
|
+
.BR tcatest (1),
|
33
|
+
.BR tcamgr (1),
|
34
|
+
.BR tcadb (3),
|
35
|
+
.BR tokyocabinet (3)
|
@@ -0,0 +1,55 @@
|
|
1
|
+
.TH "TCATEST" 3 "2009-10-13" "Man Page" "Tokyo Cabinet"
|
2
|
+
|
3
|
+
.SH NAME
|
4
|
+
tcatest \- test cases of the abstract database API
|
5
|
+
|
6
|
+
.SH DESCRIPTION
|
7
|
+
.PP
|
8
|
+
The command `\fBtcatest\fR' is a utility for facility test and performance test. This command is used in the following format. `\fIname\fR' specifies the database name. `\fIrnum\fR' specifies the number of iterations. `\fItnum\fR' specifies the number of transactions.
|
9
|
+
.PP
|
10
|
+
.RS
|
11
|
+
.br
|
12
|
+
\fBtcatest write \fIname\fB \fIrnum\fB\fR
|
13
|
+
.RS
|
14
|
+
Store records with keys of 8 bytes. They change as `00000001', `00000002'...
|
15
|
+
.RE
|
16
|
+
.br
|
17
|
+
\fBtcatest read \fIname\fB\fR
|
18
|
+
.RS
|
19
|
+
Retrieve all records of the database above.
|
20
|
+
.RE
|
21
|
+
.br
|
22
|
+
\fBtcatest remove \fIname\fB\fR
|
23
|
+
.RS
|
24
|
+
Remove all records of the database above.
|
25
|
+
.RE
|
26
|
+
.br
|
27
|
+
\fBtcatest rcat \fIname\fB \fIrnum\fB\fR
|
28
|
+
.RS
|
29
|
+
Store records with partway duplicated keys using concatenate mode.
|
30
|
+
.RE
|
31
|
+
.br
|
32
|
+
\fBtcatest misc \fIname\fB \fIrnum\fB\fR
|
33
|
+
.RS
|
34
|
+
Perform miscellaneous test of various operations.
|
35
|
+
.RE
|
36
|
+
.br
|
37
|
+
\fBtcatest wicked \fIname\fB \fIrnum\fB\fR
|
38
|
+
.RS
|
39
|
+
Perform updating operations of list and map selected at random.
|
40
|
+
.RE
|
41
|
+
.br
|
42
|
+
\fBtcatest compare \fIname\fB \fItnum\fB \fIrnum\fB\fR
|
43
|
+
.RS
|
44
|
+
Perform comparison test of database schema.
|
45
|
+
.RE
|
46
|
+
.RE
|
47
|
+
.PP
|
48
|
+
This command returns 0 on success, another on failure.
|
49
|
+
|
50
|
+
.SH SEE ALSO
|
51
|
+
.PP
|
52
|
+
.BR tcamttest (1),
|
53
|
+
.BR tcamgr (1),
|
54
|
+
.BR tcadb (3),
|
55
|
+
.BR tokyocabinet (3)
|
@@ -0,0 +1,125 @@
|
|
1
|
+
.TH "TCBMGR" 1 "2009-10-13" "Man Page" "Tokyo Cabinet"
|
2
|
+
|
3
|
+
.SH NAME
|
4
|
+
tcbmgr \- the command line utility of the B+ tree database API
|
5
|
+
|
6
|
+
.SH DESCRIPTION
|
7
|
+
The command `\fBtcbmgr\fR' is a utility for test and debugging of the B+ tree database API and its applications. `\fIpath\fR' specifies the path of a database file. `\fIlmemb\fR' specifies the number of members in each leaf page. `\fInmemb\fR' specifies the number of members in each non\-leaf page. `\fIbnum\fR' specifies the number of buckets. `\fIapow\fR' specifies the power of the alignment. `\fIfpow\fR' specifies the power of the free block pool. `\fIkey\fR' specifies the key of a record. `\fIvalue\fR' specifies the value of a record. `\fIfile\fR' specifies the input file.
|
8
|
+
.PP
|
9
|
+
.RS
|
10
|
+
.br
|
11
|
+
\fBtcbmgr create \fR[\fB\-cd\fR|\fB\-ci\fR|\fB\-cj\fR]\fB \fR[\fB\-tl\fR]\fB \fR[\fB\-td\fR|\fB\-tb\fR|\fB\-tt\fR|\fB\-tx\fR]\fB \fIpath\fB \fR[\fB\fIlmemb\fB \fR[\fB\fInmemb\fB \fR[\fB\fIbnum\fB \fR[\fB\fIapow\fB \fR[\fB\fIfpow\fB\fR]\fB\fR]\fB\fR]\fB\fR]\fB\fR]\fB\fR
|
12
|
+
.RS
|
13
|
+
Create a database file.
|
14
|
+
.RE
|
15
|
+
.br
|
16
|
+
\fBtcbmgr inform \fR[\fB\-nl\fR|\fB\-nb\fR]\fB \fIpath\fB\fR
|
17
|
+
.RS
|
18
|
+
Print miscellaneous information to the standard output.
|
19
|
+
.RE
|
20
|
+
.br
|
21
|
+
\fBtcbmgr put \fR[\fB\-cd\fR|\fB\-ci\fR|\fB\-cj\fR]\fB \fR[\fB\-nl\fR|\fB\-nb\fR]\fB \fR[\fB\-sx\fR]\fB \fR[\fB\-dk\fR|\fB\-dc\fR|\fB\-dd\fR|\fB\-db\fR|\fB\-dai\fR|\fB\-dad\fR]\fB \fIpath\fB \fIkey\fB \fIvalue\fB\fR
|
22
|
+
.RS
|
23
|
+
Store a record.
|
24
|
+
.RE
|
25
|
+
.br
|
26
|
+
\fBtcbmgr out \fR[\fB\-cd\fR|\fB\-ci\fR|\fB\-cj\fR]\fB \fR[\fB\-nl\fR|\fB\-nb\fR]\fB \fR[\fB\-sx\fR]\fB \fIpath\fB \fIkey\fB\fR
|
27
|
+
.RS
|
28
|
+
Remove a record.
|
29
|
+
.RE
|
30
|
+
.br
|
31
|
+
\fBtcbmgr get \fR[\fB\-cd\fR|\fB\-ci\fR|\fB\-cj\fR]\fB \fR[\fB\-nl\fR|\fB\-nb\fR]\fB \fR[\fB\-sx\fR]\fB \fR[\fB\-px\fR]\fB \fR[\fB\-pz\fR]\fB \fIpath\fB \fIkey\fB\fR
|
32
|
+
.RS
|
33
|
+
Print the value of a record.
|
34
|
+
.RE
|
35
|
+
.br
|
36
|
+
\fBtcbmgr list \fR[\fB\-cd\fR|\fB\-ci\fR|\fB\-cj\fR]\fB \fR[\fB\-nl\fR|\fB\-nb\fR]\fB \fR[\fB\-m \fInum\fB\fR]\fB \fR[\fB\-bk\fR]\fB \fR[\fB\-pv\fR]\fB \fR[\fB\-px\fR]\fB \fR[\fB\-j \fIstr\fB\fR]\fB \fR[\fB\-rb \fIbkey\fB \fIekey\fB\fR]\fB \fR[\fB\-fm \fIstr\fB\fR]\fB \fIpath\fB\fR
|
37
|
+
.RS
|
38
|
+
Print keys of all records, separated by line feeds.
|
39
|
+
.RE
|
40
|
+
.br
|
41
|
+
\fBtcbmgr optimize \fR[\fB\-cd\fR|\fB\-ci\fR|\fB\-cj\fR]\fB \fR[\fB\-tl\fR]\fB \fR[\fB\-td\fR|\fB\-tb\fR|\fB\-tt\fR|\fB\-tx\fR]\fB \fR[\fB\-tz\fR]\fB \fR[\fB\-nl\fR|\fB\-nb\fR]\fB \fR[\fB\-df\fR]\fB \fIpath\fB \fR[\fB\fIlmemb\fB \fR[\fB\fInmemb\fB \fR[\fB\fIbnum\fB \fR[\fB\fIapow\fB \fR[\fB\fIfpow\fB\fR]\fB\fR]\fB\fR]\fB\fR]\fB\fR]\fB\fR
|
42
|
+
.RS
|
43
|
+
Optimize a database file.
|
44
|
+
.RE
|
45
|
+
.br
|
46
|
+
\fBtcbmgr importtsv \fR[\fB\-nl\fR|\fB\-nb\fR]\fB \fR[\fB\-sc\fR]\fB \fIpath\fB \fR[\fB\fIfile\fB\fR]\fB\fR
|
47
|
+
.RS
|
48
|
+
Store records of TSV in each line of a file.
|
49
|
+
.RE
|
50
|
+
.br
|
51
|
+
\fBtcbmgr version\fR
|
52
|
+
.RS
|
53
|
+
Print the version information of Tokyo Cabinet.
|
54
|
+
.RE
|
55
|
+
.RE
|
56
|
+
.PP
|
57
|
+
Options feature the following.
|
58
|
+
.PP
|
59
|
+
.RS
|
60
|
+
\fB\-cd\fR : use the comparison function `tccmpdecimal'.
|
61
|
+
.br
|
62
|
+
\fB\-ci\fR : use the comparison function `tccmpint32'.
|
63
|
+
.br
|
64
|
+
\fB\-cj\fR : use the comparison function `tccmpint64'.
|
65
|
+
.br
|
66
|
+
\fB\-tl\fR : enable the option `BDBTLARGE'.
|
67
|
+
.br
|
68
|
+
\fB\-td\fR : enable the option `BDBTDEFLATE'.
|
69
|
+
.br
|
70
|
+
\fB\-tb\fR : enable the option `BDBTBZIP'.
|
71
|
+
.br
|
72
|
+
\fB\-tt\fR : enable the option `BDBTTCBS'.
|
73
|
+
.br
|
74
|
+
\fB\-tx\fR : enable the option `BDBTEXCODEC'.
|
75
|
+
.br
|
76
|
+
\fB\-nl\fR : enable the option `BDBNOLCK'.
|
77
|
+
.br
|
78
|
+
\fB\-nb\fR : enable the option `BDBLCKNB'.
|
79
|
+
.br
|
80
|
+
\fB\-sx\fR : the input data is evaluated as a hexadecimal data string.
|
81
|
+
.br
|
82
|
+
\fB\-dk\fR : use the function `tcbdbputkeep' instead of `tcbdbput'.
|
83
|
+
.br
|
84
|
+
\fB\-dc\fR : use the function `tcbdbputcat' instead of `tcbdbput'.
|
85
|
+
.br
|
86
|
+
\fB\-dd\fR : use the function `tcbdbputdup' instead of `tcbdbput'.
|
87
|
+
.br
|
88
|
+
\fB\-db\fR : use the function `tcbdbputdupback' instead of `tcbdbput'.
|
89
|
+
.br
|
90
|
+
\fB\-dai\fR : use the function `tcbdbaddint' instead of `tcbdbput'.
|
91
|
+
.br
|
92
|
+
\fB\-dad\fR : use the function `tcbdbadddouble' instead of `tcbdbput'.
|
93
|
+
.br
|
94
|
+
\fB\-px\fR : the output data is converted into a hexadecimal data string.
|
95
|
+
.br
|
96
|
+
\fB\-pz\fR : do not append line feed at the end of the output.
|
97
|
+
.br
|
98
|
+
\fB\-m \fInum\fR\fR : specify the maximum number of the output.
|
99
|
+
.br
|
100
|
+
\fB\-bk\fR : perform backword scanning.
|
101
|
+
.br
|
102
|
+
\fB\-pv\fR : print values of records also.
|
103
|
+
.br
|
104
|
+
\fB\-j \fIstr\fR\fR : specify the key where the cursor jump to.
|
105
|
+
.br
|
106
|
+
\fB\-rb \fIbkey\fR \fIekey\fR\fR : specify the range of keys.
|
107
|
+
.br
|
108
|
+
\fB\-fm \fIstr\fR\fR : specify the prefix of keys.
|
109
|
+
.br
|
110
|
+
\fB\-tz\fR : enable the option `UINT8_MAX'.
|
111
|
+
.br
|
112
|
+
\fB\-df\fR : perform defragmentation only.
|
113
|
+
.br
|
114
|
+
\fB\-sc\fR : normalize keys as lower cases.
|
115
|
+
.br
|
116
|
+
.RE
|
117
|
+
.PP
|
118
|
+
This command returns 0 on success, another on failure.
|
119
|
+
|
120
|
+
.SH SEE ALSO
|
121
|
+
.PP
|
122
|
+
.BR tcbtest (1),
|
123
|
+
.BR tcbmttest (1),
|
124
|
+
.BR tcbdb (3),
|
125
|
+
.BR tokyocabinet (3)
|