dbTalk Databases Forums  

java to add simple key value pairs in Berkely DB files

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss java to add simple key value pairs in Berkely DB files in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
hoosie
 
Posts: n/a

Default java to add simple key value pairs in Berkely DB files - 11-21-2007 , 04:26 PM






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

Reply With Quote
  #2  
Old   
Florian Weimer
 
Posts: n/a

Default Re: java to add simple key value pairs in Berkely DB files - 11-21-2007 , 04:39 PM






* hoosie:

Quote:
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>


Reply With Quote
  #3  
Old   
Daniel Pitts
 
Posts: n/a

Default Re: java to add simple key value pairs in Berkely DB files - 11-21-2007 , 07:22 PM



Florian Weimer wrote:
Quote:
* 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/doc.../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/>


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.