Discussion:
java to add simple key value pairs in Berkely DB files
(too old to reply)
hoosie
2007-11-21 22:26:08 UTC
Permalink
Hi,

I'm currently replacing an older perl system with a new one in Java,
and need to be able to create and use a simple BDB file to store key
and value pairs. I can't find any kind of example or tutorial through
normal means, and I've seen references to both com.sleepycat.bdb and
com.sleepycat.je, but I've no idea how to use them.

Anyone have any sample code? All I need is to be able to create
whatever.db, add key value pairs, remove key value pairs, and retrieve
values of keys.

Thanks!
-Ian
Florian Weimer
2007-11-21 22:39:24 UTC
Permalink
Post by hoosie
I'm currently replacing an older perl system with a new one in Java,
and need to be able to create and use a simple BDB file to store key
and value pairs. I can't find any kind of example or tutorial through
normal means, and I've seen references to both com.sleepycat.bdb and
com.sleepycat.je, but I've no idea how to use them.
There are several Getting Started guides on the Oracle web site:

<http://www.oracle.com/technology/documentation/berkeley-db/db/index.html>
Daniel Pitts
2007-11-22 01:22:01 UTC
Permalink
Post by Florian Weimer
Post by hoosie
I'm currently replacing an older perl system with a new one in Java,
and need to be able to create and use a simple BDB file to store key
and value pairs. I can't find any kind of example or tutorial through
normal means, and I've seen references to both com.sleepycat.bdb and
com.sleepycat.je, but I've no idea how to use them.
<http://www.oracle.com/technology/documentation/berkeley-db/db/index.html>
The documentation is good enough that I was able to store
"Hello"->"World" within an hour of having heard of BDB JE.
(Specifically, when the op posted, I decided to look up BDB).

This is with no prior experience interacting with a BDB in any language.
--
Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>
Loading...