I agree node streams are usually underused and underlooked. If the json stream you have in mind continously prints json, you might find this useful https://github.com/fent/node-jstream
Not sure what you mean by sorting streams. On Tue, Apr 24, 2012 at 5:27 AM, Nuno Job <[email protected]> wrote: > Yup, I share your vision :) > > - https://github.com/dscape/clarinet > - https://github.com/thejh/node-jsos/issues/2#issuecomment-3548882 > (routing like idea) > - https://github.com/substack/node-trumpet (css selectors style, but for > html) > > Go build it :) > > Nuno > > On Tue, Apr 24, 2012 at 1:17 PM, manimal45 <[email protected]> > wrote: > > It does not seem to support streams, does it ? > > > > It's a module which enables use of mongodb semantics without using > > mongodb itself, which is a good idea on itself ! > > Though, what I wanted to know is whether or not there exists a stream > > manipulation API. > > Maybe something like spouts and bolts from twitter storm project : > > - https://github.com/nathanmarz/storm > > - > http://www.slideshare.net/nathanmarz/storm-distributed-and-faulttolerant-realtime-computation > > > > I think that node.js streams are a powerful interface, usually under > > used by module writters. > > There ought to be some stream manipulation (grouping, sorting, > > joining) outhere which would open the way for amazing use cases like > > twitter's storm. > > > > Anyone with same vision ? > > > > > > > > On 24 avr, 14:02, Roly Fentanes <[email protected]> wrote: > >> there is thishttps://github.com/bevry/query-engine > >> > >> not sql like, mongo like. > >> > >> > >> > >> > >> > >> > >> > >> On Tuesday, April 24, 2012 4:18:41 AM UTC-7, manimal45 wrote: > >> > >> > Hi, > >> > >> > I wanted to know if there was any existing module allowing for > >> > handling json streams with an SQL like API. > >> > >> > For instance, let's say the module's name is querystreams, the > >> > expected API would allow for code like this : > >> > var s = new StreamProducer("a stream from a thrid party outputting > >> > json rows"); // 'data', {a : 1, b :2} ... > >> > var filter = querystream(s, { a : 1}) ; // creates a stream which > >> > outputs only rows with #.a=1 > >> > >> > var s1 = new StreamProducer("a stream from a thrid party outputting > >> > json rows"); > >> > var s2 = new StreamProducer("a stream from a thrid party outputting > >> > json rows"); > >> > var join = querystreams.join(s1,s2, { "s1.a = s2.a && s1.b == > >> > s2.b"}); // creates a stream resulting in joining s1 and s2 on the > >> > given condition > >> > >> > var unsorted = new StreamProducer("a stream from a thrid party > >> > outputting json rows"); > >> > var sorted = querystream.sort(unsorted, {a : 'desc'}); // creates a > >> > stream where values are sorted depending on the #. property > > > > -- > > Job Board: http://jobs.nodejs.org/ > > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > > You received this message because you are subscribed to the Google > > Groups "nodejs" group. > > To post to this group, send email to [email protected] > > To unsubscribe from this group, send email to > > [email protected] > > For more options, visit this group at > > http://groups.google.com/group/nodejs?hl=en?hl=en > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > -- *Roly Fentanes* [email protected] 480 200 3369 -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
