I assumed he needs the results sorted by transaction id, if he doesn't then it should be quite simple
On Sun, Oct 21, 2012 at 10:05 AM, Dave Sann <daves...@gmail.com> wrote: > Look at: > > http://clojuredocs.org/clojure_core/clojure.core/line-seq to get a lazy > sequence of lines of the file. > > I don't think that there is any need to sort here. (I think sorting wont > help anyway because some lines are seem to be only identifiable based on > the thread id in the current sequence) > > Process each line and build up the result data structure as you go. > http://clojuredocs.org/clojure_core/clojure.core/assoc-in may help you > for a nested map. > Do not hold on to the head of the line seq and you should be able to > process this without too much problem. > > (if the data structure you build up is itself too large, you may need to > write out result data as you see each ReqEnd. In this case, dissoc that > record so it can be garbage collected) > > Dave > > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > -- I may be wrong or incomplete. Please express any corrections / additions, they are encouraged and appreciated. At least one entity is bound to be transformed if you do ;) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en