Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Tokyo Cabinet & Tokyo Tyrant

First step guide of Tokyo Cabinet & Tokto Tyrant.

Related Books

Free with a 30 day trial from Scribd

See all

Related Audiobooks

Free with a 30 day trial from Scribd

See all
  • Be the first to comment

Tokyo Cabinet & Tokyo Tyrant

  1. 1. TokyoCabinet TokyoTyrant Copyright © Akira Koyasu. Some rights reserved.
  2. 2. Copyright © Akira Koyasu. Some rights reserved.
  3. 3. Copyright © Akira Koyasu. Some rights reserved.
  4. 4. Copyright © Akira Koyasu. Some rights reserved.
  5. 5. TokyoCabinet (TC) DB DB Copyright © Akira Koyasu. Some rights reserved.
  6. 6. TokyoCabinet (TC) DB DB Copyright © Akira Koyasu. Some rights reserved.
  7. 7. TokyoCabinet (TC) DB DBTokyoTyrant (TT) TC Copyright © Akira Koyasu. Some rights reserved.
  8. 8. TokyoCabinet (TC) DB DBTokyoTyrant (TT) TC Copyright © Akira Koyasu. Some rights reserved.
  9. 9. Copyright © Akira Koyasu. Some rights reserved.
  10. 10. TokyoCabinet Copyright © Akira Koyasu. Some rights reserved.
  11. 11. TokyoCabinet✤ Copyright © Akira Koyasu. Some rights reserved.
  12. 12. TokyoCabinet hash (.tch) b+ tree (.tcb) fixed-length (.tcf) table (.tct)✤ Copyright © Akira Koyasu. Some rights reserved.
  13. 13. TokyoCabinet hash (.tch) key value b+ tree (.tcb) fixed-length (.tcf) table (.tct)✤ Copyright © Akira Koyasu. Some rights reserved.
  14. 14. TokyoCabinet hash (.tch) b+ tree (.tcb) value1 key value key value2 value3 fixed-length (.tcf) table (.tct)✤ Copyright © Akira Koyasu. Some rights reserved.
  15. 15. TokyoCabinet hash (.tch) b+ tree (.tcb) value1 key value key value2 value3 fixed-length (.tcf) table (.tct) key value✤ Copyright © Akira Koyasu. Some rights reserved.
  16. 16. TokyoCabinet hash (.tch) b+ tree (.tcb) value1 key value key value2 value3 fixed-length (.tcf) table (.tct) key valuenatural number max-length✤ Copyright © Akira Koyasu. Some rights reserved.
  17. 17. TokyoCabinet hash (.tch) b+ tree (.tcb) value1 key value key value2 value3 fixed-length (.tcf) table (.tct) name1 value1 name2 key value key value2natural number max-length name3 value1✤ Copyright © Akira Koyasu. Some rights reserved.
  18. 18. TokyoCabinet CLI✤ x h(ash) / b(+ tree) / f(ixed-length) / t(able) Copyright © Akira Koyasu. Some rights reserved.
  19. 19. TokyoCabinet CLItcxmgr create /path/to/dbfile.tcx✤ x h(ash) / b(+ tree) / f(ixed-length) / t(able) Copyright © Akira Koyasu. Some rights reserved.
  20. 20. TokyoCabinet CLItcxmgr create /path/to/dbfile.tcxtcxmgr put /path/to/dbfile.tcx key value✤ x h(ash) / b(+ tree) / f(ixed-length) / t(able) Copyright © Akira Koyasu. Some rights reserved.
  21. 21. TokyoCabinet CLItcxmgr create /path/to/dbfile.tcxtcxmgr put /path/to/dbfile.tcx key valuetcxmgr list /path/to/dbfile.tcx✤ x h(ash) / b(+ tree) / f(ixed-length) / t(able) Copyright © Akira Koyasu. Some rights reserved.
  22. 22. TokyoCabinet CLItcxmgr create /path/to/dbfile.tcxtcxmgr put /path/to/dbfile.tcx key valuetcxmgr list /path/to/dbfile.tcxtcxmgr get /path/to/dbfile.tcx key✤ x h(ash) / b(+ tree) / f(ixed-length) / t(able) Copyright © Akira Koyasu. Some rights reserved.
  23. 23. TokyoCabinet CLItcxmgr create /path/to/dbfile.tcxtcxmgr put /path/to/dbfile.tcx key valuetcxmgr list /path/to/dbfile.tcxtcxmgr get /path/to/dbfile.tcx keytcxmgr out /path/to/dbfile.tcx key✤ x h(ash) / b(+ tree) / f(ixed-length) / t(able) Copyright © Akira Koyasu. Some rights reserved.
  24. 24. TokyoCabinetJavaAPI (JNI) Copyright © Akira Koyasu. Some rights reserved.
  25. 25. TokyoCabinet JavaAPI (JNI)HDB hdb = new HDB();// tchhdb.open("/path/to/test.tch", HDB.OCREAT | HDB.OWRITER);hdb.put("hoge", "fuga"); //hdb.get("hoge"); //hdb.out("hoge"); //hdb.close(); // Copyright © Akira Koyasu. Some rights reserved.
  26. 26. Copyright © Akira Koyasu. Some rights reserved.
  27. 27. TokyoTyrant Copyright © Akira Koyasu. Some rights reserved.
  28. 28. TokyoTyrant✤ x h(ash) / b(+ tree) / f(ixed-length) / t(able) Copyright © Akira Koyasu. Some rights reserved.
  29. 29. TokyoTyrant ttserver /path/to/dbfile.tcx✤ x h(ash) / b(+ tree) / f(ixed-length) / t(able) Copyright © Akira Koyasu. Some rights reserved.
  30. 30. TokyoTyrant ttserver /path/to/dbfile.tcx ^C✤ x h(ash) / b(+ tree) / f(ixed-length) / t(able) Copyright © Akira Koyasu. Some rights reserved.
  31. 31. TokyoTyrant ClientCLI Copyright © Akira Koyasu. Some rights reserved.
  32. 32. TokyoTyrant ClientCLItcrmgr put host key value Copyright © Akira Koyasu. Some rights reserved.
  33. 33. TokyoTyrant ClientCLItcrmgr put host key valuetcrmgr list host Copyright © Akira Koyasu. Some rights reserved.
  34. 34. TokyoTyrant ClientCLItcrmgr put host key valuetcrmgr list hosttcrmgr get host key Copyright © Akira Koyasu. Some rights reserved.
  35. 35. TokyoTyrant ClientCLItcrmgr put host key valuetcrmgr list hosttcrmgr get host keytcrmgr out host key Copyright © Akira Koyasu. Some rights reserved.
  36. 36. TokyoTyrant ClientCLI tcrmgr put host key value tcrmgr list host tcrmgr get host key tcrmgr out host keyr=remote Copyright © Akira Koyasu. Some rights reserved.
  37. 37. TokyoTyrant JavaAPI Copyright © Akira Koyasu. Some rights reserved.
  38. 38. TokyoTyrant JavaAPIRDB rdb = new RDB();// TTrdb.open(new InetSocketAddress("localhost", 1978));rdb.put("hoge", "fuga"); //rdb.get("hoge"); //rdb.out("hoge"); //rdb.close(); // Copyright © Akira Koyasu. Some rights reserved.
  39. 39. TokyoTyrant Copyright © Akira Koyasu. Some rights reserved.
  40. 40. TokyoTyrant Copyright © Akira Koyasu. Some rights reserved.
  41. 41. TokyoTyrant Copyright © Akira Koyasu. Some rights reserved.
  42. 42. TokyoTyrant Copyright © Akira Koyasu. Some rights reserved.
  43. 43. TokyoTyrant Copyright © Akira Koyasu. Some rights reserved.
  44. 44. TokyoTyrant-ulog Copyright © Akira Koyasu. Some rights reserved.
  45. 45. TokyoTyrant-ulogcopy Copyright © Akira Koyasu. Some rights reserved.
  46. 46. TokyoTyrant-ulogcopyDB rts -rts Copyright © Akira Koyasu. Some rights reserved.
  47. 47. NotesThis work is licensed under the Creative Commons Attribution-NonCommercial 3.0 Unported License. To view a copy of thislicense, visit http://creativecommons.org/licenses/by-nc/3.0/.Tokyo Cabinet was written and is maintained by FAL Labs: http://fallabs.com/tokyocabinet/Tokyo Tyrant was written and is maintained by FAL Labs: http://fallabs.com/tokyotyrant/Page1 photo from: http://www.flickr.com/photos/batardy_sebastien/4092898500/ Copyright © Akira Koyasu. Some rights reserved.

    Be the first to comment

    Login to see the comments

  • tadam1973

    Feb. 24, 2015
  • nagsatoshi

    Jul. 8, 2015

First step guide of Tokyo Cabinet & Tokto Tyrant.

Views

Total views

7,205

On Slideshare

0

From embeds

0

Number of embeds

4,845

Actions

Downloads

30

Shares

0

Comments

0

Likes

2

×