This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes criteriaFind    implementation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "criteriaFind    implementation" Watch "criteriaFind    implementation" New topic

criteriaFind implementation

Ranga Vure

Joined: Sep 07, 2002
Posts: 2
Hi All ,

I want to start the assignment with implementing search criteria. Iam planning to read all records once and build binary tree . Tree contains the nodes of origin , dest , carrier and finally the record no and data . If any new rec or modified then add to the tree . Is this better approach to read all rec once just to know what are the records containg the search criteria .
[ September 07, 2002: Message edited by: Ranga ]
Manish Kumar
Ranch Hand

Joined: Apr 15, 2002
Posts: 53
Hi Ranga,
I don't think that holding all records in memory is a good idea.. It would be ok if you have only 24 records (for this assignment) but what if the database size is too big??
Ranga Vure

Joined: Sep 07, 2002
Posts: 2
Well , i agree . I am struggling between memory VS speed . My intention is to build a Index kind of feature, thus avoiding reading all records during the search . can you guide me with some other alternatives to implement this , iam stuck with this .

Valentin Crettaz
Gold Digger

Joined: Aug 26, 2001
Posts: 7610
Welcome to Javaranch
We'd like you to read the Javaranch Naming Policy and change your publicly displayed name (change it here) to comply with our unique rule. Thank you.
PS: Quote from the naming policy:

For your publicly displayed name, use a first name, a space, and a last name. Obviously fictitious names or improperly formatted names may be locked out.

[Blog] [Blogroll] [My Reviews] My Linked In
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: criteriaFind implementation
It's not a secret anymore!