Giter VIP home page Giter VIP logo

Comments (5)

jankotek avatar jankotek commented on July 20, 2024

Hi,

JDBM currently have those layers (from consumer down to raw disk)

  1. collection with index (BTree, HTree)
  2. instance cache
  3. serialization
  4. primitive record key-value store (long as key, byte[] as value).
  5. disk store (ram, zip, file)

And if I understand correctly, this proposal is about JDBM using alternative implementations at level 4. I think this is very good idea and will definitely implement it.

My idea is: JDBM will export one more interface called RecordManager with methods like this:

long insert(byte[]) //insert new record, returs recid
void delete(long)  //delete record by recid
void update(long,byte[]) //update record with given recid with new data
boolean supportTransaction()
void roolback()
void commit()

User may supply alternative implementation in DBMaker. In this case JDBM will use other db as back-end, but user will still get instance cache, collections, serialization and other honey JDBM provides.

Only problem is that I am not going to write wrapper for DynamoDB (have no access to Amazon WS). Reference wrapper implementation will use LevelDB or Tokyo Cabinet. JDBM will also still support only single transaction per store.

ETA 2 weeks.

from jdbm3.

DallanQ avatar DallanQ commented on July 20, 2024

Thank you for the reply! I'll check back in a couple of weeks.

from jdbm3.

jankotek avatar jankotek commented on July 20, 2024

Hi,
JDBM now has very basic support for alternative key-value stores. Checkout RecordManager interface to give you some basic understanding. But it is still not finished.

https://github.com/jankotek/JDBM3/blob/master/src/main/java/net/kotek/jdbm/RecordManager.java

from jdbm3.

jankotek avatar jankotek commented on July 20, 2024

I decided not to implement this. Multiple key-value would complicate design too much. I reverted previous GIT commit

from jdbm3.

DallanQ avatar DallanQ commented on July 20, 2024

ok, thanks for letting me know.

from jdbm3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.