Results 1 to 3 of 3
Thread: Issues with parsing huge file
- 03-28-2011, 04:53 PM #1
Member
- Join Date
- Aug 2008
- Posts
- 46
- Rep Power
- 0
Issues with parsing huge file
I'm parsing a document and writing to disk pairs such as these ones:
0 vs 1, true
0 vs 2, false
0 vs 3, true
1 vs 2, true
1 vs 3, false
..
and so on.
Successively i'm balancing the trues and falses rows for each instance, by removing random lines (lines with true value if they exceed, and viceversa) and I end up with a file such as this one:
0 vs 1 true
0 vs 2 false
1 vs 2 true
1 vs 3 true
1 vs 4 false
1 vs 5 false
The falses are usually much much more than trues, so in the previous example, I could keep only 1 false for isntance 0, and only 2 falses for instance 1.
I'm doing this process in 2 steps, before parsing and then balancing.
Now, my issue is that the unbalanced file is too big: more than 1GB, and most of its rows are going to be removed by the balancing step.
My question is: can I balance the rows while parsing ?
My guess is no, because I don't know which items are arriving and I can't delete any row until when all rows for a specific instance have been discovered.
I hope it is clear.
thanks
- 03-28-2011, 05:27 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,438
- Rep Power
- 16
I have absolutely no idea what any of that means.
There is so little useful requirements in there that I can't make head nor tail of it all.
- 03-29-2011, 03:02 AM #3
Member
- Join Date
- Jan 2011
- Posts
- 67
- Rep Power
- 0
Similar Threads
-
HTML FILE parsing.
By makpandian in forum New To JavaReplies: 8Last Post: 11-02-2010, 03:00 PM -
parsing xml file
By mp.saaravanan in forum New To JavaReplies: 1Last Post: 05-02-2010, 02:55 PM -
parsing and updating html file using JSP.
By tskarthic in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 04-02-2009, 09:12 PM -
display huge size file in jtextarea
By tskarthic in forum AWT / SwingReplies: 1Last Post: 03-21-2009, 06:30 PM -
Parsing XML File
By rstar7 in forum XMLReplies: 1Last Post: 10-10-2008, 03:31 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks