[storm] ResultSet-like object that backs onto a list?
Pietro Abate
Pietro.Abate at pps.jussieu.fr
Tue Feb 24 11:57:21 GMT 2009
On Mon, Feb 23, 2009 at 04:07:29PM +1100, Jonathan Lange wrote:
> Hello,
>
> I was just tinkering with some unit tests that deal with some Storm
> things, and I started wishing for a way to construct a ResultSet
> object without even having to do a query.
I think you can use the EmptyResultSet class .
http://twistedmatrix.com/users/radix/storm-api/storm.store.EmptyResultSet.html
:)
p
>
> I have a method that returns a ResultSet, but sometimes I want the
> result set to contain exactly one object that I know about already.
> I'd like to wrap that object in a ResultSet-implementing object so
> other parts of the code can call .one() or whatever on it.
>
> Is this a sane idea? Would it deserve a place in Storm, or should I
> just leave it in my (currently) proprietary tree?
>
> jml
>
> --
> storm mailing list
> storm at lists.canonical.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/storm
More information about the storm
mailing list