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
@@ -0,0 +1,140 @@
|
|
1
|
+
.TH "TCTMGR" 1 "2009-10-13" "Man Page" "Tokyo Cabinet"
|
2
|
+
|
3
|
+
.SH NAME
|
4
|
+
tctmgr \- the command line utility of the table database API
|
5
|
+
|
6
|
+
.SH DESCRIPTION
|
7
|
+
.PP
|
8
|
+
The command `\fBtctmgr\fR' is a utility for test and debugging of the table database API and its applications. `\fIpath\fR' specifies the path of a database file. `\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. `\fIpkey\fR' specifies the primary key of a record. `\fIcols\fR' specifies the names and the values of a record alternately. `\fIname\fR' specifies the name of a column. `\fIop\fR' specifies an operator. `\fIexpr\fR' specifies the condition expression. `\fIfile\fR' specifies the input file.
|
9
|
+
.PP
|
10
|
+
.RS
|
11
|
+
.br
|
12
|
+
\fBtctmgr create \fR[\fB\-tl\fR]\fB \fR[\fB\-td\fR|\fB\-tb\fR|\fB\-tt\fR|\fB\-tx\fR]\fB \fIpath\fB \fR[\fB\fIbnum\fB \fR[\fB\fIapow\fB \fR[\fB\fIfpow\fB\fR]\fB\fR]\fB\fR]\fB\fR
|
13
|
+
.RS
|
14
|
+
Create a database file.
|
15
|
+
.RE
|
16
|
+
.br
|
17
|
+
\fBtctmgr inform \fR[\fB\-nl\fR|\fB\-nb\fR]\fB \fIpath\fB\fR
|
18
|
+
.RS
|
19
|
+
Print miscellaneous information to the standard output.
|
20
|
+
.RE
|
21
|
+
.br
|
22
|
+
\fBtctmgr put \fR[\fB\-nl\fR|\fB\-nb\fR]\fB \fR[\fB\-sx\fR]\fB \fR[\fB\-dk\fR|\fB\-dc\fR|\fB\-dai\fR|\fB\-dad\fR]\fB \fIpath\fB \fIpkey\fB \fR[\fB\fIcols\fB ...\fR]\fB\fR
|
23
|
+
.RS
|
24
|
+
Store a record.
|
25
|
+
.RE
|
26
|
+
.br
|
27
|
+
\fBtctmgr out \fR[\fB\-nl\fR|\fB\-nb\fR]\fB \fR[\fB\-sx\fR]\fB \fIpath\fB \fIpkey\fB\fR
|
28
|
+
.RS
|
29
|
+
Remove a record.
|
30
|
+
.RE
|
31
|
+
.br
|
32
|
+
\fBtctmgr get \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 \fIpkey\fB\fR
|
33
|
+
.RS
|
34
|
+
Print the value of a record.
|
35
|
+
.RE
|
36
|
+
.br
|
37
|
+
\fBtctmgr list \fR[\fB\-nl\fR|\fB\-nb\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 \fIpath\fB\fR
|
38
|
+
.RS
|
39
|
+
Print the primary keys of all records, separated by line feeds.
|
40
|
+
.RE
|
41
|
+
.br
|
42
|
+
\fBtctmgr search \fR[\fB\-nl\fR|\fB\-nb\fR]\fB \fR[\fB\-ord \fIname\fB \fItype\fB\fR]\fB \fR[\fB\-m \fInum\fB\fR]\fB \fR[\fB\-sk \fInum\fB\fR]\fB \fR[\fB\-kw\fR]\fB \fR[\fB\-pv\fR]\fB \fR[\fB\-px\fR]\fB \fR[\fB\-ph\fR]\fB \fR[\fB\-bt \fInum\fB\fR]\fB \fR[\fB\-rm\fR]\fB \fR[\fB\-ms \fItype\fB\fR]\fB \fIpath\fB \fR[\fB\fIname\fB \fIop\fB \fIexpr\fB ...\fR]\fB\fR
|
43
|
+
.RS
|
44
|
+
Print records matching conditions, separated by line feeds.
|
45
|
+
.RE
|
46
|
+
.br
|
47
|
+
\fBtctmgr optimize \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\fIbnum\fB \fR[\fB\fIapow\fB \fR[\fB\fIfpow\fB\fR]\fB\fR]\fB\fR]\fB\fR
|
48
|
+
.RS
|
49
|
+
Optimize a database file.
|
50
|
+
.RE
|
51
|
+
.br
|
52
|
+
\fBtctmgr setindex \fR[\fB\-nl\fR|\fB\-nb\fR]\fB \fR[\fB\-it \fItype\fB\fR]\fB \fIpath\fB \fIname\fB\fR
|
53
|
+
.RS
|
54
|
+
Set the index of a column.
|
55
|
+
.RE
|
56
|
+
.br
|
57
|
+
\fBtctmgr importtsv \fR[\fB\-nl\fR|\fB\-nb\fR]\fB \fR[\fB\-sc\fR]\fB \fIpath\fB \fR[\fB\fIfile\fB\fR]\fB\fR
|
58
|
+
.RS
|
59
|
+
Store records of TSV in each line of a file.
|
60
|
+
.RE
|
61
|
+
.br
|
62
|
+
\fBtctmgr version\fR
|
63
|
+
.RS
|
64
|
+
Print the version information of Tokyo Cabinet.
|
65
|
+
.RE
|
66
|
+
.RE
|
67
|
+
.PP
|
68
|
+
Options feature the following.
|
69
|
+
.PP
|
70
|
+
.RS
|
71
|
+
\fB\-tl\fR : enable the option `TDBTLARGE'.
|
72
|
+
.br
|
73
|
+
\fB\-td\fR : enable the option `TDBTDEFLATE'.
|
74
|
+
.br
|
75
|
+
\fB\-tb\fR : enable the option `TDBTBZIP'.
|
76
|
+
.br
|
77
|
+
\fB\-tt\fR : enable the option `TDBTTCBS'.
|
78
|
+
.br
|
79
|
+
\fB\-tx\fR : enable the option `TDBTEXCODEC'.
|
80
|
+
.br
|
81
|
+
\fB\-nl\fR : enable the option `TDBNOLCK'.
|
82
|
+
.br
|
83
|
+
\fB\-nb\fR : enable the option `TDBLCKNB'.
|
84
|
+
.br
|
85
|
+
\fB\-sx\fR : the input data is evaluated as a hexadecimal data string.
|
86
|
+
.br
|
87
|
+
\fB\-dk\fR : use the function `tctdbputkeep' instead of `tctdbput'.
|
88
|
+
.br
|
89
|
+
\fB\-dc\fR : use the function `tctdbputcat' instead of `tctdbput'.
|
90
|
+
.br
|
91
|
+
\fB\-dai\fR : use the function `tctdbaddint' instead of `tctdbput'.
|
92
|
+
.br
|
93
|
+
\fB\-dad\fR : use the function `tctdbadddouble' instead of `tctdbput'.
|
94
|
+
.br
|
95
|
+
\fB\-px\fR : the output data is converted into a hexadecimal data string.
|
96
|
+
.br
|
97
|
+
\fB\-pz\fR : do not append line feed at the end of the output.
|
98
|
+
.br
|
99
|
+
\fB\-m \fInum\fR\fR : specify the maximum number of the output.
|
100
|
+
.br
|
101
|
+
\fB\-pv\fR : print values of records also.
|
102
|
+
.br
|
103
|
+
\fB\-fm \fIstr\fR\fR : specify the prefix of keys.
|
104
|
+
.br
|
105
|
+
\fB\-ord \fIname\fR \fItype\fR\fR : specify the order of the result.
|
106
|
+
.br
|
107
|
+
\fB\-sk \fInum\fR\fR : specify the number of skipped records.
|
108
|
+
.br
|
109
|
+
\fB\-kw\fR : print KWIC string.
|
110
|
+
.br
|
111
|
+
\fB\-ph\fR : print hint information also.
|
112
|
+
.br
|
113
|
+
\fB\-bt\fR : specify the number of benchmark tests.
|
114
|
+
.br
|
115
|
+
\fB\-rm\fR : remove every record in the result.
|
116
|
+
.br
|
117
|
+
\fB\-ms \fItype\fR\fR : specify the set operation of meta search.
|
118
|
+
.br
|
119
|
+
\fB\-tz\fR : enable the option `UINT8_MAX'.
|
120
|
+
.br
|
121
|
+
\fB\-df\fR : perform defragmentation only.
|
122
|
+
.br
|
123
|
+
\fB\-it \fItype\fR\fR : specify the index type among "lexical", "decimal", "token", "qgram", and "void".
|
124
|
+
.br
|
125
|
+
\fB\-cd\fR : create the number index instead of the string index.
|
126
|
+
.br
|
127
|
+
\fB\-cv\fR : remove the existing index.
|
128
|
+
.br
|
129
|
+
\fB\-sc\fR : normalize keys as lower cases.
|
130
|
+
.br
|
131
|
+
.RE
|
132
|
+
.PP
|
133
|
+
The operator of the `search' subcommand is one of "STREQ", "STRINC", "STRBW", "STREW", "STRAND", "STROR", "STROREQ", "STRRX", "NUMEQ", "NUMGT", "NUMGE", "NUMLT", "NUMLE", "NUMBT", "NUMOREQ", "FTSPH", "FTSAND", "FTSOR", and "FTSEX". If "~" preposes each operator, the logical meaning is reversed. If "+" preposes each operator, no index is used for the operator. The type of the `\-ord' option is one of "STRASC", "STRDESC", "NUMASC", and "NUMDESC". The type of the `\-ms' option is one of "UNION", "ISECT", and "DIFF". This command returns 0 on success, another on failure.
|
134
|
+
|
135
|
+
.SH SEE ALSO
|
136
|
+
.PP
|
137
|
+
.BR tcttest (1),
|
138
|
+
.BR tctmttest (1),
|
139
|
+
.BR tctdb (3),
|
140
|
+
.BR tokyocabinet (3)
|
@@ -0,0 +1,92 @@
|
|
1
|
+
.TH "TCTMTTEST" 1 "2009-10-13" "Man Page" "Tokyo Cabinet"
|
2
|
+
|
3
|
+
.SH NAME
|
4
|
+
tctmttest \- test cases of the table database API
|
5
|
+
|
6
|
+
.SH DESCRIPTION
|
7
|
+
.PP
|
8
|
+
The command `\fBtctmttest\fR' is a utility for facility test under multi\-thread situation. This command is used in the following format. `\fIpath\fR' specifies the path of a database file. `\fItnum\fR' specifies the number of running threads. `\fIrnum\fR' specifies the number of iterations. `\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.
|
9
|
+
.PP
|
10
|
+
.RS
|
11
|
+
.br
|
12
|
+
\fBtctmttest write \fR[\fB\-tl\fR]\fB \fR[\fB\-td\fR|\fB\-tb\fR|\fB\-tt\fR|\fB\-tx\fR]\fB \fR[\fB\-rc \fInum\fB\fR]\fB \fR[\fB\-lc \fInum\fB\fR]\fB \fR[\fB\-nc \fInum\fB\fR]\fB \fR[\fB\-xm \fInum\fB\fR]\fB \fR[\fB\-df \fInum\fB\fR]\fB \fR[\fB\-ip\fR]\fB \fR[\fB\-is\fR]\fB \fR[\fB\-in\fR]\fB \fR[\fB\-it\fR]\fB \fR[\fB\-if\fR]\fB \fR[\fB\-ix\fR]\fB \fR[\fB\-nl\fR|\fB\-nb\fR]\fB \fR[\fB\-rnd\fR]\fB \fIpath\fB \fItnum\fB \fIrnum\fB \fR[\fB\fIbnum\fB \fR[\fB\fIapow\fB \fR[\fB\fIfpow\fB\fR]\fB\fR]\fB\fR]\fB\fR
|
13
|
+
.RS
|
14
|
+
Store records with columns "str", "num", "type", and "flag".
|
15
|
+
.RE
|
16
|
+
.br
|
17
|
+
\fBtctmttest read \fR[\fB\-rc \fInum\fB\fR]\fB \fR[\fB\-lc \fInum\fB\fR]\fB \fR[\fB\-nc \fInum\fB\fR]\fB \fR[\fB\-xm \fInum\fB\fR]\fB \fR[\fB\-df \fInum\fB\fR]\fB \fR[\fB\-nl\fR|\fB\-nb\fR]\fB \fR[\fB\-rnd\fR]\fB \fIpath\fB \fItnum\fB\fR
|
18
|
+
.RS
|
19
|
+
Retrieve all records of the database above.
|
20
|
+
.RE
|
21
|
+
.br
|
22
|
+
\fBtctmttest remove \fR[\fB\-rc \fInum\fB\fR]\fB \fR[\fB\-lc \fInum\fB\fR]\fB \fR[\fB\-nc \fInum\fB\fR]\fB \fR[\fB\-xm \fInum\fB\fR]\fB \fR[\fB\-df \fInum\fB\fR]\fB \fR[\fB\-nl\fR|\fB\-nb\fR]\fB \fR[\fB\-rnd\fR]\fB \fIpath\fB \fItnum\fB\fR
|
23
|
+
.RS
|
24
|
+
Remove all records of the database above.
|
25
|
+
.RE
|
26
|
+
.br
|
27
|
+
\fBtctmttest wicked \fR[\fB\-tl\fR]\fB \fR[\fB\-td\fR|\fB\-tb\fR|\fB\-tt\fR|\fB\-tx\fR]\fB \fR[\fB\-nl\fR|\fB\-nb\fR]\fB \fIpath\fB \fItnum\fB \fIrnum\fB\fR
|
28
|
+
.RS
|
29
|
+
Perform updating operations selected at random.
|
30
|
+
.RE
|
31
|
+
.br
|
32
|
+
\fBtctmttest typical \fR[\fB\-tl\fR]\fB \fR[\fB\-td\fR|\fB\-tb\fR|\fB\-tt\fR|\fB\-tx\fR]\fB \fR[\fB\-rc \fInum\fB\fR]\fB \fR[\fB\-lc \fInum\fB\fR]\fB \fR[\fB\-nc \fInum\fB\fR]\fB \fR[\fB\-xm \fInum\fB\fR]\fB \fR[\fB\-df \fInum\fB\fR]\fB \fR[\fB\-nl\fR|\fB\-nb\fR]\fB \fR[\fB\-rr \fInum\fB\fR]\fB \fIpath\fB \fItnum\fB \fIrnum\fB \fR[\fB\fIbnum\fB \fR[\fB\fIapow\fB \fR[\fB\fIfpow\fB\fR]\fB\fR]\fB\fR
|
33
|
+
.RS
|
34
|
+
Perform typical operations selected at random.
|
35
|
+
.RE
|
36
|
+
.RE
|
37
|
+
.PP
|
38
|
+
Options feature the following.
|
39
|
+
.PP
|
40
|
+
.RS
|
41
|
+
\fB\-tl\fR : enable the option `TDBTLARGE'.
|
42
|
+
.br
|
43
|
+
\fB\-td\fR : enable the option `TDBTDEFLATE'.
|
44
|
+
.br
|
45
|
+
\fB\-tb\fR : enable the option `TDBTBZIP'.
|
46
|
+
.br
|
47
|
+
\fB\-tt\fR : enable the option `TDBTTCBS'.
|
48
|
+
.br
|
49
|
+
\fB\-tx\fR : enable the option `TDBTEXCODEC'.
|
50
|
+
.br
|
51
|
+
\fB\-rc \fInum\fR\fR : specify the number of cached records.
|
52
|
+
.br
|
53
|
+
\fB\-lc \fInum\fR\fR : specify the number of cached leaf pages.
|
54
|
+
.br
|
55
|
+
\fB\-nc \fInum\fR\fR : specify the number of cached non\-leaf pages.
|
56
|
+
.br
|
57
|
+
\fB\-xm \fInum\fR\fR : specify the size of the extra mapped memory.
|
58
|
+
.br
|
59
|
+
\fB\-df \fInum\fR\fR : specify the unit step number of auto defragmentation.
|
60
|
+
.br
|
61
|
+
\fB\-ip\fR : create the number index for the primary key.
|
62
|
+
.br
|
63
|
+
\fB\-is\fR : create the string index for the column "str".
|
64
|
+
.br
|
65
|
+
\fB\-in\fR : create the number index for the column "num".
|
66
|
+
.br
|
67
|
+
\fB\-it\fR : create the string index for the column "type".
|
68
|
+
.br
|
69
|
+
\fB\-if\fR : create the token inverted index for the column "flag".
|
70
|
+
.br
|
71
|
+
\fB\-ix\fR : create the q\-gram inverted index for the column "text".
|
72
|
+
.br
|
73
|
+
\fB\-nl\fR : enable the option `TDBNOLCK'.
|
74
|
+
.br
|
75
|
+
\fB\-nb\fR : enable the option `TDBLCKNB'.
|
76
|
+
.br
|
77
|
+
\fB\-rnd\fR : select keys at random.
|
78
|
+
.br
|
79
|
+
\fB\-nc\fR : omit the comparison test.
|
80
|
+
.br
|
81
|
+
\fB\-rr \fInum\fR\fR : specify the ratio of reading operation by percentage.
|
82
|
+
.br
|
83
|
+
.RE
|
84
|
+
.PP
|
85
|
+
This command returns 0 on success, another on failure.
|
86
|
+
|
87
|
+
.SH SEE ALSO
|
88
|
+
.PP
|
89
|
+
.BR tcttest (1),
|
90
|
+
.BR tctmgr (1),
|
91
|
+
.BR tctdb (3),
|
92
|
+
.BR tokyocabinet (3)
|
@@ -0,0 +1 @@
|
|
1
|
+
.so man3/tcutil.3
|
@@ -0,0 +1,105 @@
|
|
1
|
+
.TH "TCTTEST" 1 "2009-10-13" "Man Page" "Tokyo Cabinet"
|
2
|
+
|
3
|
+
.SH NAME
|
4
|
+
tcttest \- test cases of the table database API
|
5
|
+
|
6
|
+
.SH DESCRIPTION
|
7
|
+
.PP
|
8
|
+
The command `\fBtcttest\fR' is a utility for facility test and performance test. This command is used in the following format. `\fIpath\fR' specifies the path of a database file. `\fIrnum\fR' specifies the number of iterations. `\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.
|
9
|
+
.PP
|
10
|
+
.RS
|
11
|
+
.br
|
12
|
+
\fBtcttest write \fR[\fB\-mt\fR]\fB \fR[\fB\-tl\fR]\fB \fR[\fB\-td\fR|\fB\-tb\fR|\fB\-tt\fR|\fB\-tx\fR]\fB \fR[\fB\-rc \fInum\fB\fR]\fB \fR[\fB\-lc \fInum\fB\fR]\fB \fR[\fB\-nc \fInum\fB\fR]\fB \fR[\fB\-xm \fInum\fB\fR]\fB \fR[\fB\-df \fInum\fB\fR]\fB \fR[\fB\-ip\fR]\fB \fR[\fB\-is\fR]\fB \fR[\fB\-in\fR]\fB \fR[\fB\-it\fR]\fB \fR[\fB\-if\fR]\fB \fR[\fB\-ix\fR]\fB \fR[\fB\-nl\fR|\fB\-nb\fR]\fB \fR[\fB\-rnd\fR]\fB \fIpath\fB \fIrnum\fB \fR[\fB\fIbnum\fB \fR[\fB\fIapow\fB \fR[\fB\fIfpow\fB\fR]\fB\fR]\fB\fR]\fB\fR
|
13
|
+
.RS
|
14
|
+
Store records with columns "str", "num", "type", and "flag".
|
15
|
+
.RE
|
16
|
+
.br
|
17
|
+
\fBtcttest read \fR[\fB\-mt\fR]\fB \fR[\fB\-rc \fInum\fB\fR]\fB \fR[\fB\-lc \fInum\fB\fR]\fB \fR[\fB\-nc \fInum\fB\fR]\fB \fR[\fB\-xm \fInum\fB\fR]\fB \fR[\fB\-df \fInum\fB\fR]\fB \fR[\fB\-nl\fR|\fB\-nb\fR]\fB \fR[\fB\-rnd\fR]\fB \fIpath\fB\fR
|
18
|
+
.RS
|
19
|
+
Retrieve all records of the database above.
|
20
|
+
.RE
|
21
|
+
.br
|
22
|
+
\fBtcttest remove \fR[\fB\-mt\fR]\fB \fR[\fB\-rc \fInum\fB\fR]\fB \fR[\fB\-lc \fInum\fB\fR]\fB \fR[\fB\-nc \fInum\fB\fR]\fB \fR[\fB\-xm \fInum\fB\fR]\fB \fR[\fB\-df \fInum\fB\fR]\fB \fR[\fB\-nl\fR|\fB\-nb\fR]\fB \fR[\fB\-rnd\fR]\fB \fIpath\fB\fR
|
23
|
+
.RS
|
24
|
+
Remove all records of the database above.
|
25
|
+
.RE
|
26
|
+
.br
|
27
|
+
\fBtcttest rcat \fR[\fB\-mt\fR]\fB \fR[\fB\-tl\fR]\fB \fR[\fB\-td\fR|\fB\-tb\fR|\fB\-tt\fR|\fB\-tx\fR]\fB \fR[\fB\-rc \fInum\fB\fR]\fB \fR[\fB\-lc \fInum\fB\fR]\fB \fR[\fB\-nc \fInum\fB\fR]\fB \fR[\fB\-xm \fInum\fB\fR]\fB \fR[\fB\-df \fInum\fB\fR]\fB \fR[\fB\-ip\fR]\fB \fR[\fB\-is\fR]\fB \fR[\fB\-in\fR]\fB \fR[\fB\-it\fR]\fB \fR[\fB\-if\fR]\fB \fR[\fB\-ix\fR]\fB \fR[\fB\-nl\fR|\fB\-nb\fR]\fB \fR[\fB\-pn \fInum\fB\fR]\fB \fR[\fB\-dai\fR|\fB\-dad\fR|\fB\-rl\fR|\fB\-ru\fR]\fB \fIpath\fB \fIrnum\fB \fR[\fB\fIbnum\fB \fR[\fB\fIapow\fB \fR[\fB\fIfpow\fB\fR]\fB\fR]\fB\fR]\fB\fR
|
28
|
+
.RS
|
29
|
+
Store records with partway duplicated keys using concatenate mode.
|
30
|
+
.RE
|
31
|
+
.br
|
32
|
+
\fBtcttest misc \fR[\fB\-mt\fR]\fB \fR[\fB\-tl\fR]\fB \fR[\fB\-td\fR|\fB\-tb\fR|\fB\-tt\fR|\fB\-tx\fR]\fB \fR[\fB\-nl\fR|\fB\-nb\fR]\fB \fIpath\fB \fIrnum\fB\fR
|
33
|
+
.RS
|
34
|
+
Perform miscellaneous test of various operations.
|
35
|
+
.RE
|
36
|
+
.br
|
37
|
+
\fBtcttest wicked \fR[\fB\-mt\fR]\fB \fR[\fB\-tl\fR]\fB \fR[\fB\-td\fR|\fB\-tb\fR|\fB\-tt\fR|\fB\-tx\fR]\fB \fR[\fB\-nl\fR|\fB\-nb\fR]\fB \fIpath\fB \fIrnum\fB\fR
|
38
|
+
.RS
|
39
|
+
Perform updating operations selected at random.
|
40
|
+
.RE
|
41
|
+
.RE
|
42
|
+
.PP
|
43
|
+
Options feature the following.
|
44
|
+
.PP
|
45
|
+
.RS
|
46
|
+
\fB\-mt\fR : call the function `tctdbsetmutex'.
|
47
|
+
.br
|
48
|
+
\fB\-tl\fR : enable the option `TDBTLARGE'.
|
49
|
+
.br
|
50
|
+
\fB\-td\fR : enable the option `TDBTDEFLATE'.
|
51
|
+
.br
|
52
|
+
\fB\-tb\fR : enable the option `TDBTBZIP'.
|
53
|
+
.br
|
54
|
+
\fB\-tt\fR : enable the option `TDBTTCBS'.
|
55
|
+
.br
|
56
|
+
\fB\-tx\fR : enable the option `TDBTEXCODEC'.
|
57
|
+
.br
|
58
|
+
\fB\-rc \fInum\fR\fR : specify the number of cached records.
|
59
|
+
.br
|
60
|
+
\fB\-lc \fInum\fR\fR : specify the number of cached leaf pages.
|
61
|
+
.br
|
62
|
+
\fB\-nc \fInum\fR\fR : specify the number of cached non\-leaf pages.
|
63
|
+
.br
|
64
|
+
\fB\-xm \fInum\fR\fR : specify the size of the extra mapped memory.
|
65
|
+
.br
|
66
|
+
\fB\-df \fInum\fR\fR : specify the unit step number of auto defragmentation.
|
67
|
+
.br
|
68
|
+
\fB\-ip\fR : create the number index for the primary key.
|
69
|
+
.br
|
70
|
+
\fB\-is\fR : create the string index for the column "str".
|
71
|
+
.br
|
72
|
+
\fB\-in\fR : create the number index for the column "num".
|
73
|
+
.br
|
74
|
+
\fB\-it\fR : create the string index for the column "type".
|
75
|
+
.br
|
76
|
+
\fB\-if\fR : create the token inverted index for the column "flag".
|
77
|
+
.br
|
78
|
+
\fB\-ix\fR : create the q\-gram inverted index for the column "text".
|
79
|
+
.br
|
80
|
+
\fB\-nl\fR : enable the option `TDBNOLCK'.
|
81
|
+
.br
|
82
|
+
\fB\-nb\fR : enable the option `TDBLCKNB'.
|
83
|
+
.br
|
84
|
+
\fB\-rnd\fR : select keys at random.
|
85
|
+
.br
|
86
|
+
\fB\-pn \fInum\fR\fR : specify the number of patterns.
|
87
|
+
.br
|
88
|
+
\fB\-dai\fR : use the function `tctdbaddint' instead of `tctdbputcat'.
|
89
|
+
.br
|
90
|
+
\fB\-dad\fR : use the function `tctdbadddouble' instead of `tctdbputcat'.
|
91
|
+
.br
|
92
|
+
\fB\-rl\fR : set the length of values at random.
|
93
|
+
.br
|
94
|
+
\fB\-ru\fR : select update operations at random.
|
95
|
+
.br
|
96
|
+
.RE
|
97
|
+
.PP
|
98
|
+
This command returns 0 on success, another on failure.
|
99
|
+
|
100
|
+
.SH SEE ALSO
|
101
|
+
.PP
|
102
|
+
.BR tctmttest (1),
|
103
|
+
.BR tctmgr (1),
|
104
|
+
.BR tctdb (3),
|
105
|
+
.BR tokyocabinet (3)
|
@@ -0,0 +1,162 @@
|
|
1
|
+
.TH "TCUCODEC" 1 "2009-10-13" "Man Page" "Tokyo Cabinet"
|
2
|
+
|
3
|
+
.SH NAME
|
4
|
+
tcucodec \- popular encoders and decoders
|
5
|
+
|
6
|
+
.SH DESCRIPTION
|
7
|
+
.PP
|
8
|
+
The command `\fBtcucodec\fR' is a tool to use encoding and decoding features. This command is used in the following format. `\fIfile\fR' specifies a input file. If it is omitted, the standard input is read.
|
9
|
+
.PP
|
10
|
+
.RS
|
11
|
+
.br
|
12
|
+
\fBtcucodec url \fR[\fB\-d\fR]\fB \fR[\fB\-br\fR]\fB \fR[\fB\-rs \fIbase\fB\fR]\fB \fR[\fB\fIfile\fB\fR]\fB\fR
|
13
|
+
.RS
|
14
|
+
Perform URL encoding and its decoding.
|
15
|
+
.RE
|
16
|
+
.br
|
17
|
+
\fBtcucodec base \fR[\fB\-d\fR]\fB \fR[\fB\fIfile\fB\fR]\fB\fR
|
18
|
+
.RS
|
19
|
+
Perform Base64 encoding and its decoding.
|
20
|
+
.RE
|
21
|
+
.br
|
22
|
+
\fBtcucodec quote \fR[\fB\-d\fR]\fB \fR[\fB\fIfile\fB\fR]\fB\fR
|
23
|
+
.RS
|
24
|
+
Perform quoted\-printable encoding and its decoding.
|
25
|
+
.RE
|
26
|
+
.br
|
27
|
+
\fBtcucodec mime \fR[\fB\-d\fR]\fB \fR[\fB\-en \fIname\fB\fR]\fB \fR[\fB\-q\fR]\fB \fR[\fB\-on\fR]\fB \fR[\fB\-hd\fR]\fB \fR[\fB\-bd\fR]\fB \fR[\fB\-part \fInum\fB\fR]\fB \fR[\fB\fIfile\fB\fR]\fB\fR
|
28
|
+
.RS
|
29
|
+
Perform MIME encoding and its decoding.
|
30
|
+
.RE
|
31
|
+
.br
|
32
|
+
\fBtcucodec hex \fR[\fB\-d\fR]\fB \fR[\fB\fIfile\fB\fR]\fB\fR
|
33
|
+
.RS
|
34
|
+
Perform hexadecimal encoding and its decoding.
|
35
|
+
.RE
|
36
|
+
.br
|
37
|
+
\fBtcucodec pack \fR[\fB\-d\fR]\fB \fR[\fB\-bwt\fR]\fB \fR[\fB\fIfile\fB\fR]\fB\fR
|
38
|
+
.RS
|
39
|
+
Perform Packbits encoding and its decoding.
|
40
|
+
.RE
|
41
|
+
.br
|
42
|
+
\fBtcucodec tcbs \fR[\fB\-d\fR]\fB \fR[\fB\fIfile\fB\fR]\fB\fR
|
43
|
+
.RS
|
44
|
+
Perform TCBS encoding and its decoding.
|
45
|
+
.RE
|
46
|
+
.br
|
47
|
+
\fBtcucodec zlib \fR[\fB\-d\fR]\fB \fR[\fB\-gz\fR]\fB \fR[\fB\fIfile\fB\fR]\fB\fR
|
48
|
+
.RS
|
49
|
+
Perform ZLIB encoding and its decoding.
|
50
|
+
.RE
|
51
|
+
.br
|
52
|
+
\fBtcucodec bzip \fR[\fB\-d\fR]\fB \fR[\fB\fIfile\fB\fR]\fB\fR
|
53
|
+
.RS
|
54
|
+
Perform BZIP2 encoding and its decoding.
|
55
|
+
.RE
|
56
|
+
.br
|
57
|
+
\fBtcucodec xml \fR[\fB\-d\fR]\fB \fR[\fB\-br\fR]\fB \fR[\fB\fIfile\fB\fR]\fB\fR
|
58
|
+
.RS
|
59
|
+
Process XML. By default, escape meta characters.
|
60
|
+
.RE
|
61
|
+
.br
|
62
|
+
\fBtcucodec cstr \fR[\fB\-d\fR]\fB \fR[\fB\-js\fR]\fB \fR[\fB\fIfile\fB\fR]\fB\fR
|
63
|
+
.RS
|
64
|
+
Perform C\-string escaping and its unescaping.
|
65
|
+
.RE
|
66
|
+
.br
|
67
|
+
\fBtcucodec ucs \fR[\fB\-d\fR]\fB \fR[\fB\-un\fR]\fB \fR[\fB\-kw \fIstr\fB\fR]\fB \fR[\fB\fIfile\fB\fR]\fB\fR
|
68
|
+
.RS
|
69
|
+
Convert UTF\-8 string into UCS\-2 array.
|
70
|
+
.RE
|
71
|
+
.br
|
72
|
+
\fBtcucodec hash \fR[\fB\-crc\fR]\fB \fR[\fB\-ch \fInum\fB\fR]\fB \fR[\fB\fIfile\fB\fR]\fB\fR
|
73
|
+
.RS
|
74
|
+
Calculate the hash value. By default, use MD5 function.
|
75
|
+
.RE
|
76
|
+
.br
|
77
|
+
\fBtcucodec cipher \fR[\fB\-key \fIstr\fB\fR]\fB \fR[\fB\fIfile\fB\fR]\fB\fR
|
78
|
+
.RS
|
79
|
+
Perform stream cipher and its decipher.
|
80
|
+
.RE
|
81
|
+
.br
|
82
|
+
\fBtcucodec date \fR[\fB\-ds \fIstr\fB\fR]\fB \fR[\fB\-jl \fInum\fB\fR]\fB \fR[\fB\-wf\fR]\fB \fR[\fB\-rf\fR]\fB\fR
|
83
|
+
.RS
|
84
|
+
Process date string. By default, print the current UNIX time.
|
85
|
+
.RE
|
86
|
+
.br
|
87
|
+
\fBtcucodec tmpl \fR[\fB\-var \fIname\fB \fIvalue\fB\fR]\fB \fR[\fB\fIfile\fB\fR]\fB\fR
|
88
|
+
.RS
|
89
|
+
Perform template serialization.
|
90
|
+
.RE
|
91
|
+
.br
|
92
|
+
\fBtcucodec conf \fR[\fB\-v\fR|\fB\-i\fR|\fB\-l\fR|\fB\-p\fR]\fB\fR
|
93
|
+
.RS
|
94
|
+
Print some configurations.
|
95
|
+
.RE
|
96
|
+
.RE
|
97
|
+
.PP
|
98
|
+
Options feature the following.
|
99
|
+
.PP
|
100
|
+
.RS
|
101
|
+
\fB\-d\fR : perform decoding (unescaping), not encoding (escaping).
|
102
|
+
.br
|
103
|
+
\fB\-br\fR : break up URL or XML into elements.
|
104
|
+
.br
|
105
|
+
\fB\-rs \fIbase\fR\fR : specify the base URL and resolve the relative URL.
|
106
|
+
.br
|
107
|
+
\fB\-en \fIname\fR\fR : specify the input encoding, which is UTF\-8 by default.
|
108
|
+
.br
|
109
|
+
\fB\-q\fR : use quoted\-printable encoding, which is Base64 by default.
|
110
|
+
.br
|
111
|
+
\fB\-on\fR : output the charset name when decoding.
|
112
|
+
.br
|
113
|
+
\fB\-bd\fR : perform MIME parsing and output the body.
|
114
|
+
.br
|
115
|
+
\fB\-hd\fR : perform MIME parsing and output the headers.
|
116
|
+
.br
|
117
|
+
\fB\-part \fInum\fR\fR : perform MIME parsing and output the specified part.
|
118
|
+
.br
|
119
|
+
\fB\-bwt\fR : convert by BWT as preprocessing.
|
120
|
+
.br
|
121
|
+
\fB\-gz\fR : use GZIP format.
|
122
|
+
.br
|
123
|
+
\fB\-crc\fR : use CRC32 function.
|
124
|
+
.br
|
125
|
+
\fB\-js\fR : use JSON compatible format.
|
126
|
+
.br
|
127
|
+
\fB\-un\fR : perform UCS normalization.
|
128
|
+
.br
|
129
|
+
\fB\-kw \fIstr\fR\fR : generate KWIC string.
|
130
|
+
.br
|
131
|
+
\fB\-ch \fInum\fR\fR : use consistent hashing function.
|
132
|
+
.br
|
133
|
+
\fB\-key \fIstr\fR\fR : specify the cipher key.
|
134
|
+
.br
|
135
|
+
\fB\-ds \fIstr\fR\fR : specify the time.
|
136
|
+
.br
|
137
|
+
\fB\-jl \fInum\fR\fR : specify the jet lag.
|
138
|
+
.br
|
139
|
+
\fB\-wf\fR : format the output in W3CDTF.
|
140
|
+
.br
|
141
|
+
\fB\-rf\fR : format the output in RFC 1123 format.
|
142
|
+
.br
|
143
|
+
\fB\-var \fIname\fR \fIvalue\fR\fR : specify a template variable.
|
144
|
+
.br
|
145
|
+
\fB\-v\fR : show the version number of Tokyo Cabinet.
|
146
|
+
.br
|
147
|
+
\fB\-i\fR : show options to include the headers of Tokyo Cabinet.
|
148
|
+
.br
|
149
|
+
\fB\-l\fR : show options to link the library of Tokyo Cabinet.
|
150
|
+
.br
|
151
|
+
\fB\-p\fR : show the directory path of the commands of Tokyo Cabinet.
|
152
|
+
.br
|
153
|
+
.RE
|
154
|
+
.PP
|
155
|
+
This command returns 0 on success, another on failure.
|
156
|
+
|
157
|
+
.SH SEE ALSO
|
158
|
+
.PP
|
159
|
+
.BR tcutest (1),
|
160
|
+
.BR tcumttest (1),
|
161
|
+
.BR tcutil (3),
|
162
|
+
.BR tokyocabinet (3)
|