Results 1 to 4 of 4
  1. #1
    Ms.Ranjan is offline Member
    Join Date
    Jun 2008
    Posts
    85
    Rep Power
    0

    Default speeder way to store and retrieve data

    I have two tab delimited text file which gives student personal information and college information

    id firstname lastname adress...(i have seven columns like this) i am interested in the fifth column (which has student name)

    similarly i have five columns in the college information text file,i am interested in the second column which has relationship of the student to the college(studentname;semester;subjecttaken).


    what i want to do is read the two files(actual implementation has four files) pick up the columns that i am interested alone(store them in some datastructure )

    then take up the (name;semester;subjecttaken1,subjecttaken2) data one by one,split the string if the name matches the studentname column of the student information file,i have to store them in a hashmap with studentname as key and semester and subjecttaken as values.

    Can someone give me bestway to implement this logic.Since the data is very huge,i need to store the columns in a faster datastructure and loop them.I dont want to store them in a database.

  2. #2
    xcallmejudasx's Avatar
    xcallmejudasx is offline Senior Member
    Join Date
    Oct 2008
    Location
    Houston, TX & Flint, MI
    Posts
    609
    Rep Power
    6

    Default

    What exactly needs to be faster because this can determine what you use. Do you want to read all the files and store it in a B_Tree or HashMap faster or you want to retrieve the data faster when it's already in one of those structures?
    Liberty has never come from the government.
    Liberty has always come from the subjects of government.
    The history of liberty is the history of resistance.
    The history of liberty is a history of the limitation of governmental power, not the increase of it.

  3. #3
    Ms.Ranjan is offline Member
    Join Date
    Jun 2008
    Posts
    85
    Rep Power
    0

    Default

    Thanks for the reply.I want to retrieve the data faster.

  4. #4
    RamyaSivakanth's Avatar
    RamyaSivakanth is offline Senior Member
    Join Date
    Apr 2009
    Location
    Chennai
    Posts
    832
    Rep Power
    6

Similar Threads

  1. help me to store data in a class
    By neeraj.singh in forum New To Java
    Replies: 2
    Last Post: 08-06-2009, 08:31 AM
  2. how to store the data in data base
    By eclipse3.4ide in forum New To Java
    Replies: 5
    Last Post: 02-03-2009, 04:25 AM
  3. How to store/retrieve PNG image in/from RMS
    By jason-nexFIT-mobileXware in forum CLDC and MIDP
    Replies: 0
    Last Post: 09-10-2008, 04:01 AM
  4. Store retrieve and delete
    By on7june in forum New To Java
    Replies: 1
    Last Post: 03-08-2008, 05:57 PM
  5. How to retrieve data from servlet
    By valery in forum Java Servlet
    Replies: 1
    Last Post: 08-06-2007, 08:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •