Re: noob : congomongo to disk

2010-06-06 Thread Meikel Brandmeyer
Hi, On Jun 6, 11:26 pm, Brian Wolf wrote: > I'm not sure why it does this anyways, according to congomongo > documentation, 'fetch' is supoosed be returning in clojure format, not > mongo. The documentation means that you don't JSON back, but some clojure data structure. It contains two keys _i

Re: noob : congomongo to disk

2010-06-06 Thread Meikel Brandmeyer
Hi, On Jun 6, 11:15 pm, Brian Wolf wrote: > hmm.. not really 'printing', just trying to save what might be any > binary data in a clojure map, as I would save say, want to save gif > images  in a java or C array. at least that's the analogy I am > comparing this case to. This is the problem wit

Re: noob : congomongo to disk

2010-06-06 Thread Brian Wolf
I'm not sure why it does this anyways, according to congomongo documentation, 'fetch' is supoosed be returning in clojure format, not mongo. On Jun 6, 12:54 pm, Meikel Brandmeyer wrote: > Hi, > > Am 06.06.2010 um 21:46 schrieb Brian Wolf: > > > But if print-dup is just seeing clojure.lang.Persist

Re: noob : congomongo to disk

2010-06-06 Thread Brian Wolf
hmm.. not really 'printing', just trying to save what might be any binary data in a clojure map, as I would save say, want to save gif images in a java or C array. at least that's the analogy I am comparing this case to. So, at least acording to this example, print- dup has to be extended to ever

Re: noob : congomongo to disk

2010-06-06 Thread Meikel Brandmeyer
Hi, Am 06.06.2010 um 21:46 schrieb Brian Wolf: > But if print-dup is just seeing clojure.lang.PersistentArrayMap > objects, why does it matter what type it contains? Because the map contents also have to printed, no? This is a recursive process. Sincerely Meikel -- You received this message b

Re: noob : congomongo to disk

2010-06-06 Thread Brian Wolf
But if print-dup is just seeing clojure.lang.PersistentArrayMap objects, why does it matter what type it contains? On Jun 5, 11:09 pm, Meikel Brandmeyer wrote: > Hi, > > Am 06.06.2010 um 01:47 schrieb Brian Wolf: > > >      java.lang.IllegalArgumentException: No method in multimethod > > 'print-d

Re: noob : congomongo to disk

2010-06-05 Thread Meikel Brandmeyer
Hi, Am 06.06.2010 um 01:47 schrieb Brian Wolf: > java.lang.IllegalArgumentException: No method in multimethod > 'print-dup' for dispatch value: class com.mongodb.ObjectId IIRC, this is the _id of the mongo entry. You should contact the author of congomongo. He should add an appropriate met

noob : congomongo to disk

2010-06-05 Thread Brian Wolf
Hi, I would like to save a mongo collection to a file, and later read that file into a clojure program. congomongo 'fetch' returns a lazy sequence of clojure types .. somnium.dwnload=> (doseq [v (fetch :tweets)] (prn (type v))) clojure.lang.PersistentArrayMap clojure.lang.Pe