LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-03-2006, 03:46 AM   #1
kpachopoulos
Member
 
Registered: Feb 2004
Location: Athens, Greece
Distribution: Gentoo,FreeBSD, Debian
Posts: 705

Rep: Reputation: 30
in-memory hashtable with values, which are db records pointers


Hi,
i mentioned to somebody, refering to a project using Java and java-db4, that i wanted to use a WeakHashMap and that in order to maximize the ability to store objects i would use java-db4 in conjuction with it. To be more exact, all objects will be stored in a db. The caller will first look in the WeakHashMap and then -if the entry doesn't exist there or has been discarded- will look for it in the db and insert it in the WeakHashMap.
However, he proposed something like "inserting pointers as values in HashMap, which i would implement" and using "multidimensional indexing".
Can anybody explain better or post some relevent links? Cannnot find anything relevant.

Thanks
 
  


Reply



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

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Pointers and memory leaks in C LXer Syndicated Linux News 0 10-30-2006 06:54 PM
Of pointers - seg faults, memory leaks and assorted troubles vharishankar Programming 3 08-03-2006 08:18 AM
searching and hashtable question. blackzone Programming 1 11-16-2004 02:13 AM
hashtable/hashmap+linux+C saajii Programming 2 09-20-2004 07:32 PM
pointers and dynamic memory allocation deveraux83 Programming 2 01-24-2004 10:35 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration