aspose file tools*
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
Author

criteriaFind implementation

Ranga Vure
Greenhorn

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 .
Thanks
Ranga
[ 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??
regards
-Manish
-------
SCJP2
Ranga Vure
Greenhorn

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 .

Thanks
Ranga
Valentin Crettaz
Gold Digger
Sheriff

Joined: Aug 26, 2001
Posts: 7610
Ranga,
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.


SCJP 5, SCJD, SCBCD, SCWCD, SCDJWS, IBM XML
[Blog] [Blogroll] [My Reviews] My Linked In
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: criteriaFind implementation